Wednesday, 12 March 2014

Apache error : Error retrieving pid file logs/httpd.pid

Unable to start Apache service on cPanel server.



If you are getting the following error while trying to restart the Apache service.



-------------------------
-bash-3.2# /etc/init.d/httpd start
(20014)Internal error: Error retrieving pid file logs/httpd.pid
Remove it before continuing if it is corrupted.
-------------------------



Solution :-



-bash-3.2# mv /usr/local/apache/logs/httpd.pid /usr/local/apache/logs/httpd.pid.bk
-bash-3.2# /etc/init.d/httpd restart
httpd not running, trying to start



Be sure that the apache service is running :



# /etc/init.d/httpd status

No comments:

Post a Comment