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?
TIA