Home / Linux  / Failed to start Apache cPanel CentOS

Failed to start Apache cPanel CentOS

I  have simply installed 11.50 on Amazon  VPS  CentOS 7  Server recently and after that i found my website not propagating online  because of was not working and check below on server through below command on Centos 7 .

[email protected] [~]# systemctl status httpd.service -l    httpd.service - Apache webserver managed by cPanel     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[1]: Starting Apache webserver managed by cPanel ...    Sep 24 08:24:20 cpanel.techtransit.org restartsrv_httpd[17066]: 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[1]: httpd.service: control process exited, code=exited status=1    Sep 24 08:24:20 cpanel.techtransit.org systemd[1]: Failed to start Apache webserver managed by cPanel EasyApache.    Sep 24 08:24:20 cpanel.techtransit.org systemd[1]: Unit httpd.service entered failed state.    

SOLUTION :

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)

error easyapache cPanel Apache

(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.

error easyapache cPanel Apache
It will take time to finish build .After that you check apache running status.

A Linux Geek with Freelance Contributor, Server/ Cloud Administrator having 6+ Years experience in Open Source and Cloud Technologies.

Review overview
NO COMMENTS

POST A COMMENT