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.

cPanel EasyApache update fails and I our server is down.

Discussion in 'EasyApache' started by hilario, Oct 28, 2013.

  1. hilario

    hilario Well-Known Member

    Joined:
    Jan 5, 2008
    Messages:
    51
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Sao Paulo, Brazil
    I tried a EasyApache (Apache Update) to enable PDO MySQL and Mbstring +MPM Prefork
    Unfortunately the Apache+PHP rebuild has failled and Apache did not start.

    My server is down and I need some help to debug it.
    The following lines show all I know about it so far:

    [root@alpha ~]# /usr/local/cpanel/bin/build_apache_conf
    info [build_apache_conf] Missing owner for domain alpha.mydomain.com, force lookup to root
    info [build_apache_conf] Domain ownership conflict detected for mydomain.com, users nobody, mydomain
    Initial configuration generation failed with the following message:

    Configuration problem detected on line 73 of file /usr/local/apache/conf/httpd.conf.work.XhGTr70Zx0p4LTLw:
    Either all Options must start with + or -, or no Option may.

    --- /usr/local/apache/conf/httpd.conf.work.XhGTr70Zx0p4LTLw ---
    67ScriptAlias /mailman /usr/local/cpanel/3rdparty/mailman/cgi-bin/
    68ScriptAlias /scgi-bin /usr/local/cpanel/cgi-sys/scgiwrap
    69
    70
    71<Directory "/">
    72 AllowOverride All
    73 ===> Options ExecCGI FollowSymLinks Includes IncludesNOEXEC Indexes -MultiViews SymLinksIfOwnerMatch <===
    74</Directory>
    75
    76<Directory "/usr/local/apache/htdocs">
    77 Options All
    78 AllowOverride None
    79 Require all granted
    --- /usr/local/apache/conf/httpd.conf.work.XhGTr70Zx0p4LTLw ---


    Rebuilding configuration without any local modifications.

    info [build_apache_conf] Missing owner for domain alpha.mydomain.com, force lookup to root
    info [build_apache_conf] Domain ownership conflict detected for mydomain.com, users nobody, mydomain
    Failed to generate a syntactically correct Apache configuration.
    Bad configuration file located at /usr/local/apache/conf/httpd.conf.work.XhGTr70Zx0p4LTLw
    Error:
    Configuration problem detected on line 73 of file /usr/local/apache/conf/httpd.conf.work.XhGTr70Zx0p4LTLw:
    Either all Options must start with + or -, or no Option may.

    --- /usr/local/apache/conf/httpd.conf.work.XhGTr70Zx0p4LTLw ---
    67ScriptAlias /mailman /usr/local/cpanel/3rdparty/mailman/cgi-bin/
    68ScriptAlias /scgi-bin /usr/local/cpanel/cgi-sys/scgiwrap
    69
    70
    71<Directory "/">
    72 AllowOverride All
    73 ===> Options ExecCGI FollowSymLinks Includes IncludesNOEXEC Indexes -MultiViews SymLinksIfOwnerMatch <===
    74</Directory>
    75
    76<Directory "/usr/local/apache/htdocs">
    77 Options All
    78 AllowOverride None
    79 Require all granted
    --- /usr/local/apache/conf/httpd.conf.work.XhGTr70Zx0p4LTLw ---


    Thanks in advance for any help you can provide.
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    653
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    The line in question in your Apache configuration file is:

    Code:
    Options ExecCGI FollowSymLinks Includes IncludesNOEXEC Indexes -MultiViews SymLinksIfOwnerMatch
    There should be a "+" or "-" next to each of these options. Assuming you have no custom configuration files in-place, you can quickly resolve this issue by browsing to:

    "WHM Home » Service Configuration » Apache Configuration » Global Configuration"

    Under "Directory “/” Options", check the values, save, go back, and then uncheck the ones you prefer to have disabled, and save again.

    Thank you.
     
  3. hilario

    hilario Well-Known Member

    Joined:
    Jan 5, 2008
    Messages:
    51
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Sao Paulo, Brazil
    Bug Report: cPanel EasyApache update fails and takes our server down for good.

    Feedback for cPanel and also for other users who may have experienced the same problem:

    The most important feedback is that, although in the first moment I thought that I had caused the problems, in fact it was caused by what IMHO, is a cPanel/WHM bug that could be easily avoided. In fact, more than one bug showed their face at the same time:

    Bug 1) MultiViews is a setting that I never saw or touched before. It must be a new setting, because I went back to older versions of apache/PHP and Easyapache had finished without presenting this failure. Back to newer versions and Easyapache fails. I believe that cPanel should check what the original settings were in our WHM configuration and preset "MultiViews" accordingly instead of statically setting it to off and causing the failure and subsequent support request.

    Bug 2) PHP Register_Globals. I know this is now a relatively well know issue, one of the sites hosted in our server is old and still needs register_globals set to on. Ok, you may say, so go back to PHP version 5.3.27. Nope, this is where cPanel introduced another bug: Once you install a PHP version 5.4 the Register_globals settings that was deprecated in version 5.3 just disappears. Up to this point it is correct, PHP 5.4 does not have it any more. But, cPanel still shows it for you to select On or Off. Much worse than that: You run easyapache again, go back to whatever PHP version is listed in cPanel but Register_Globals is definitively gone forever. cPanel erroneously still have it for you to select On or Off, so you believe it is doing its job but it isn't.

    Workaround this bug: Create a new file named php.ini in the public_html directory of the non-working website and insert just one line: register_globals = ON. That is it, the site is working again. Remember to use PHP 5.3.

    I take this opportunity to thanks cPanel and Michael in particular for the prompt answer. You went direct to the point and the problem is fixed.
     
    #3 hilario, Oct 30, 2013
    Last edited: Oct 30, 2013
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    653
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Please ensure you submit bug reports via:

    Submit A Bug Report

    You can post the ticket numbers assigned to each bug report here, and we can update this thread with the outcome.

    Thank you.
     
Loading...

Share This Page