I have simply installed cPanel 11.50 on Amazon VPS CentOS 7 Server recently and after that i found my website not propagating online because of apache was not working and check below error on server through below command on Centos 7 .
[email protected] [~]# systemctl status httpd.service -l httpd.service - Apache webserver managed by cPanel EasyApache Loaded: loaded (/etc/systemd/system/httpd.service; enabled) Active: failed (Result: exit-code) since Thu 2015-09-24 08:24:20 UTC; 49s ago Process: 17066 ExecStart=/usr/local/cpanel/scripts/restartsrv_httpd --no-verbose (code=exited, status=1/FAILURE) Sep 24 08:24:20 cpanel.techtransit.org systemd: Starting Apache webserver managed by cPanel EasyApache... Sep 24 08:24:20 cpanel.techtransit.org restartsrv_httpd: httpd: Syntax error on line 30 of /usr/local/apache/conf/httpd.conf: Cannot load modules/mod_bwlimited.so into server: /usr/local/apache/modules/mod_bwlimited.so: cannot open shared object file: No such file or directory Sep 24 08:24:20 cpanel.techtransit.org systemd: httpd.service: control process exited, code=exited status=1 Sep 24 08:24:20 cpanel.techtransit.org systemd: Failed to start Apache webserver managed by cPanel EasyApache. Sep 24 08:24:20 cpanel.techtransit.org systemd: Unit httpd.service entered failed state.
I checked about error but my module was showing properly and not really see any syntax error there. After I rebuild apache via EasyApache in cPanel and It worked perfectly and Now apache running properly.
You can check below image or follow point for Rebuild apache in cpanel.
STEPS FOR REBUILD :
(1) Login into WHM/cPanel
(2) In the Find box type Easy and Click on EasyApache or You can find like below .
Home ==> Software ==> EasyApache (Apache Update)
(3) Click on Next Step and select and choose customezed based profile .
(4) In next step select apache version you wish to build and Now click on Next steps.
(5) Select PHP Version .
(6) On the next screen, You can select default module which is most of the use or you can select Exahustive Option List , if any module not in the list and Now click on Save and build button.
I am a professional freelance contributor and founder of tech transit. Love to write and lover of education, culture, and community. I have been using it, setting, supporting, and maintaining it since 2009.Linux rocks!