• Halloween is coming! To celebrate the occasion, we dusted off a couple of old skins, and even created a brand new one (Pixel).
    To get into the festive spirit, install the Skins extension.
  • The new Python extension is now available. It allows customers to deploy and manage WSGI-based Python applications on their websites directly from Plesk.
  • The Plesk Mobile apps for iOS and Android and the Plesk Mobile Center extension have been deprecated, and are no longer available for new installations. In Plesk Obsidian 18.0.84, the Plesk Mobile Center extension will be removed from servers during the upgrade, and the Plesk Mobile apps will lose their server management features.
  • The Social Login extension has been deprecated and will be removed in Plesk Obsidian 18.0.84. After that, it will no longer be possible to log in to Plesk with a Google, Facebook, GitHub account, or with a passkey. Plesk usernames and passwords, as well as logging in with a WebPros Account, are not affected.

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