views:

17

answers:

0

Hi, i'm using lampp and i'm trying to configure the rotation for the apache log files. I've readed about rotatelogs and i've added this in my httpd.conf:

CustomLog "|/opt/lampp/bin/rotatelogs /opt/lampp/logs/%Y/%m/%d_access_log 86400 +60" common

problem is that i get this error:

Could not open log file '/opt/lampp/logs/2010/07/03_access_log' (No such file or directory) piped log program '/opt/lampp/bin/rotatelogs /opt/lampp/logs/%Y/%m/%d_access_log 86400 +60' failed unexpectedly

i suppose that rotatelogs can't create the file or something like that. Can anyone help me configuring Apache to rotate the logs every week or something like that?

thanks in advance,