Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

(13)Permission denied: Error retrieving pid file run/httpd.pid

Tags:

apache

redhat

I have installed httpd-2.2.29 using commands:

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

I configured httpd.conf and tried to start with apache: apachectl start. But got following error:

(13)Permission denied: Error retrieving pid file run/httpd.pid Remove it before continuing if it is corrupted.

I tried to find file httpd.pid, but where is no such file.

Could someone help me resolve such issue?

like image 607
khris Avatar asked Jan 09 '15 14:01

khris


1 Answers

Did you try and start apache as a non privileged user? Permission denied suggests that you did. Try this instead:

$ sudo apachectl start
like image 175
Eilidh Fridlington Avatar answered Sep 29 '22 09:09

Eilidh Fridlington