access_log seems to be permanently size 0. But error_log is written to fine.
Surprisingly access_log.[1-5].gz are created but only access_log.3.gz and access_log.4.gz contain non-empty logs.
Ok, so here is the logrotate.conf that is also in the logfiles directory:
# create new (empty) log files after rotating old ones
create
# compress old logs with gzip
compress
/home/default/example.com/user/logfiles/access_log {
missingok
rotate 5
daily
postrotate
/usr/bin/killall -HUP syslogd
endscript
}
/home/default/example.com/user/logfiles/error_log {
missingok
rotate 5
size=5M
postrotate
/bin/kill -USR1 `cat /var/run/httpd.pid`
endscript
}
/home/default/example.com/user/logfiles/agent_log {
missingok
rotate 5
size=5M
postrotate
/bin/kill -USR1 `cat /var/run/httpd.pid`
endscript
}
/home/default/example.com/user/logfiles/referer_log {
missingok
rotate 5
size=5M
postrotate
/bin/kill -USR1 `cat /var/run/httpd.pid`
endscript
}
There are no agent_log, referer_log files though. So is there something obviously wrong with this logrotate.conf? If not, how do I even know if this file is being used or is the problem? I can post more info if needed.
The server is Ubuntu 8.10 by the way.
Update: htttd.pid doesn't even exist.
ubuntu:~# cat /var/run/httpd.pid
cat: /var/run/httpd.pid: No such file or directory