(13) Permission denied: error loading pid / httpd.pid file

I installed httpd-2.2.29 using the commands:

./configure --prefix=/home/user/httpd make make install 

I configured httpd.conf and tried to start apache: apachectl start. But the following error appeared: (13) Permission denied: error loading pid / httpd.pid file Delete it before continuing if it is damaged.

I tried to find the httpd.pid file, but where there is no such file. Can someone help me solve this problem?

+6
source share
2 answers

Have you tried running apache as a non-privileged user? Permission denied indicates that you have done so. Try instead:

 $ sudo apachectl start 
+9
source

I use:

 $ sudo service httpd start 

At the launch site, you can place a stop, reboot, etc.

+2
source

Source: https://habr.com/ru/post/980767/


All Articles