My ubuntu server, few days ago the access.log and error.log files created under /var/log/apache2, but they still empty, Currently apache is logging into access.log.1 and error.log.1, this issue is happening for all the virtual hosts on my server. all permision are normally "rw-r--r--" and owner root:adm under the /var/log/apache2
here is my /etc/logrotate.d/apache2 "we didn't change it"
/var/log/apache2/*.log {
weekly
missingok
rotate 52
compress
delaycompress
notifempty
create 644 root adm
sharedscripts
postrotate
if [ -f "`. /etc/apache2/envvars ; echo ${APACHE_PID_FILE:-/var/run/apache2.pid}`" ]; then
/etc/init.d/apache2 reload > /dev/null
fi
endscript