awstats_process.sh + cagefs: LogFile not always swapped

Version 1.514

Bugfix
Finished

The config file for awstats: /home/user/domains/domain.com/awstats/.data/awstats.domain.com.conf has a line: LogFile="/var/log/httpd/domains/domain.com.log" With cagefs, this should be swapped to: LogFile="/var/log/user_logs/username/domain.com.log" at the run-time of the awstats_process.sh script. Because the perl regex was run as the User, through "su", it required many characters to escape things correctly. I've swapped it for simpler version. Also, the awstats_process.sh now has VERSION=2.5 set near the top, so we can better track which version of awstats_process.sh is present. ---------- If you want to manually grab the v2.5 of this script, it's here: wget -O /usr/local/directadmin/scripts/awstats_process.sh http://files1.directadmin.com/services/all/awstats/awstats_process.sh which is worth a try if your stats are not updating. Worth checking the LogFile value in the config though to see what it's set to. ----------- UPDATE: version 2.6 fixed the FreeBSD call from /bin/su to /usr/bin/su.

Interested to try DirectAdmin? Get a 30-day Free Trial!