In some cases, the server won’t allow you to restart the apache service in it.
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.
Just move/rename the httpd.pid file as httpd.pid.bk
-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
There are no revisions for this post.