Running httpd - Error getting pid file (null)

I manually compiled and installed httpd

on Fedora. I am trying to run it the first time:

./apachectl start -d ../

      

and get the following error:

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

      

Any help would be appreciated!

+3


source to share


4 answers


You need to delete the httpd.pid file and restart apache or xampp to fix this issue. The next page provides instructions on how to remove this file:



Deleting the httpd.pid file

+5


source


I am facing the same problem in ubuntu and I am trying to run this code. Try to run:

sudo rm /opt/lampp/httpd.pid

      



then

sudo /opt/lampp/lampp restart

      

+3


source


A pid file is a file that contains the daemon's process ID (either in the body of the file or in the filename). It is used by the daemon to ensure that only one version runs at a time. It does this by either checking for the existence of pid files, or using the flock function of some os / filesystems to block it.

The error indicates that it was unable to access the pid file, which indicates my permission error.

+1


source


If you have (13)Permission denied:

, just add "sudo" and then add your rating.

0


source







All Articles