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

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

Advertisements

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 Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s