The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

EasyApache fails...

Discussion in 'EasyApache' started by jdearing, Dec 4, 2012.

  1. jdearing

    jdearing Active Member

    Joined:
    Nov 6, 2003
    Messages:
    30
    Likes Received:
    0
    Trophy Points:
    6
    I've never had any issues running EasyApache before. Just was simply going to upgrade PHP from 5.3.18 to 5.3.19 and it failed..

    After seeing some of the errors below, I disabled MOD_Security and tried to rebuild again, but still fails.

    Here is some of the final output...
    Updating Apache configuration
    Distilled successfully
    !! Failed to utilize existing Apache configuration file. Resetting Apache configuration to default. !!
    Updating Apache configuration
    Updating Apache configuration
    Distilled successfully
    !! Failed to generate a syntactically correct Apache configuration (/usr/local/apache/conf/httpd.conf.1354662038):
    An error occurred while running: /usr/local/apache/bin/httpd -DSSL -t -f /usr/local/apache/conf/httpd.conf.1354662038
    Exit signal was: 0
    Exit value was: 1
    Output was:
    ---
    ModSecurity: WARNING Using transformations in SecDefaultAction is deprecated (/usr/local/apache/conf/modsec/10_asl_rules.conf:30).
    Syntax error on line 191 of /usr/local/apache/conf/modsec/10_asl_rules.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' ... !!
    !! 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. Pass it --help for more details.
    Also be sure to examine apache's various log files.
    Apache Restart Output:
    Log:
    PHP: syntax error, unexpected ')' in /usr/local/lib/php.ini on line 1207
    PHP: syntax error, unexpected ')' in /usr/local/lib/php.ini on line 1207
    PHP: syntax error, unexpected ')' in /usr/local/lib/php.ini on line 1207
    PHP: syntax error, unexpected ')' in /usr/local/lib/php.ini on line 1207
    PHP: syntax error, unexpected ')' in /usr/local/lib/php.ini on line 1207
    PHP: syntax error, unexpected ')' in /usr/local/lib/php.ini on line 1207
    PHP: syntax error, unexpected ')' in /usr/local/lib/php.ini on line 1207
    PHP: syntax error, unexpected ')' in /usr/local/lib/php.ini on line 1207
    PHP: syntax error, unexpected ')' in /usr/local/lib/php.ini on line 1207
    PHP: syntax error, unexpected ')' in /usr/local/lib/php.ini on line 1207
    error, unexpected ')' in /usr/local/lib/php.ini on line 1207 !!
    Building global cache for cpanel...Done
    !! Executing '/scripts/initfpsuexec' !!
    !! Executing '/scripts/initsslhttpd' !!
    !! Executing '/scripts/update_apachectl' !!
    !! Executing '/scripts/enablefileprotect' !!
    !! Verbose logfile is at '/usr/local/cpanel/logs/easy/apache/build.1354661545' !!
     
  2. cPanelNick

    cPanelNick Administrator
    Staff Member

    Joined:
    Mar 9, 2015
    Messages:
    3,426
    Likes Received:
    2
    Trophy Points:
    38
    cPanel Access Level:
    DataCenter Provider
    It looks like there is some corruption in your php.ini.

    Please open a ticket using the link in my signature for assistance.
     
  3. jdearing

    jdearing Active Member

    Joined:
    Nov 6, 2003
    Messages:
    30
    Likes Received:
    0
    Trophy Points:
    6
    Ticket 3481511
     
  4. jdearing

    jdearing Active Member

    Joined:
    Nov 6, 2003
    Messages:
    30
    Likes Received:
    0
    Trophy Points:
    6
    I got it running again, but I had to disable all of these rules in ModSecurity... Disabling ModSecurity when doing a new build didn't help the problem, just disabling these rules allowed EasyApache to run successfully.

    #Include /usr/local/apache/conf/modsec/10_asl_antimalware.conf
    #Include /usr/local/apache/conf/modsec/10_asl_rules.conf
    #Include /usr/local/apache/conf/modsec/20_asl_useragents.conf
    #Include /usr/local/apache/conf/modsec/30_asl_antispam.conf
    #Include /usr/local/apache/conf/modsec/30_asl_antispam_referrer.conf
    #Include /usr/local/apache/conf/modsec/50_asl_rootkits.conf
    #Include /usr/local/apache/conf/modsec/60_asl_recons.conf
    #Include /usr/local/apache/conf/modsec/99_asl_jitp.conf
     
  5. quietFinn

    quietFinn Well-Known Member

    Joined:
    Feb 4, 2006
    Messages:
    998
    Likes Received:
    10
    Trophy Points:
    18
    Location:
    Finland
    cPanel Access Level:
    Root Administrator
    EasyApache is not always showing all the errors, to show them all you can run the command, in this case:
    Code:
    /usr/local/apache/bin/httpd -DSSL -t -f /usr/local/apache/conf/httpd.conf.1354662038
    
    in SSH command line (it's safe, it's just testing the configuration).

    EasyApache upgraded ModSecurity to version 2.7, and was trying to convert your rules to 2.7 format, but failed.

    If you download the latest Atomicorp free delayed rules, they are still ver. 2.5, but EasyApache is able to convert them. You will still have that warning: "Using transformations in SecDefaultAction is deprecated2 but that you can ignore.
     
Loading...

Share This Page