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.

Problem when Rebuild Apache

Discussion in 'EasyApache' started by adboy, Apr 9, 2016.

  1. adboy

    adboy Registered

    Joined:
    Apr 9, 2016
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Yemen
    cPanel Access Level:
    Root Administrator
    When i'm trying to rebuild apache , i'm getting this error :

    =====================================================
    Building global cache for cpanel...Done
    Distilled successfully
    Distilled successfully
    !! Failed to utilize existing Apache configuration file. Resetting Apache configuration to default. !!
    Distilled successfully
    Distilled successfully
    !! Failed to generate a syntactically correct Apache configuration (/usr/local/apache/conf/httpd.conf.1460226573):
    Configuration problem detected on line 28 of file /usr/local/apache/conf/httpd.conf.1460226573: :
    Syntax error on line 1 of /usr/local/apache/conf/includes/pre_main_global.conf: Cannot load
    /usr/local/apache/modules/mod_qos.so into server: /usr/local/apache/modules/mod_qos.so:
    cannot open shared object file: No such file or directory

    --- /usr/local/apache/conf/httpd.conf.1460226573 ---
    22# #
    23# Templates with the '.local' extension will be preferred over templates with the '.default' extension. #
    24# The only template updated by the apache_conf_distiller is main.default. #
    25# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
    26
    27
    28 ===> Include "/usr/local/apache/conf/includes/pre_main_global.conf" <===
    29Include "/usr/local/apache/conf/includes/pre_main_2.conf"
    30
    31
    32
    33LoadModule bwlimited_module modules/mod_bwlimited.so
    34
    --- /usr/local/apache/conf/httpd.conf.1460226573 ---

    !!
    !! 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 '/usr/local/cpanel/scripts/initsslhttpd' !!
    !! Restarting 'httpd' ... !!
    !! 'httpd' restart complete. !!
    Building global cache for cpanel...Done
    !! Executing '/usr/local/cpanel/scripts/initfpsuexec' !!
    !! Executing '/usr/local/cpanel/scripts/initsslhttpd' !!
    !! Executing '/usr/local/cpanel/scripts/fixmailman' !!
    !! Executing '/usr/local/cpanel/scripts/update_apachectl' !!
    !! Executing '/usr/local/cpanel/scripts/enablefileprotect' !!
    Compiling report...
    Sending report. As some of the attached files may be quite large, this could take a few minutes. Thanks for your patience.
    !! If you want to create a support ticket with cPanel regarding this please reference 'BuildAP Report Id': '19945709' !!
    Report processed.
    !! Verbose logfile is at '/usr/local/cpanel/logs/easy/apache/build.1460225843' !!=====================================================


    What should i do now? Please Help me :(
     
  2. SysSachin

    SysSachin Well-Known Member

    Joined:
    Aug 23, 2015
    Messages:
    329
    Likes Received:
    25
    Trophy Points:
    28
    Location:
    India
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello,


    The actual build is successful, but EasyApache cannot build a configuration file that passes syntax checks.

    Based on that output, the next place to look is line 1 of /usr/local/apache/conf/includes/pre_main_global.conf. What is in that file?

    Also, does /usr/local/apache/modules/mod_cloudflare.so actually exist? The next line in the error output says "No such file or directory" in reference to that file.
     
    sohrab likes this.
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

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

    Please post the output from the following command:

    Code:
    cat /usr/local/apache/conf/includes/pre_main_global.conf
    The custom entries you have added (or automatically added from a third-party plugin) to this file are resulting in the error message you have reported.

    Thank you.
     
    sohrab likes this.
Loading...

Share This Page