Stats etc problems? :S

Discussion in 'Installation/Configuration' started by pne, Feb 16, 2007.

  1. pne

    pne New Member

    Heya!

    I got a problem with stats..

    when you visit (eg) /web19/web/awstats or /stats
    It asks for pass and so to "Member's Only!".

    When you enter the correct information you endup with a Forbidden code up your face :p

    When i looked up the /stats and /awstats directory theres nothing there except .htaccess :/

    What can be wrong, and how can I fix this? I've been trying this whole day to setup different awstats packages but noone seems to be working :/

    Also, about webalizer.. I don't think that works either, I don't have a clue where it should be or so, can someone help me?

    Thanks

    /pne
     
  2. edge

    edge Active Member Moderator

    With a new site, you will need to wait till 04:00 AM for the stat to be created.

    So try again tomorrow...
     
  3. pne

    pne New Member

    Well, It's been the same since i installed it.. on ALL my sites :/
    Been ~25 days now with nothing :eek:


    Edit:

    w -awstatsprog="/home/admispconfig/ispconfig/web/ispc.awstats/awstats.pl".pl now
    Running '"/home/admispconfig/ispconfig/web/ispc.awstats/awstats.pl" -update -config=shared -configdir="/etc/awstats"' to update c onfig shared
    Update for config "/etc/awstats/awstats.shared.conf"
    With data in log file "/var/log/apache2/access.log"...
    Phase 1 : First bypass old records, searching new record...
    Searching new records from beginning of log file...
    Phase 2 : Now process new records (Flush history on disk after 20000 hosts)...
    Jumped lines in file: 0
    Parsed lines in file: 3838
    Found 10 dropped records,
    Found 0 corrupted records,
    Found 0 old records,
    Found 3828 new qualified records.

    Then it created this file: awstats022007.shared.txt

    In the same directory as awstats.pl
    (/home/admispconfig/ispconfig/web/ispc.awstats/)

    Also i had to use the apache2 log:
    LogFile="/var/log/apache2/access.log"

    How can I configure it to run for each user? :S

    /pne
     
    Last edited: Feb 16, 2007
  4. falko

    falko Super Moderator ISPConfig Developer

    What's the output of
    Code:
    which webalizer
    ?
    Do you use the correct username (something like web1_someuser) and password to log in? Don't mix up system users (like web1_someuser) with ISPConfig users (like admin, resellers, clients). ISPConfig users cannot log in to the statistics.
     
  5. pne

    pne New Member

    wich webalizer
    /usr/bin/webalizer

    I also did that.. Loged into ISPconfig, went to the site and removed "Webalizer Statistics" then after some mins i added it again (Saved etc ofc between).

    But the /web19/web/awstats
    and /web19/web/stats
    is empty.

    What user & password should i login with?

    I'm trying web19_name and the password.

    Sincerly
     
  6. falko

    falko Super Moderator ISPConfig Developer

    Looks ok.
    What's the output of
    Code:
    crontab -l
    (run as root)?
     
  7. pne

    pne New Member

    30 00 * * * /root/ispconfig/php/php /root/ispconfig/scripts/shell/logs.php &> /dev/null
    59 23 * * * /root/ispconfig/php/php /root/ispconfig/scripts/shell/ftp_logs.php &> /dev/null
    59 23 * * * /root/ispconfig/php/php /root/ispconfig/scripts/shell/mail_logs.php &> /dev/null
    59 23 * * * /root/ispconfig/php/php /root/ispconfig/scripts/shell/cleanup.php &> /dev/null
    0 4 * * * /root/ispconfig/php/php /root/ispconfig/scripts/shell/webalizer.php &> /dev/null
    0,30 * * * * /root/ispconfig/php/php /root/ispconfig/scripts/shell/check_services.php &> /dev/null
    15 3,15 * * * /root/ispconfig/php/php /root/ispconfig/scripts/shell/quota_msg.php &> /dev/null
    40 00 * * * /root/ispconfig/php/php /root/ispconfig/scripts/shell/traffic.php &> /dev/null
    05 02 * * * /root/ispconfig/php/php /root/ispconfig/scripts/shell/backup.php &> /dev/null
    0 4 * * * /root/ispconfig/php/php /root/ispconfig/scripts/shell/awstats.php &> /dev/null
    0 6 * * * /home/admispconfig/ispconfig/web/ispc.awstats/awstats_updateall.pl now -awstatsprog="/home/admispconfig/ispconfig/web/ispc.awstats/awstats.pl"
     
  8. pne

    pne New Member

    If this can be any information:

    Running '"/home/admispconfig/ispconfig/web/ispc.awstats/awstats.pl" -update
    -config=shared -configdir="/etc/awstats"' to update config shared
    Update for config "/etc/awstats/awstats.shared.conf"
    With data in log file "/var/log/apache2/access.log"...
    Phase 1 : First bypass old records, searching new record...
    Direct access to last remembered record is out of file.
    So searching it from beginning of log file...
    Phase 2 : Now process new records (Flush history on disk after 20000 hosts)...
    Jumped lines in file: 0
    Parsed lines in file: 1399
    Found 4 dropped records,
    Found 0 corrupted records,
    Found 0 old records,
    Found 1395 new qualified records.


    For a crontab process (my log program mails all cronworks to me)

    Hope that helps something :s
     
  9. falko

    falko Super Moderator ISPConfig Developer

    Do you want to have AWstats or Webalizer stats?
     
  10. pne

    pne New Member

    Both if possible, else i want AWstats :)

    Sincerly
     
  11. pne

    pne New Member

    I got people needing this :/
    Anyone got any idea? :|

    Cheers
     
  12. falko

    falko Super Moderator ISPConfig Developer

    Please run
    Code:
    /root/ispconfig/php/php /root/ispconfig/scripts/shell/logs.php &> /dev/null
    /root/ispconfig/php/php /root/ispconfig/scripts/shell/webalizer.php &> /dev/null
    before 12.00h. What's the output?
     
  13. pne

    pne New Member

    For 1 minute ago:

    server1:~# /root/ispconfig/php/php /root/ispconfig/scripts/shell/logs.php &> /dev/null
    server1:~# /root/ispconfig/php/php /root/ispconfig/scripts/shell/webalizer.php &> /dev/null
    server1:~#


    Cheers

    Also: How does this Suspend work?
    I tried changing a friends account to 10 MB traffic, and he had used 11.
    It was marked red, but the site still worked?
    Sincerly
     
  14. till

    till Super Moderator Staff Member ISPConfig Developer

    The permissions of the files in the site are changed so they where inaccessible by the webserver and admin user.
     
  15. pne

    pne New Member

    Okok, but the site still works? As usual?
    Thats what happened to me :)
    Cheers
     
  16. falko

    falko Super Moderator ISPConfig Developer

    Which suspension settings do you use for that web site?
     
  17. pne

    pne New Member

    "Suspend"

    :) in that dropdown menu

    btw, you know about the stats thingy? :S

    Cheers
     
  18. pne

    pne New Member

    Hmm.. If I want to use AWStats, what can be the problem in this case?

    I got a global webalizer that runs.

    Cheers
     
  19. falko

    falko Super Moderator ISPConfig Developer

    Does the site still work?
    What's the output of
    Code:
    crontab -l
    and
    Code:
    ls -la /path/to/web
    of that web site?
     
  20. pne

    pne New Member

    Yeah the site worked as usual :<

    crontab -l:
    server1:~# crontab -l
    30 00 * * * /root/ispconfig/php/php /root/ispconfig/scripts/shell/logs.php &> /dev/null
    59 23 * * * /root/ispconfig/php/php /root/ispconfig/scripts/shell/ftp_logs.php &> /dev/null
    59 23 * * * /root/ispconfig/php/php /root/ispconfig/scripts/shell/mail_logs.php &> /dev/null
    59 23 * * * /root/ispconfig/php/php /root/ispconfig/scripts/shell/cleanup.php &> /dev/null
    0 4 * * * /root/ispconfig/php/php /root/ispconfig/scripts/shell/webalizer.php &> /dev/null
    0,30 * * * * /root/ispconfig/php/php /root/ispconfig/scripts/shell/check_services.php &> /dev/null
    15 3,15 * * * /root/ispconfig/php/php /root/ispconfig/scripts/shell/quota_msg.php &> /dev/null
    40 00 * * * /root/ispconfig/php/php /root/ispconfig/scripts/shell/traffic.php &> /dev/null
    05 02 * * * /root/ispconfig/php/php /root/ispconfig/scripts/shell/backup.php &> /dev/null
    0 4 * * * /root/ispconfig/php/php /root/ispconfig/scripts/shell/awstats.php &> /dev/null
    0 6 * * * /home/admispconfig/ispconfig/web/ispc.awstats/awstats_updateall.pl now -awstatsprog="/home/admispconfig/ispconfig/web/ispc.awstats/awstats.pl"


    ls -la /var/www/web19:

    server1:~# ls -la /var/www/web19
    total 48
    drwxr-xr-x 8 web19_no web19 4096 2007-02-27 14:41 .
    drwxr-xr-x 52 root root 4096 2007-02-27 17:42 ..
    drwxrwxr-x 2 web19_no web19 4096 2007-02-04 00:34 cgi-bin
    -rw------- 1 web19_no web19 24 2007-02-27 14:41 .forward
    -rw-rw-r-- 1 root web19 23 2007-02-27 04:00 .htpasswd
    -rw-r--r-- 1 root root 78 2007-02-04 00:51 index.php
    drwxr-xr-x 2 web19_no web19 4096 2007-02-04 00:34 log
    lrwxrwxrwx 1 root root 36 2007-02-27 14:41 Maildir -> /var/www/web19/user/web19_no/Maildir
    drwxrwxrwx 2 web19_no web19 4096 2007-02-04 00:34 phptmp
    -rw-r--r-- 1 root root 450 2007-02-27 14:41 .procmailrc
    drwxr-xr-x 2 web19_no web19 4096 2007-02-04 00:34 ssl
    drwxr-xr-x 3 web19_no web19 4096 2007-02-04 00:34 user
    lrwxrwxrwx 1 root root 44 2007-02-27 14:41 .vacation.cache -> /var/www/web19/user/web19_no/.vacation.cache
    drwxrwxr-x 9 web19_no web19 4096 2007-02-16 18:09 web

    ls -la /var/www/web19/web
    server1:~# ls -la /var/www/web19/web
    total 68
    drwxrwxr-x 9 web19_no web19 4096 2007-02-16 18:09 .
    drwxr-xr-x 8 web19_no web19 4096 2007-02-27 14:41 ..
    drwxr-xr-x 2 web19_no web19 4096 2007-02-04 04:00 awstats
    -rw-r--r-- 1 web19_no web19 1184 2007-02-10 16:27 *.php
    drwx---rwx 3 web19_no web19 4096 2007-02-10 16:28 otherdir/
    -rw-r--r-- 1 web19_no web19 2130 2007-02-14 21:53 *.php
    drwxrwxr-x 2 web19_no web19 4096 2007-02-04 01:15 error
    -rw-r--r-- 1 web19_no web19 793 2007-02-10 16:27 *.js
    -rw-r--r-- 1 web19_no web19 3319 2007-02-21 21:44 index.php
    drwxr-xr-x 3 web19_no web19 4096 2007-02-10 17:13 otherdir/
    drwxr-xr-x 2 web19_no web19 4096 2007-02-10 16:29 otherdir/
    -rw-r--r-- 1 web19_no web19 4297 2007-02-14 22:43 *.gif
    -rw-r--r-- 1 web19_no web19 1244 2007-02-10 16:27 *.php
    drwxr-xr-x 2 web19_no web19 4096 2007-02-04 04:00 stats
    -rw-r--r-- 1 web19_no web19 3493 2007-02-10 16:27 *.css
    drwxr-xr-x 6 web19_no web19 4096 2007-02-16 18:10 otherdir/


    ls -la /var/www/web19/web/awstats:
    server1:~# ls -la /var/www/web19/web/awstats
    total 12
    drwxr-xr-x 2 web19_no web19 4096 2007-02-04 04:00 .
    drwxrwxr-x 9 web19_no web19 4096 2007-02-16 18:09 ..
    -rw-rw-r-- 1 web19_no web19 130 2007-02-04 04:00 .htaccess

    ls -la /var/www/web19/web/stats:
    server1:~# ls -la /var/www/web19/web/stats
    total 12
    drwxr-xr-x 2 web19_no web19 4096 2007-02-04 04:00 .
    drwxrwxr-x 9 web19_no web19 4096 2007-02-16 18:09 ..
    -rw-rw-r-- 1 web19_no web19 235 2007-02-27 04:00 .htaccess


    :/

    Cheers
     

Share This Page