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

AWStats broken

Discussion in 'Plesk 10.x for Linux Issues, Fixes, How-To' started by VicenteS, Mar 2, 2011.

  1. VicenteS

    VicenteS New Pleskian

    21
    90%
    Joined:
    Dec 3, 2009
    Messages:
    17
    Likes Received:
    0
    My awstats are not updating statistics anymore.

    I have updated awstats to 6.95 and seems that something has broken psa-awstats configuration

    When awstats is making cache config file is read wrong (something like awstats_buildstaticpages.DOMAIN-http.conf instad of DOMAIN-http.conf)

    How can I reisntall awstats with the right configuration?

    Thanks

    Create/Update database for config "/opt/psa/etc/awstats/awstats.DOMAIN-http.conf" by AWStats version 6.95 (build 1.943)
    From data in log file "-"...
    Phase 1 : First bypass old records, searching new record...
    Searching new records from beginning of log file...
    Jumped lines in file: 0
    Parsed lines in file: 0
    Found 0 dropped records,
    Found 0 corrupted records,
    Found 0 old records,
    Found 0 new qualified records.
    Error: Couldn't open config file "awstats_buildstaticpages.DOMAIN-http.conf" nor "awstats_buildstaticpages.conf" after searching in path "/opt/psa/etc/awstats": No existe el fichero o el directorio

    - Did you use correct config parameter ?
    Example: If your config file is awstats.mysite.conf, use -config=mysite
    - Did you create your config file 'awstats.DOMAIN-http.conf' ?
    If not, you can run "awstats_configure.pl"
    from command line, or create it manually.

    Check config file, permissions and AWStats documentation (in 'docs' directory).
    statistics: Unable to execute /usr/share/doc/awstats/examples/awstats_buildstaticpages.pl -awstatsprog=/usr/lib/cgi-bin/awstats.pl -configdir=/opt/psa/etc/awstats -config=DOMAIN -http -dir=/var/www/vhosts/DOMAIN/statistics/webstat/current
     
  2. IgorG

    IgorG Forums Analyst Staff Member

    49
    24%
    Joined:
    Oct 27, 2009
    Messages:
    24,576
    Likes Received:
    1,244
    Location:
    Novosibirsk, Russia
    What do you mean "updated"?
    Awstats should be from Parallels:

    Try to reinstall these packages with force at least.
     
  3. MeaC

    MeaC New Pleskian

    20
    73%
    Joined:
    Dec 16, 2009
    Messages:
    20
    Likes Received:
    0
    I have this exact same error message since I recently upgraded from Debian Lenny to Squeeze.

    Here's my setup scenario:

    OS: Debian 6.0.3 / Squeeze (Kernel: 2.6.32-5)

    # aptitude show awstats
    Package: awstats
    State: installed
    Version: 6.9.5~dfsg-5

    # aptitude show psa-awstats-configurator
    Package: psa-awstats-configurator
    State: installed
    Version: 10.12.0-debian6.0.build1012110621.18

    It seems that somehow in the Squeeze upgrade process the "awstats" package was (and still is) preferred over the plesk "awstats" package. Since I have no clue whatsoever on how to change that, here's a hint what seems to have worked for me:

    ln -s /usr/share/awstats/tools/awstats_buildstaticpages.pl /usr/share/doc/awstats/examples/awstats_buildstaticpages.pl
     
Loading...