I'm using apache 2.2 on ubuntu 12.04. I set up the program rotatelogs to rotate my access log files on one of my virtual hosts. I followed the instructions I found here
https://httpd.apache.org/docs/2.2/progr ... elogs.htmlunder the #Log file locations section in my virtual host config I originally had the following code:
Code:
CustomLog /home/user/public/mysite.com/log/access.log combined
Per the instructions from the apache docs in the above link I changed this code to:
Code:
CustomLog "| /usr/sbin/rotatelogs /home/user/public/mysite.com/log/access.log.%Y-%m-%d 86400" combined
Now it worked perfectly the first night. I checked the log folder at like 12:30 am and there was indeed a new access log file created called access.log.2014-09-20 But when I checked the log folder just now there is no new access log file for today. So yeah there is no access.log.2014-09-21 in my log folder. It was my understanding that adding 86400 would result in the creation of daily logs at midnight.
Any ideas as to what could have caused the program to not make a new log?