how to prevent .htaccess file modification while running easyapache ?

Most of the time, the recompilation process of Apache/php with Easyapache will be effected the users’ .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 

Solution
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:
htaccess

That’s it… 🙂

Post navigation

Arunlal Ashok

Linux Systems Architect at Endurance International Group. I know her (Linux) since many years. Linux lover. Like to play on Linux console. I started this blog to share and discuss Linux thoughts.

Always happy for an open discussion! Write to arun (@) crybit (dot) com. Check about me for more details. About this blog and our strong members, check The team CryBit.com

Leave a Reply

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