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 rebuild issue

Discussion in 'EasyApache' started by saamxvr, Mar 24, 2014.

  1. saamxvr

    saamxvr Well-Known Member

    Joined:
    Oct 30, 2010
    Messages:
    90
    Likes Received:
    0
    Trophy Points:
    6
    Hello

    I getting this error when im try to rebuild easyapache .. any idea ?

    PHP:
    -- End opt 'IonCube Loader for PHP' --
    Building global cache for cpanel...Done
    !! Resetting Apache configuration to default. !!
    Updating Apache configuration
    Updating Apache configuration
    [/usr/local/cpanel/scripts/set_mailman_archive_permsSetting I/O priority to reduce system loadbest-effortprio 6
    [/usr/local/cpanel/scripts/set_mailman_archive_permsSetting mailman archive permissions
    [/usr/local/cpanel/scripts/set_mailman_archive_permsContinuing in the background
    Added to httpd
    .conf
     
    <IfModule prefork.c>
    Mutex default mpm-accept
    </IfModule>
    <
    IfModule worker.c>
    Mutex default mpm-accept
    </IfModule>
    Distilled successfully
    !! Failed to generate a syntactically correct Apache configuration (/usr/local/apache/conf/httpd.conf.1395677028):
    Configuration problem detected on line 28 of file /usr/local/apache/conf/httpd.conf.1395677028: : Syntax error on line 1 of /usr/local/apache/conf/includes/pre_main_global.confSyntax error on line 1 of /etc/httpd/conf.d/cloudflare.confCannot load modules/mod_cloudflare.so into server: /usr/local/apache/modules/mod_cloudflare.socannot open shared object fileNo such file or directory
            
    --- /usr/local/apache/conf/httpd.conf.1395677028 ---
            
    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.1395677028 ---
     !!
    !! 
    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/fixmailman' !!
    !! 
    Executing '/scripts/update_apachectl' !!
    !! 
    Executing '/scripts/enablefileprotect' !!
    !! 
    Registering the Mod Security addon !!
    !! 
    WARNINGThis causes cpsrvd to restart and might cause logging output to stop !!
    modsec registered
    Compiling report
    ...
    Sending report. As some of the attached files may be quite largethis could take a few minutesThanks for your patience.
    !! If 
    you  want to create a support ticket with cPanel regarding this please reference 'BuildAP Report Id''13203523' !!
    Report processed.
    !! 
    Feel free to submit a support ticket at https://tickets.cpanel.net/submit/index.cgi?reqtype=tickets !!
    !! Verbose logfile is at '/usr/local/cpanel/logs/easy/apache/build.1395676283' !!
    root@server.physicalrevolution.com.au [~]#

    Thank you
     
  2. cPanelJared

    cPanelJared Technical Analyst
    Staff Member

    Joined:
    Feb 25, 2010
    Messages:
    1,842
    Likes Received:
    18
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    The actual build is successful, but EasyApache cannot build a configuration file that passes syntax checks. This snippet of the output you provided explains why it is failing:

    Code:
    !! Failed to generate a syntactically correct Apache configuration (/usr/local/apache/conf/httpd.conf.1395677028):
    Configuration problem detected on line 28 of file /usr/local/apache/conf/httpd.conf.1395677028: : Syntax error on line 1 of /usr/local/apache/conf/includes/pre_main_global.conf: Syntax error on line 1 of /etc/httpd/conf.d/cloudflare.conf: Cannot load modules/mod_cloudflare.so into server: /usr/local/apache/modules/mod_cloudflare.so: cannot open shared object file: No such file or directory 
    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.
     
  3. saamxvr

    saamxvr Well-Known Member

    Joined:
    Oct 30, 2010
    Messages:
    90
    Likes Received:
    0
    Trophy Points:
    6
    Actually im on Bluehost VPS

    when im look in to /usr/local/apache/conf/includes/pre_main_global.conf path , its has below include

    When im open this parth /etc/httpd/conf.d/cloudflare.conf its included

    When im open /usr/local/apache/modules/mod_cloudflare.so .

    its has some code

    Thank you
     
Loading...

Share This Page