Discussion Locked

Apache Httpd

0 helpful
3 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

My Apache httpd was working great in the past 2 weeks. But this morning when I reboot the server I am no longer able to start the service. Here what the massage said;"[jou@veasna bin]$ ./apachectl start
[Tue Jan 28 21:05:57 2003] [error] (2)No suchfile or directory: could not open
transfer log file /usr/local/apache/htdocs/logs/access_log.
Unable to open logs"
Please help. I didn't reconfigure anything.

Please email me at komara69@yahoo.com
thank you

3 replies

by cpfeiffe

I don't know exactly how you got to this point, but I can tell you how to fix it. Go to the directory /usr/local/apache/htdocs/logs. Does the file access_log exist? If so check permissions on the file and the directories above it. The user whichapache runs as must be able to write to this log file and this directory. The directories above it must allow execute for the user that launches apache. To see what user launches apache you need to look in your apache config file (usually httpd.conf). The default user is nobody. If the file doesn't exist create it (touch access_log) and check permissions. You probably have a directory permission issue, because apache should be able to create the file itself. If the directories themselves don't exist you'll have to create them (mkdir) and figure out why they disappeared. Also, you said you didn't reconfigure but is it possible that someone else pointed the log to a different place in the apache config file or deleted some directories? You can control where this log is written if you want to change it by editing the apache config file. While we're talking apache I should also mention that the default user is nobody, but that is a security risk. You should make an account to run apache (such as www, which is the default in some Linux/Unix versions).

This discussion is closed to new replies.