fix file mode for Mimeparser.php
Fix some issues for php-fpm. Fix #1.