cPanel clean installation HTTPD not working? getting errors!

Galanthus

Well-Known Member
Nov 8, 2013
87
0
6
cPanel Access Level
Root Administrator
Hi guys,

I dont know what is wrong. I have installed CentOS 6.5 on my linux server. I have installed using the steps on the website. Now the cPanel is installed but when i start HTTPD i get this error:

Code:
root@main [~]# service httpd start
httpd: Syntax error on line 70 of /usr/local/apache/conf/httpd.conf: Cannot load /usr/local/apache/modules/mod_bwlimited.so into server: /usr/local/apache/modules/mod_bwlimited.so: cannot open shared object file: No such file or directory
root@main [~]#
Is this a bug in cPanel? This is a clean installation.
 

SamirJ.

Registered
Jun 11, 2014
3
0
1
Hello,

It appears the mod_bandwidth module is not available on your system, yet the httpd.conf is referring to the module. I would first attempt check the installation log to verify the installation completed without errors as well as the Easy Apache log to ensure it was completed. The logs can be found in the below locations:
Code:
/var/log/cpanel-install.log
/usr/local/cpanel/logs/easy/apache/
If there were any errors, you may need to take corrective action by re-running Easy Apache depending on the error. Details on running EasyApache can be found in our documentation at http://documentation.cpanel.net/display/EA/EasyApache .

You may also try rebuilding the httpd.conf file using the below command prior to attempting a recompile Apache using the below.

Code:
mv -v /usr/local/apache/conf/httpd.conf{,.bak}
/scripts/rebuildhttpdconf
service httpd restart
 

Galanthus

Well-Known Member
Nov 8, 2013
87
0
6
cPanel Access Level
Root Administrator
Hello,

It appears the mod_bandwidth module is not available on your system, yet the httpd.conf is referring to the module. I would first attempt check the installation log to verify the installation completed without errors as well as the Easy Apache log to ensure it was completed. The logs can be found in the below locations:
Code:
root@main [~]# /scripts/rebuildhttpdconf
info [rebuildhttpdconf] Missing IP for domain main.shokuninserver.com, using 5.101.101.133
info [rebuildhttpdconf] Missing ServerName for domain main.shokuninserver.com, using main.shokuninserver.com
info [rebuildhttpdconf] Missing port for domain main.shokuninserver.com, using 80
info [rebuildhttpdconf] Missing user for domain main.shokuninserver.com, using nobody
info [rebuildhttpdconf] Missing owner for domain main.shokuninserver.com, force lookup to root
info [rebuildhttpdconf] Missing group for domain main.shokuninserver.com, using nobody
info [rebuildhttpdconf] Missing IP for domain main.shokuninserver.com, using 5.101.101.133
info [rebuildhttpdconf] Missing ServerName for domain main.shokuninserver.com, using main.shokuninserver.com
info [rebuildhttpdconf] Missing port for domain main.shokuninserver.com, using 80
info [rebuildhttpdconf] Missing user for domain main.shokuninserver.com, using nobody
info [rebuildhttpdconf] Missing owner for domain main.shokuninserver.com, force lookup to root
info [rebuildhttpdconf] Missing group for domain main.shokuninserver.com, using nobody
Initial configuration generation failed with the following message:

Configuration problem detected on line 33 of file /usr/local/apache/conf/httpd.conf.work.F_MsoA_GbtaUymbE:      : Cannot load /usr/local/apache/modules/mod_bwlimited.so into server: /usr/local/apache/modules/mod_bwlimited.so: cannot open shared object file: No such file or directory

        --- /usr/local/apache/conf/httpd.conf.work.F_MsoA_GbtaUymbE ---
        27
        28Include "/usr/local/apache/conf/includes/pre_main_global.conf"
        29Include "/usr/local/apache/conf/includes/pre_main_2.conf"
        30
        31
        32
        33 ===> LoadModule bwlimited_module modules/mod_bwlimited.so <===
        34
        35
        36
        37
        38Include "/usr/local/apache/conf/includes/errordocument.conf"
        39
        --- /usr/local/apache/conf/httpd.conf.work.F_MsoA_GbtaUymbE ---
when trying to recreate httpd file..
 
Last edited:

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,268
463
Hello :)

Do you notice any content added to the /scripts/after_apache_make_install file?

Thank you.
 

Galanthus

Well-Known Member
Nov 8, 2013
87
0
6
cPanel Access Level
Root Administrator
Hello :)

Do you notice any content added to the /scripts/after_apache_make_install file?

Thank you.

this is what i get:

Code:
2014-07-02 14:22:55  724 ( INFO): Thank you for installing cPanel & WHM 11.44!
2014-07-02 14:22:55  570 ( WARN): !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
2014-07-02 14:22:55  571 ( WARN): Your system kernel may have been updated.
2014-07-02 14:22:55  572 ( WARN): Current kernel (2.6.32-431.1.2.0.1.el6.x86_64) has been changed to: 2.6.32-431.el6.x86_64
2014-07-02 14:22:55  573 ( WARN): Before rebooting the system, please ensure that the installed kernel version is compatible with your deployment.
2014-07-02 14:22:55  583 ( WARN): !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
[root@wordpress ~]# service httpd start
httpd: Syntax error on line 54 of /usr/local/apache/conf/httpd.conf: Cannot load /usr/local/apache/modules/mod_bwlimited.so into server: /usr/local/apache/modules/mod_bwlimited.so: cannot open shared object file: No such file or directory
[root@wordpress ~]# cd /usr/local/apache/modules/
bash: cd: /usr/local/apache/modules/: No such file or directory
[root@wordpress ~]#
Complet MODULES directory doesn't excist at all.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,268
463
Please open a support ticket so we can take a closer look. You can post the ticket number here so we can update this thread with the outcome.

Thank you.