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

=============================>

2 thoughts on “Apache error “Error retrieving pid file logs/httpd.pid”

  1. ӏ just like the valuaƄle info you ρrοvidde foor
    your articles. I will bookmark youг աeblog and take a look at again here frequently.
    I’m somewhat sure I will be told mаny new stuff proper right here!
    Βesst of luck ffor the following!

Leave a comment