saamxvr

Well-Known Member
Oct 30, 2010
90
0
56
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_perms] Setting I/O priority to reduce system load: best-effort: prio 6
[/usr/local/cpanel/scripts/set_mailman_archive_perms] Setting mailman archive permissions
[/usr/local/cpanel/scripts/set_mailman_archive_perms] Continuing 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.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
        --- /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 !!
!! WARNING: This 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 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': '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' !!
[email protected] [~]#

Thank you
 

JaredR.

Well-Known Member
Feb 25, 2010
1,834
23
143
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.
 

saamxvr

Well-Known Member
Oct 30, 2010
90
0
56
Actually im on Bluehost VPS

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

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

LoadModule cloudflare_module modules/mod_cloudflare.so
# In case we need to manipulate the default headers or trusted IPs
<IfModule cloudflare_module>
CloudFlareRemoteIPTrustedProxy 204.93.240.0/24
CloudFlareRemoteIPTrustedProxy 204.93.177.0/24
CloudFlareRemoteIPTrustedProxy 199.27.128.0/21
CloudFlareRemoteIPTrustedProxy 173.245.48.0/20
CloudFlareRemoteIPTrustedProxy 103.22.200.0/22
CloudFlareRemoteIPTrustedProxy 141.101.64.0/18
CloudFlareRemoteIPTrustedProxy 108.162.192.0/18
CloudFlareRemoteIPTrustedProxy 190.93.240.0/20
CloudFlareRemoteIPTrustedProxy 2400:cb00::/32
CloudFlareRemoteIPTrustedProxy 2606:4700::/32
CloudFlareRemoteIPTrustedProxy 2803:f800::/32
</IfModule>
When im open /usr/local/apache/modules/mod_cloudflare.so .

its has some code

Thank you