New in CWP Edge-LatestFree with every CWPpro licenceWebsites up to 300x faster

CWP now includes LSPHP, LSAPI-Cache and CWP Cage at no extra cost with all CWPpro licences. The LSAPI-Cache plugin is integrated into our WordPress and other script installers, and CWP Cage gives every user complete isolation. Available now in the CWP Edge-Latest version.

Get CWPpro ›

ModSecurity adds index.php in permalinks

Started by proteus, July 19, 2017, 07:09:26 AM

Previous topic - Next topic

motanu8008

Hi guys,

sed -i 's|.*SecServerSignature "CentOS WebPanel: Protected by Mod Security".*||g' /usr/local/apache/conf.d/mod_security.conf
service httpd restart


The above code fixed my problem. Htaccess is now being written by Wordpress. Many thanks for the tip!

Dreamer

Yes, i confirm that this solves the issue with the index.php. Thank you!

Quote from: bullten on August 10, 2018, 05:01:58 AM
The issue is caused because of SecServerSignature in /usr/local/apache/conf.d/mod_security.conf

You can manually goto /usr/local/apache/conf.d/mod_security.conf and remove it

nano /usr/local/apache/conf.d/mod_security.conf

Find

SecServerSignature "CentOS WebPanel: Protected by Mod Security"

remove the above line and then restart apache

service httpd restart

Or else you can run

sed -i 's|.*SecServerSignature.*||g' /usr/local/apache/conf.d/mod_security.conf
service httpd restart