Statistic not working

Discussion in 'Installation/Configuration' started by mzo, Feb 18, 2006.

  1. mzo

    mzo New Member

    Hi Guys

    I'm having problem with my web statistic. After see your previous solution in the thread i type :

    #grep -i cron /var/log/messages

    and the output as below :

    Feb 18 12:01:01 server crond(pam_unix)[5084]: session opened for user root by (uid=0)
    Feb 18 12:01:02 server crond(pam_unix)[5084]: session closed for user root
    [root@server log]#

    Any idea on how to solve this problem? Your help is very needed. Tq.
     
  2. falko

    falko Super Moderator Howtoforge Staff

  3. mzo

    mzo New Member

    MZO : I already read the thread but after 24 hr still can't work. I can see some errors in /var/log/messages when I run grep -i cron /var/log/messages that is :

    Feb 21 00:01:01 server crond(pam_unix)[9837]: session opened for user root by (uid=0)
    Feb 21 00:01:01 server crond(pam_unix)[9837]: session closed for user root
    Feb 21 00:30:01 server crond(pam_unix)[10419]: session opened for user root by (uid=0)
    Feb 21 00:30:01 server crond(pam_unix)[10419]: session closed for user root
    Feb 21 00:40:01 server crond(pam_unix)[10629]: session opened for user root by (uid=0)
    Feb 21 00:40:01 server crond(pam_unix)[10629]: session closed for user root
    Feb 21 01:01:01 server crond(pam_unix)[11140]: session opened for user root by (uid=0)
    Feb 21 01:01:01 server crond(pam_unix)[11140]: session closed for user root
    Feb 21 02:01:01 server crond(pam_unix)[12343]: session opened for user root by (uid=0)
    Feb 21 02:01:01 server crond(pam_unix)[12343]: session closed for user root
    Feb 21 02:05:01 server crond(pam_unix)[12425]: session opened for user root by (uid=0)
    Feb 21 02:05:02 server crond(pam_unix)[12425]: session closed for user root
    Feb 21 03:01:01 server crond(pam_unix)[14439]: session opened for user root by (uid=0)
    Feb 21 03:01:01 server crond(pam_unix)[14439]: session closed for user root
    Feb 21 03:15:01 server crond(pam_unix)[15241]: session opened for user root by (uid=0)
    Feb 21 03:15:02 server crond(pam_unix)[15241]: session closed for user root
    Feb 21 04:00:01 server crond(pam_unix)[17829]: session opened for user root by (uid=0)
    Feb 21 04:00:01 server crond(pam_unix)[17829]: session closed for user root
    Feb 21 04:01:01 server crond(pam_unix)[17953]: session opened for user root by (uid=0)
    Feb 21 04:01:01 server crond(pam_unix)[17953]: session closed for user root
    Feb 21 04:02:01 server crond(pam_unix)[18011]: session opened for user root by (uid=0)
    Feb 21 04:02:18 server crond(pam_unix)[18011]: session closed for user root
    Feb 21 05:01:01 server crond(pam_unix)[19785]: session opened for user root by (uid=0)
    Feb 21 05:01:01 server crond(pam_unix)[19785]: session closed for user root
    Feb 21 06:01:01 server crond(pam_unix)[20985]: session opened for user root by (uid=0)
    Feb 21 06:01:01 server crond(pam_unix)[20985]: session closed for user root
    Feb 21 07:01:01 server crond(pam_unix)[22188]: session opened for user root by (uid=0)
    Feb 21 07:01:01 server crond(pam_unix)[22188]: session closed for user root
    Feb 21 08:01:01 server crond(pam_unix)[23389]: session opened for user root by (uid=0)
    Feb 21 08:01:01 server crond(pam_unix)[23389]: session closed for user root
    Feb 21 09:01:01 server crond(pam_unix)[24592]: session opened for user root by (uid=0)
    Feb 21 09:01:01 server crond(pam_unix)[24592]: session closed for user root
    Feb 21 10:01:01 server crond(pam_unix)[25794]: session opened for user root by (uid=0)
    Feb 21 10:01:01 server crond(pam_unix)[25794]: session closed for user root
    Feb 21 11:01:01 server crond(pam_unix)[26998]: session opened for user root by (uid=0)
    Feb 21 11:01:01 server crond(pam_unix)[26998]: session closed for user root
    Feb 21 12:01:01 server crond(pam_unix)[28201]: session opened for user root by (uid=0)
    Feb 21 12:01:01 server crond(pam_unix)[28201]: session closed for user root
    Feb 21 13:01:01 server crond(pam_unix)[29403]: session opened for user root by (uid=0)
    Feb 21 13:01:01 server crond(pam_unix)[29403]: session closed for user root
    Feb 21 14:01:01 server crond(pam_unix)[30606]: session opened for user root by (uid=0)
    Feb 21 14:01:01 server crond(pam_unix)[30606]: session closed for user root
    Feb 21 15:01:01 server crond(pam_unix)[31829]: session opened for user root by (uid=0)
    Feb 21 15:01:01 server crond(pam_unix)[31829]: session closed for user root
    Feb 21 15:15:01 server crond(pam_unix)[32111]: session opened for user root by (uid=0)
    Feb 21 15:15:01 server crond(pam_unix)[32111]: session closed for user root
    Feb 21 16:01:01 server crond(pam_unix)[573]: session opened for user root by (uid=0)
    Feb 21 16:01:01 server crond(pam_unix)[573]: session closed for user root
    Feb 21 17:01:01 server crond(pam_unix)[1790]: session opened for user root by (uid=0)
    Feb 21 17:01:01 server crond(pam_unix)[1790]: session closed for user root
    Feb 21 18:01:01 server crond(pam_unix)[3063]: session opened for user root by (uid=0)
    Feb 21 18:01:01 server crond(pam_unix)[3063]: session closed for user root
    Feb 21 19:01:01 server crond(pam_unix)[4354]: session opened for user root by (uid=0)
    Feb 21 19:01:01 server crond(pam_unix)[4354]: session closed for user root
    Feb 21 20:01:01 server crond(pam_unix)[5803]: session opened for user root by (uid=0)
    Feb 21 20:01:01 server crond(pam_unix)[5803]: session closed for user root

    I can't find any syslog files in /var/log. I'm using Fedora Core 4. Please advise.Tq.
     
  4. falko

    falko Super Moderator Howtoforge Staff

    These messages are unrelated to the statistics.

    Please run
    Code:
    /root/ispconfig/php/php /root/ispconfig/scripts/shell/logs.php
    /root/ispconfig/php/php /root/ispconfig/scripts/shell/webalizer.php
    on the shell. Do you get errors?
     
  5. mzo

    mzo New Member

    [root@server ~]# /root/ispconfig/php/php /root/ispconfig/scripts/shell/logs.php

    Warning: readlink(): Invalid argument in /root/ispconfig/scripts/shell/logs.php on line 125
    [root@server ~]# /root/ispconfig/php/php /root/ispconfig/scripts/shell/webalizer.php
    113 records (113 ignored) in 0.00 seconds
     
  6. till

    till Super Moderator Staff Member ISPConfig Developer

    This looks fine so far. Have the statistics been generated now?
     
  7. mzo

    mzo New Member

    MZO : Nope. That why I still wonder what has been wrong. FYI, first I'm using domain a.a.a and it works but later I need to change it to b.b.b and then only it start fail to work. Is there any setting I need to change?tq.

    -mzo-
     
  8. falko

    falko Super Moderator Howtoforge Staff

    What's your ISPConfig web root? /home/www or /var/www or something else?
     
  9. mzo

    mzo New Member

    MZO : It in /home/www/web3
     
    Last edited: Feb 23, 2006
  10. falko

    falko Super Moderator Howtoforge Staff

    Please post the output of
    Code:
    ls -la /home/www
     
  11. mzo

    mzo New Member

    MZO : Hi Falko. Below is the output.

    [root@server ~]# ls -la /home/www
    total 36
    drwxr-xr-x 8 root root 4096 Feb 9 18:55 .
    drwxr-xr-x 6 root root 4096 Feb 9 21:56 ..
    drwxr-xr-x 3 root root 4096 Jan 18 00:30 localhost
    drwxr-xr-x 3 root root 4096 Jan 18 00:30 server.puspakom.com
    drwxr-xr-x 3 root root 4096 Feb 9 00:30 server.puspakom.net.ms
    drwxr-xr-x 10 apache web1 4096 Feb 9 19:12 web1
    drwxr-xr-x 11 apache web1 4096 Feb 6 21:55 web2
    drwxr-xr-x 12 mz_o web3 4096 Feb 23 11:43 web3
    lrwxrwxrwx 1 root root 14 Jan 17 14:41 www.puspakom.it.tt -> /home/www/web1
    lrwxrwxrwx 1 root root 14 Feb 3 10:44 www.puspakom.net.ms -> /home/www/web2
    lrwxrwxrwx 1 root root 14 Feb 9 18:55 www.puspakom.strangled.net -> /home/www/web3
    [root@server ~]#

    MZO : I only using www.puspakom.strangled.net. Is there a way on how to remove domain other than www.puspakom.strangled.net ?
     
  12. falko

    falko Super Moderator Howtoforge Staff

    I think your readlink() errors come from the directories localhost, server.puspakom.com and server.puspakom.com.ms because they weren't created by ISPConfig.

    How do you mean that?
     
  13. mzo

    mzo New Member

  14. falko

    falko Super Moderator Howtoforge Staff

  15. esezako

    esezako Member

    I have the same issue.
    Various websites don't generate statistics from many days ago.

    Any idea or solution?

    Thanks
     
  16. till

    till Super Moderator Staff Member ISPConfig Developer

    Which ISPConfiog 2 version do you use? Do you use webalizer or awstats?
     
  17. esezako

    esezako Member

    Version: 2.2.35

    I use webalizer.
     
  18. till

    till Super Moderator Staff Member ISPConfig Developer

    Please post the output of:

    ps aux | grep webalizer
     
  19. esezako

    esezako Member

    # ps aux | grep webalizer
    root 16567 0.0 0.0 3256 680 pts/1 S+ 16:53 0:00 grep webalizer
     
  20. esezako

    esezako Member

    any more ideas please?
     

Share This Page