Skip to main content

EasyApache modifies .htaccess files?

Comments

4 comments

  • quietFinn
    In WHM-> Server Configuration -> Tweak Settings -> System set Depth to recurse for .htaccess checks = 0
    0
  • cPanelMichael
    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
  • Maknet Corp
    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
  • cPanelMichael
    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.