Welcome! Log In Create A New Profile


apache2 doesn't start with log files save to RAM

Posted by funtoy1001 
apache2 doesn't start with log files save to RAM
December 12, 2010 12:52PM
I have apache2 running under debian squeeze on a Seagate DockStar of a USB flash drive. To reduce the wear on the USB stick, I want to move all log files to RAM. What I did was created an entry in /etc/fstab to mount /var/log to tmpfs. Things seems to work except apache2. When I manually start apache2, it complains about:
Starting web server: apache2(2)No such file or directory: apache2: could not open error log file /var/log/apache2/error.log.

If I manually crate the directory /var/log/apache2 and create the file, apache2 starts fine. Is there a step or two I am missing so I don't need to do this every time I reboot?

Your Email:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.