I have an issue with Plesk and Awstats not building the html pages for website statistics. Problem is server-wide i.e. it effects all domains.
I've tried to manually run the /usr/local/psa/admin/sbin/statistics with every possible options but all that happens is that awstats calculates new stats to the vhosts /var/www/vhosts/system/domain.tld/statistics/webstat/awstatsMMYYYY.domain.tld-http.txt file. Nothing is put into the /var/www/vhosts/system/domain.tld/statistics/webstat/YYYY-MM folder which should contain the static html pages.
Example listings:
I was able to create the static pages by running Awstats directly:
So things I have already checked:
- Awstat paths in /etc/psa/psa.conf are correct
- Domain configs are ok as awstat can create the stats data and awstats_buildstaticpages.pl can can create the pages just fine
- File permissions are ok
I just cannot figure what the problem is. /usr/local/psa/admin/sbin/statistics doesn't give any errors but on the other hand it doesn't have a debug option either which might be useful.
OS: Ubuntu 14.04.1 LTS
Plesk version: 12.0.18 Update #22
Regards,
Teemu
I've tried to manually run the /usr/local/psa/admin/sbin/statistics with every possible options but all that happens is that awstats calculates new stats to the vhosts /var/www/vhosts/system/domain.tld/statistics/webstat/awstatsMMYYYY.domain.tld-http.txt file. Nothing is put into the /var/www/vhosts/system/domain.tld/statistics/webstat/YYYY-MM folder which should contain the static html pages.
Example listings:
Code:
# ll /var/www/vhosts/system/<domain.tld>/statistics/webstat
total 80
drwxr-xr-x 4 root root 4096 Nov 5 10:58 ./
dr-xr-x--- 6 root psaserv 4096 Oct 23 12:36 ../
drwxr-xr-x 2 root root 4096 Oct 23 13:12 2014-10/
drwxr-xr-x 2 root root 4096 Nov 5 10:56 2014-11/
-rw-r--r-- 1 root root 24761 Nov 1 06:25 awstats102014.<domain.tld>-http.txt
-rw-r--r-- 1 root root 17558 Nov 5 10:58 awstats112014.<domain.tld>-http.txt
lrwxrwxrwx 1 root root 7 Nov 5 10:58 current -> 2014-11/
-rw-r--r-- 1 root root 6874 Nov 5 10:58 dnscachelastupdate.<domain.tld>-http.hash
-rw-r--r-- 1 root root 457 Nov 5 10:58 index.html
-rw-r--r-- 1 root root 937 Nov 5 10:58 nav.html
# ll /var/www/vhosts/system/<domain.tld>/statistics/webstat/current
total 8
drwxr-xr-x 2 root root 4096 Oct 23 13:55 ./
drwxr-xr-x 3 root root 4096 Oct 23 13:23 ../
I was able to create the static pages by running Awstats directly:
Code:
# /usr/share/awstats/tools/awstats_buildstaticpages.pl -awstatsprog=/usr/lib/cgi-bin/awstats.pl -configdir=/usr/local/psa/etc/awstats -config=<domain.tld>-http -dir=/var/www/vhosts/system/<domain.tld>/statistics/webstat/current
So things I have already checked:
- Awstat paths in /etc/psa/psa.conf are correct
- Domain configs are ok as awstat can create the stats data and awstats_buildstaticpages.pl can can create the pages just fine
- File permissions are ok
I just cannot figure what the problem is. /usr/local/psa/admin/sbin/statistics doesn't give any errors but on the other hand it doesn't have a debug option either which might be useful.
OS: Ubuntu 14.04.1 LTS
Plesk version: 12.0.18 Update #22
Regards,
Teemu