/var/log/httpd is gone

orangato

Verified User
Joined
Jan 29, 2005
Messages
10
While a friend of mine was clearing out ancient log files on my box, he accidentally removed the /var/log/httpd directory, or symlink, I'm not sure which it actually is.

If anyone could provide me with some assistance in recreating what needs to be there so that Apache will start I'd greatly appreciate it.

Thanks in advance,
Aaron
 
Try simply restarting Apache. If that doesn't work, then create the httpd directory giving it the correct permissions.

Apache should create new log files as needed automatically.
 
I've already tried restarting Apache, no go there. I recreated the httpd directory, wasn't sure on the permissions for it, I thought it was chmod 600, but I'm not sure. Please let me know.

Thanks,
Aaron
 
Is should belong to root:root on linux servers and root:wheel on freebsd.
And chmod'd 755
 
I'm running FreeBSD, and it belongs to root:wheel, and I chmod'd to 755. When I run /usr/local/etc/rc.d/httpd start it gives the no VirtualHosts message and then just sits with a blank line.
 
Also, Exim is not started up. Is that in relation to httpd not starting up? I can't get it start.

I was just looking through the knowledgebase and found the log file setup (http://help.directadmin.com/item.php?id=11)

Basically the contents of /var/log/ is missing now. If It's possible maybe I should just have someone send directories that are supposed to be in /var/log/ since they'd have the correct permissions and such? Just an idea, don't know how else to go about re-creating the directories.

Any ideas?
 
Last edited:
Ok so not the entire /var/log directory is empty? Then yes, I woud say that is your problem. Try rebuilding apache using customapache and removing and readding exim and other applications if their logs are not recreated (they always were on mine).
 
Well, after two custom Apache installs, everything appears to be back up and running. Thank you very much for the help!

Aaron
 
Back
Top