Question
Just recently I had noticed that
WebStatistics had broken. When running an update,
I received an error saying that the log file where the stats are stored was not there. I checked, and sure enough the log file for log200708.txt was not created. I have had TWiki running for about 5 months now, and it has always automatically generated and populated the log files for each month.
I thought that as a fix, I would just run
touch log200708.txt and then when I do a stats update, it would just populated that file. This turns out to not be the case. No matter how many times I run the stats update script, it doesn't update the log file.
I have not made any changes to TWiki that would effect this script, and perl hasn't been updated in the mean time (just in case a perl update was the culprit).
Any thoughts or ideas would be greatly appreciated!
Thanks,
Ben
Environment
--
BenjaminRoby - 10 Aug 2007
Answer
If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.
who owns the log file? make sure the correct user (in my case apache) has rw permissions.
--
GrazianoMisuraca - 10 Aug 2007
That fixed the problem of the stats log file not updating. When I had manually created the log file for this month, I did it as root, and forgot to change permissions to apache.
Hopefully next month, TWiki will once again automatically create the new log file and I won't run into this issue.
Thanks for your help!
--
BenjaminRoby - 13 Aug 2007