I'm having an issue with AWStats updating its temporary database. I have the call to update the reporting database every hour through launchd, which runs as root. The perl scripts are called, and nothing gets updated. Troubleshooting demonstrated the following warning:
Warning: Failed to rename "/tmp/awstats082013.food.tmp.1641" into "/tmp/awstats082013.food.txt". Write permissions on "awstats082013.food.txt" might be wrong or file might be opened.
The permissions on that file is 777. The permissions on /tmp are also 777. Why AWStats cannot modify that file is really the question. I can do this manually using sudo, but the bash script that is run hourly by launchd shouldn't have to take the sudo -A, nor does it work.
Any advice as to how I can push through this, is appreciated.
or file might be opened.
Close Apache, the file is in use, other than that try chown www-data:www-data tmp