Preparing Apache

Out of the box, very little needs to be done to Apache for it to work with LoggerFS. The most important thing is to remember that in order for LoggerFS to process the apache logs, the logs have to be where we mount LoggerFS to. For the apache installation in RHEL5, this is the /var/log/httpd[i] directory. If you use vhosts, you'll want to be sure to make these logs inside of this directory, ie, in your vhost, you'd have something like [i]CustomLog "/var/log/httpd/MyServerName_access_log". You'd then set the <location> to MyServerName_access_log in the LoggerFS logs.xml file, as shown in the example below.

For your first installation, you may also wish to move the error_log (ie, set ErrorLog /tmp/error_log in httpd.conf) file to a temporary location, or else Apache will fail to start:

[root@localhost ~]# /etc/init.d/httpd start
Starting httpd: (5)Input/output error: httpd: could not open error log file /etc/httpd/logs/error_log.
Unable to open logs                           [FAILED]

Post new comment

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Copy the characters (respecting upper/lower case) from the image.