EasyApache modifies .htaccess files?
Each time we recompile apache/php with EasyApache at least one of the our clients' .htaccess is modified by commenting out the following:
AddHandler application/x-httpd-php5 .php .html .htm
Any idea how to stop this happening?
-
In WHM-> Server Configuration -> Tweak Settings -> System set Depth to recurse for .htaccess checks = 0 0 -
Hello :) This was likely the result of the update_php_mime_types script. You can run the following command if you want to ensure EasyApache skips this task: touch /var/cpanel/easy_skip_update_php_mime_types
However, note that it's important to open a bug report if this is happening in cases where it should not: Submit A Bug Report Thank you.0 -
I'm sorry, I'm having the same issue and I don't totally understand what the fix is. If I touch that file, EasyApache will magically ignore commenting out the .htaccess file always? Incidentally, I'm glad someone pointed me in the direction of the tweak .htaccess-depth, because otherwise, I didn't understand why my .htaccess file was changing! 0 -
If I touch that file, EasyApache will magically ignore commenting out the .htaccess file always?
The issue reported in the initial post occurred because the /usr/local/cpanel/bin/update_php_mime_types script ran during EasyApache. Creating that file prevents /usr/local/cpanel/bin/update_php_mime_types from running during EasyApache, and thus those entries in the .htaccess file are not modified. Thank you.0
Please sign in to leave a comment.
Comments
4 comments