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/httpsd start
(20014)Internal error: Error retrieving pid file logs/httpsd.pid
Remove it before continuing if it is corrupted.
Just move/rename the httpsd.pid file as httpsd.pid.bk
-bash-3.2# mv /usr/local/apache/logs/httpsd.pid /usr/local/apache/logs/httpsd.pid.bk
-bash-3.2# /etc/init.d/httpsd restart
httpsd not running, trying to start
Be sure that the apache service is running :
# /etc/init.d/httpsd status