PDA

View Full Version : Apache configuration logging


Mat
04-23-2009, 03:11 PM
Hey Everyone,

We are giving Litespeed a try and it is working great except for logging!

We have a custom log format defined in the httpd.conf
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" \"%{Cookie}i\"" combined

And we are using cronolog on the virtualhost for archiving and separating files. Inside each vhost is a 'CustomLog' directive:
CustomLog "|/usr/sbin/cronolog --symlink=/var/log/httpd/site.com-access_log --prev-symlink=/var/log/http/yesterday_site.com-access_log /var/log/httpd/site.com-%Y.%m.%d" combined

But nothing is being logged to our files once we have switched away from Apache. I have set /var/log/httpd to be owned by Litespeed user along with the relevant log files.

Am I missing anything?

mistwang
04-23-2009, 08:19 PM
It should work. Is there any /usr/sbin/cronolog process running?
If yes, please strace those processes.

mistwang
04-23-2009, 08:28 PM
Tried it in our lab, it works.