Starting httpd - Error retrieving pid file (null)

Go To StackoverFlow.com

3

I manually compiled and installed httpd on Fedora. I am trying to start it for the first time:

./apachectl start -d ../

and receive the following error:

(20014)Internal error: Error retrieving pid file (null)
 Remove it before continuing if it is corrupted.

Any help would be appreciated!

2012-04-05 20:26
by user1316233
Did you try running it with sudo - Barnes 2012-04-05 20:40


5

You need to remove the httpd.pid file and restart apache or xampp to solve this issue. Following page explains the instructions to remove that file:

Removing the httpd.pid file

2012-05-25 18:14
by Johnny Friend
classic case of why you shouldn't link to external answers... this page no longer exist - duellsy 2014-07-21 00:38


3

I face same problem in ubuntu, and I try to run this code. Try to run :

sudo rm /opt/lampp/httpd.pid

then

sudo /opt/lampp/lampp restart
2012-08-24 06:59
by Redy S


1

A pid file is a file that contains the process id of a daemon (either in the file body or the file name). It is used by a daemon to make sure only one version of it is running at one time. It does this by either checking for the pid files existence or using the flock feature of some os/filesystems to lock it.

The error indicates that it could not access the pid file, which would indicate to my a permissions error.

2012-04-05 20:38
by Andrew Tomazos
I recursively set the permissions on the folder to 755. Still same error - user1316233 2012-04-05 20:44
run it with strace, it will show which pid file it is trying to open (or what it is trying to do that is failing - Andrew Tomazos 2012-04-05 20:54


0

If you have (13)Permission denied: so just add "sudo " and then add your commend.

2016-10-12 16:25
by llioor
Ads