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

awstat does not work

Discussion in 'Plesk 11.x for Linux' started by maumar, Aug 11, 2012.

  1. maumar

    maumar New Pleskian

    22
    57%
    Joined:
    Feb 8, 2006
    Messages:
    19
    Likes Received:
    0
    this is plesk 11 debian 6 fully updated
    awstats does not produce any statistics for each domain for which we have configured.
    Further, we are not able to trace th eissue as we can't find awastats logs
    Can you provide us some way to enable awstat logs?
    many thnx
     
  2. abdi

    abdi Platinum Pleskian

    31
    18%
    Joined:
    May 14, 2006
    Messages:
    2,913
    Likes Received:
    60
    Try recalculating domain Stats with the command ...

    /usr/local/psa/admin/sbin/statistics --calculate-one --domain-name=yourdomain.com
     
  3. maumar

    maumar New Pleskian

    22
    57%
    Joined:
    Feb 8, 2006
    Messages:
    19
    Likes Received:
    0
    Hello abdi
    you are always welcome :) in ancient greek, a guy like you was a "Soter/Soteros" :)
    so, following ur suggestion i was able to fix the issue

    Code:
    /usr/local/psa/admin/sbin/statistics --calculate-one --domain-name=example.com
    
    
    
    WARNING during statistics_collector execution: : statistics_collector: Unable to execute /usr/share/doc/awstats/examples/awstats_buildstaticpages.pl -awstatsprog=/usr/lib/cgi-bin/awstats.pl -configdir=/opt/psa/etc/awstats -config=manomarine.com-http -dir=/var/www/vhosts/manomarine.com/statistics/webstat/2012-07 -month=7 -year=2012  >/dev/null 2>&1
    
    System error 17: File exists
    statistics_collector: Unable to execute /usr/share/doc/awstats/examples/awstats_buildstaticpages.pl -awstatsprog=/usr/lib/cgi-bin/awstats.pl -configdir=/opt/psa/etc/awstats -config=manomarine.com-http -dir=/var/www/vhosts/manomarine.com/statistics/webstat/current  >/dev/null 2>&1
    
    System error 2: No such file or directory
    statistics_collector: Unable to execute /usr/share/doc/awstats/examples/awstats_buildstaticpages.pl -awstatsprog=/usr/lib/cgi-bin/awstats.pl -configdir=/opt/psa/etc/awstats -config=manomarine.com-https -dir=/var/www/vhosts/manomarine.com/statistics/webstat-ssl/2012-07 -month=7 -year=2012  >/dev/null 2>&1
    
    System error 17: File exists
    statistics_collector: Unable to execute /usr/share/doc/awstats/examples/awstats_buildstaticpages.pl -awstatsprog=/usr/lib/cgi-bin/awstats.pl -configdir=/opt/psa/etc/awstats -config=manomarine.com-https -dir=/var/www/vhosts/manomarine.com/statistics/webstat-ssl/current  >/dev/null 2>&1
    
    System error 2: No such file or directory
    statistics_collector: Unable to execute /usr/share/doc/awstats/examples/awstats_buildstaticpages.pl -awstatsprog=/usr/lib/cgi-bin/awstats.pl -configdir=/opt/psa/etc/awstats -config=manomarine.com-anon_ftp -dir=/var/www/vhosts/manomarine.com/statistics/anon_ftpstat/current  >/dev/null 2>&1
    
    System error 2: No such file or directory
    statistics_collector: Unable to execute /usr/share/doc/awstats/examples/awstats_buildstaticpages.pl -awstatsprog=/usr/lib/cgi-bin/awstats.pl -configdir=/opt/psa/etc/awstats -config=manomarine.com-ftp -dir=/var/www/vhosts/manomarine.com/statistics/ftpstat/current  >/dev/null 2>&1
    
    System error 2: No such file or directory
    error: error accessing /var/lib/tomcat6/logs: No such file or directory
    error: tomcat:1 glob failed for /var/lib/tomcat6/logs/*.log
    
    
    now i try to locate it:
    Code:
    locate awstats_buildstaticpages.pl
    /usr/share/awstats/tools/awstats_buildstaticpages.pl
    
    and using /usr/share/awstats/tools/awstats_buildstaticpages.pl i got some results

    so i could say that:

    the script uses a non-existent /usr/share/doc/awstats/examples/awstats_buildstaticpages.pl
    to fix it it's enough:

    Code:
    ln -s  /usr/share/awstats/tools/awstats_buildstaticpages.pl /usr/share/doc/awstats/examples/awstats_buildstaticpages.pl
    
    thsn
    Code:
    /usr/local/psa/admin/sbin/statistics --calculate-one --domain-name=example.com
    
    WARNING during statistics_collector execution: : error: error accessing /var/lib/tomcat6/logs: No such file or directory
    error: tomcat:1 glob failed for /var/lib/tomcat6/logs/*.log
    
    
     
  4. abdi

    abdi Platinum Pleskian

    31
    18%
    Joined:
    May 14, 2006
    Messages:
    2,913
    Likes Received:
    60
    Your most welcome Maumar!
     
  5. JustinGivens

    JustinGivens Basic Pleskian

    15
    85%
    Joined:
    Dec 31, 2011
    Messages:
    60
    Likes Received:
    0
    I get the follow when I run the command.
    Code:
    [super@mydomain ~]# /usr/local/psa/admin/sbin/statistics --calculate-one --domain-name=my-example.com
    
    WARNING during statistics_collector execution: : statistics_collector: Unable to execute /usr/share/awstats/awstats_buildstaticpages.pl -awstatsprog=/var/www/cgi-bin/awstats/awstats.pl -configdir=/usr/local/psa/etc/awstats -config=my-example.com-http -dir=/var/www/vhosts/my-example.com/statistics/webstat/2012-07 -month=7 -year=2012  >/dev/null 2>&1
    
    System error 17: File exists
    statistics_collector: Unable to execute /usr/share/awstats/awstats_buildstaticpages.pl -awstatsprog=/var/www/cgi-bin/awstats/awstats.pl -configdir=/usr/local/psa/etc/awstats -config=my-example.com-http -dir=/var/www/vhosts/my-example.com/statistics/webstat/current  >/dev/null 2>&1
    
    System error 2: No such file or directory
    statistics_collector: Unable to execute /usr/share/awstats/awstats_buildstaticpages.pl -awstatsprog=/var/www/cgi-bin/awstats/awstats.pl -configdir=/usr/local/psa/etc/awstats -config=my-example.com-https -dir=/var/www/vhosts/my-example.com/statistics/webstat-ssl/current  >/dev/null 2>&1
    
    System error 2: No such file or directory
    statistics_collector: Unable to execute /usr/share/awstats/awstats_buildstaticpages.pl -awstatsprog=/var/www/cgi-bin/awstats/awstats.pl -configdir=/usr/local/psa/etc/awstats -config=my-example.com-anon_ftp -dir=/var/www/vhosts/my-example.com/statistics/anon_ftpstat/current  >/dev/null 2>&1
    
    System error 2: No such file or directory
    statistics_collector: Unable to execute /usr/share/awstats/awstats_buildstaticpages.pl -awstatsprog=/var/www/cgi-bin/awstats/awstats.pl -configdir=/usr/local/psa/etc/awstats -config=my-example.com-ftp -dir=/var/www/vhosts/my-example.com/statistics/ftpstat/current  >/dev/null 2>&1
    
    System error 2: No such file or directory
    error: error accessing /usr/share/tomcat5/logs: No such file or directory
    error: tomcat:1 glob failed for /usr/share/tomcat5/logs/*.log
    
    When I do the locate, I get the following. Which makes the location above..
    Code:
    [super@mydomain ~]# locate awstats_buildstaticpages.pl
    /usr/share/awstats/awstats_buildstaticpages.pl
    
    So then I did the follow line, and that makes the location above as well..
    Code:
    [super@mydomain ~]# locate awstats.pl
    /var/www/cgi-bin/awstats/awstats.pl
    
    Any ideas on to fix this?
     
  6. maumar

    maumar New Pleskian

    22
    57%
    Joined:
    Feb 8, 2006
    Messages:
    19
    Likes Received:
    0
    what u get when try to execute the command

    /usr/share/awstats/awstats_buildstaticpages.pl -awstatsprog=/var/www/cgi-bin/awstats/awstats.pl -configdir=/usr/local/psa/etc/awstats -config=my-example.com-http -dir=/var/www/vhosts/my-example.com/statistics/webstat/current
     
  7. abdi

    abdi Platinum Pleskian

    31
    18%
    Joined:
    May 14, 2006
    Messages:
    2,913
    Likes Received:
    60
Loading...