user1316233
user1316233

Reputation: 161

Starting httpd - Error retrieving pid file (null)

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!

Upvotes: 3

Views: 24206

Answers (5)

Ivan
Ivan

Reputation: 395

I had this issue on termux. i did

su
find -iname httpd.pin

and then

su
rm /sbin/.magisk/mirror/data/data/com.termux/files/usr/var/run/apache2/httpd.pid

Upvotes: 0

llioor
llioor

Reputation: 6238

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

Upvotes: 0

Redy S
Redy S

Reputation: 372

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

Upvotes: 4

Johnny Friend
Johnny Friend

Reputation: 51

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

Upvotes: 5

Andrew Tomazos
Andrew Tomazos

Reputation: 68708

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.

Upvotes: 1

Related Questions