Results 1 to 3 of 3

Thread: AWStats broken

  1. #1
    Kilo Poster
    Join Date
    Dec 2009
    Posts
    14

    Default AWStats broken

    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. #2
    Parallels Team IgorG's Avatar
    Join Date
    Oct 2009
    Location
    Novosibirsk, Russia
    Posts
    11,948

    Default

    What do you mean "updated"?
    Awstats should be from Parallels:

    # rpm -qa | grep awstats
    awstats-6.95-10102009.swsoft
    psa-awstats-configurator-10.10.1-cos5.build1010110112.13
    Try to reinstall these packages with force at least.



  3. #3
    Kilo Poster
    Join Date
    Dec 2009
    Posts
    19

    Default

    Quote Originally Posted by VicenteS View Post
    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
    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



Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •