Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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.

But run /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.

share|improve this question
First you contact cPanel support. –  Michael Hampton Mar 11 '13 at 23:28
I'm doing that too. :) –  David Rodrigues Mar 11 '13 at 23:35
cPanel support told to me that not can help me with a third party module (in the case, mod_security). :/ –  David Rodrigues Mar 12 '13 at 5:14
Perhaps you should consider not using cPanel, then. It is something that very few of us know anything about, and it tends to make servers difficult to maintain by anyone other than cPanel. –  Michael Hampton Mar 12 '13 at 8:34

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.