1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

Statistics problem

Discussion in 'Plesk for Linux - 8.x and Older' started by alexsc, Sep 26, 2006.

  1. alexsc

    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?

  2. prupert

    prupert Guest

    Which errors do you get?
  3. alexsc

    alexsc Guest

    It just comes up with the default MSIE eror: Internet Explorer cannot display the webpage.
  4. prupert

    prupert Guest

    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?
  5. alexsc

    alexsc Guest

    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
  6. prupert

    prupert Guest

    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
  7. alexsc

    alexsc Guest

    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.

    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?
  8. akumarjain

    akumarjain Guest

    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.
  9. alexsc

    alexsc Guest

    There was a problem with my https service.

    Its fixed now and the stats are working again :D