ampunboss

Member
Jun 12, 2004
15
0
151
I tried many times to upgrade apache, but always give me these error, and the configuration was restored. Please help. How to fix this problem?

----

Building global cache for cpanel...Done
Distilled successfully
!! Failed to utilize existing Apache configuration file. Resetting Apache configuration to default. !!
Distilled successfully
!! Failed to generate a syntactically correct Apache configuration (/usr/local/apache/conf/httpd.conf.1370640422):
An error occurred while running: /usr/local/apache/bin/httpd -DSSL -t -f /usr/local/apache/conf/httpd.conf.1370640422
Exit signal was: 0
Exit value was: 1
Output was:
---
ModSecurity: WARNING Using transformations in SecDefaultAction is deprecated (/usr/local/apache/conf/modsec_rules/10_asl_antimalware.conf:33).
ModSecurity: WARNING Using transformations in SecDefaultAction is deprecated (/usr/local/apache/conf/modsec_rules/30_asl_antimalware.conf:33).
ModSecurity: WARNING Using transformations in SecDefaultAction is deprecated (/usr/local/apache/conf/modsec_rules/30_asl_antispam.conf:33).
Syntax error on line 311 of /usr/local/apache/conf/modsec_rules/30_asl_antispam.conf:
ModSecurity: Found another rule with the same id
---
!!
!! Archiving successful build so it can be restored via --restore-archive once the httpd.conf are resolved !!
!! 'safecopy(/usr/local/apache/etc, /usr/local/apache.ea3-buildok-confgen-failed)' did not return true !!
!! Done Archiving successful build !!
!! Restoring original working apache !!
!! Executing '/scripts/initsslhttpd' !!
!! Restarting 'httpd' ... !!
!! 'httpd' restart complete. !!
Building global cache for cpanel...Done
!! Executing '/scripts/initfpsuexec' !!
!! Executing '/scripts/initsslhttpd' !!
!! Executing '/scripts/update_apachectl' !!
!! Executing '/scripts/enablefileprotect' !!
!!
Here are some details that may be helpful:

!!

'/opt/lua/' is up to date but looks like it has local modifications.
If you experience any trouble remove '/opt/lua/' so that it will be rebuilt fresh.

!!

!!
!! Verbose logfile is at '/usr/local/cpanel/logs/easy/apache/build.1370640020' !!
 

ampunboss

Member
Jun 12, 2004
15
0
151
Thanks. it works.
I haven't run easyapache more than 1 year! old configs doesn't work well with new modsecurity.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,913
2,202
363
Hello :)

Yes, removing those custom rules will allow EasyApache to complete. You can also consult with Atomic to obtain updated custom rules that work with the newer version of Mod_Security (2.7.3 as of today) included with EasyApache.

Thank you.