HostOnNet Blog

How to prevent .htaccess file modification while running easyapache

Looking for Linux Server Admin or WordPress Expert? We can help.

Normally the recompilation process of Apache/php with Easyapache will be effected the user’s .htaccess file under the WHM/cPanel server.

After the Easyapache, we might see some entries like the one pasted below in .htacces file.

AddHandler application/x-httpd-php5 .php .html .htm

We can prevent the .htaccess file modification from the WHM tweak settings itself.

In WHM-> Server Configuration -> Tweak Settings -> System
set
Depth to recurse for .htaccess checks = 0

See the attached screenshot:

tweak settings

About Annie

I've been working in Technical Section for over 10 years in a wide range of tech jobs from Tech Support to Software Testing. I started writing blog for my future reference and useful for all.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.