• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Statistics problem

A

alexsc

Guest
I'm having a problem with the Plesk statistics.

The statistics are being generated as I can see the files in:
eg /var/www/vhosts/domain.tld/statistics/webstat/

The webstat folder has the index.html etc in there.

The problem is that I can't actually access the generated statistics from:
eg http://domain.tld/plesk-stat/webstat/


Does anyone know what the problem is?

Thanks,
Alex
 
It just comes up with the default MSIE eror: Internet Explorer cannot display the webpage.
 
I'm not a IE user, but I suppose you just mean a 404 error?

Do you get the same results for every domain, or is it just for this single domain? Has it ever worked before on your server?
 
Yes sorry a 404 error.

It works on 2 domains that I am aware of from the 30 or so domains I have.

It's not like it stopped working at a certain point as it doesn't work on some domains I added before the domain that has statistics working.

I ahve a cron job that generates the statistics.
And it is generating them because I can see the files in /var/www/vhosts/domain.tld/statistics/webstat/

So it's just a question of how to access these statistics I guess
 
Originally posted by alexsc
So it's just a question of how to access these statistics I guess [/B]

Well, you should be able to access the statistics via <domain>/webstat or <domain>/plesk-stat/webstat. Of course this only works if you have enable "create web statistics" in the domain's hosting setup in Plesk.

It might be a configuration error, you could run this script to fix your httpd configuration for your domains (I don't know if it'll solve your problem, but it's worth a try):
$ /usr/local/psa/admin/bin/websrvmng -a -v
$ service httpd restart
 
Originally posted by prupert
Well, you should be able to access the statistics via <domain>/webstat or <domain>/plesk-stat/webstat. Of course this only works if you have enable "create web statistics" in the domain's hosting setup in Plesk.

Create web statistics" in the domain's hosting setup in Plesk is enabled, and its working as the statistics are being generated.

I tried the paths you said I should try but neither of them work for most domains. The <domain>/plesk-stat/webstat path works for only teh 2 domians.
I checked all plesk settings between a domain that has statistics working with a domain where it doesn't work, but the settings related to statistics are the same.


Originally posted by prupert
It might be a configuration error, you could run this script to fix your httpd configuration for your domains (I don't know if it'll solve your problem, but it's worth a try):
$ /usr/local/psa/admin/bin/websrvmng -a -v
$ service httpd restart

I just ran those 2 commands and then regenerated the statistics using command $ /usr/local/psa/admin/sbin/statistics but this was unsuccessfull.


Do you know what else could fix the problems I am having?
 
Check the ownership of index.html file in /var/www/vhosts/<yourdomain.tld>/statistics/webstat/ folder. It should be <root><psaserv>, if not then change the ownership. This should solve your problem.
 
There was a problem with my https service.

Its fixed now and the stats are working again :D
 
Back
Top