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

Posted: 4p in Apache

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
Comments
  1. Daryl says:

    ӏ 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!

  2. It is not my first time to pay a quick visit this
    site, i am visiting this web page dailly and obtain good facts from here all the
    time.

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