adboy

Registered
Apr 9, 2016
1
0
1
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 :(
 

SysSachin

Well-Known Member
Aug 23, 2015
604
48
28
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.
 
  • Like
Reactions: sohrab

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,909
2,222
463
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.
 
  • Like
Reactions: sohrab