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:
Post new comment