Today I tried to update my PHP version in EasyApache but on enable ModSecurity it throw an error in last step of rebuilding. I like to enable mod_security for security reasons, of course. :P But I can't understand why this error occur, if I don't changed anything about that.
ModSecurity: WARNING Using transformations in SecDefaultAction is deprecated (/usr/local/apache/conf/mod_sec/mod_sec.asec.conf:28). Syntax error on line 189 of /usr/local/apache/conf/mod_sec/mod_sec.asec.conf: ModSecurity: Found another rule with the same id
After some process, it show:
Restarting 'httpd' ... Failed to restart Apache. Apache restart failed. Unable to load pid from pid file and no httpd process found in process list. If apache restart reported success but it failed soon after, it may be caused by oddities with mod_ssl You should run /usr/local/cpanel/scripts/ssl_crt_status as part of your troubleshooting process.
/usr/local/cpanel/scripts/ssl_crt_status don't return nothing and the error continues.
It I try to run
service httpd restart it show an error in ModSecurity again. I think that on update the
modsec.conf get a new rules set and broken that. The problem is that I don't know how I can restore the original settings (generated backups don't work anymore) or a working version.
What I can do in this case? Some suggestion?
Running in CentOS 5.9.