I have wordpress installed on one of my sites hosted on cpanel65. I recently went to update a page using the wp-admin section causing an internal server error on the site.
Example of error from error logs
It seems as if the .htaccess file is being over-written
Original .htacces
After Server Error .htaccess
I have never encountered this error before and from the little I can find it is something to do with the ModSecurity 2.
Help is appreciated.
Regards,
Jared
Example of error from error logs
Code:
[Thu Mar 05 03:17:55 2009] [alert] [client 221.153.65.71] /public_html/.htaccess: Invalid command 'SecFilterEngine', perhaps misspelled or defined by a module not included in the server configuration, referer: http://site/wp-admin/page.php?action=edit&post=442
Original .htacces
Code:
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
Code:
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
#BEGIN Image Upload HTTP Error Fix
<IfModule mod_security.c>
<Files async-upload.php>
SecFilterEngine Off
SecFilterScanPOST Off
</Files>
</IfModule>
<IfModule security_module>
<Files async-upload.php>
SecFilterEngine Off
SecFilterScanPOST Off
</Files>
</IfModule>
<IfModule security2_module>
<Files async-upload.php>
SecFilterEngine Off
SecFilterScanPOST Off
</Files>
</IfModule>
#END Image Upload HTTP Error Fix
# END WordPress
Help is appreciated.
Regards,
Jared
Comment