Forum Moderators: phranque
I feel just full of problems these days and am grateful for any assistance you can provide. Thank you in advance.
My ystem: Apaache web server on Linux (RHN Enterprise edition 4)
Here is the problem:
When I try to start up apache (or restart it gracefully) I get the following error:
(13) permission denied: error retrieving pid file run/httpd.pid
I've double checked the run directory in the httpd folder- the pid is in there. I've looked at the httpd config file, and its also pointing to the right place. I've checked the folder permissions too- they are in order. So I'm a bit stumped.
The thing is, before I restarted the machine, I got an "unable to open log files" error when trying to restart apache. Since I restarted the server, however, I haven't seen this error, only the PID error.
Now I've been dealing with a large log file issue - the files are 5.5 gigs a piece. I've tried to use logrotate to cut them down but it doesn't seem to be working (which may have prompted this entire situation to begin with). I wonder if this has anything to do with it?
I can get apache running using this command:
killall -9 httpd
httpd -k start
But I would LOVE to solve this problem.
Any suggestions? I can provide readouts of any files you think are helpful. I'm very much a newbie to all of this, so I appriciate your assitance and paitence. Thank you so much :)