Problems with webalizer and virtual hosts

Discussion in 'General' started by rafael-ec, Jul 19, 2007.

  1. rafael-ec

    rafael-ec New Member

    Hi all,

    The problem I have is that when I whant to see the statistics of an specific domain I would get the statistcs off all the virtual domains of my ispadmin installation.

    I saw a how to that seem intresting using debian and vlogger, but I can not manage to install vlogger on my CentOS 4. How do you people manage to make webalizer produce different statistics for each hosts.

    I am using Centos 4 and follow the directions of the perfect installationg.
  2. till

    till Super Moderator Staff Member ISPConfig Developer

  3. rafael-ec

    rafael-ec New Member

    Thank you till

    Actually I get a 403 error if I go to I read the stats at They are the exact same stats for every website. Where could I mess things up? Not much expirience with webalizer and multiple domains.

    Should I find the statists con stats or on usage?

  4. falko

    falko Super Moderator ISPConfig Developer

    Did you install ISPConfig?
  5. rafael-ec

    rafael-ec New Member

    Sure, I have version 2.2.10 working really well. Just the problem with webalizer.
  6. till

    till Super Moderator Staff Member ISPConfig Developer

    ISPConfig does not use a subdirectory usage in the websites, so this must have been created by another application. Please run the following command on the shell and post the output:

    which webalizer
  7. rafael-ec

    rafael-ec New Member

    I installed webalizer using yum in CentOS 4.
    which webalizer
    The version of webalizer that I have is:
    rpm -q webalizer
    About the usage directory I found a file in: /etc/httpd/conf.d named webalizer.conf that creates an alias from /var/www/usage to /usage. So I guess this explains the usage directory. I would comment out this file.

    What I do no understand is why I don't have the stats directory. Where am I missing this.

    Thanks a los for you help till
  8. till

    till Super Moderator Staff Member ISPConfig Developer

    Please post the output of:

    ls -la /var/log/httpd

    and does your root crontab contains the lines:

    30 00 * * * /root/ispconfig/php/php /root/ispconfig/scripts/shell/logs.php &> /dev/null
    0 4 * * * /root/ispconfig/php/php /root/ispconfig/scripts/shell/webalizer.php &> /dev/null
  9. rafael-ec

    rafael-ec New Member

    ls -la /var/log/httpd
    total 37276
    drwx------  2 root root     8192 Jul 22 01:06 .
    drwxr-xr-x  6 root root     4096 Mar 11 04:02 ..
    -rw-r--r--  1 root root 16078540 Jul 22 08:48 access_log
    -rw-r--r--  1 root root  2909693 Jul 22 08:48 error_log
    lrwxrwxrwx  1 root root       46 Jul 22 01:06 ispconfig_access_log -> /var/log/httpd/ispconfig_access_log_2007_07_22
    -rw-r--r--  1 root root   110636 Feb 27 17:53 ispconfig_access_log_2007_02_27
    -rw-r--r--  1 root root   108099 Feb 28 22:07 ispconfig_access_log_2007_02_28
    -rw-r--r--  1 root root     2860 Mar  1 15:43 ispconfig_access_log_2007_03_01
    -rw-r--r--  1 root root   234024 Jul 18 23:20 ispconfig_access_log_2007_07_18
    -rw-r--r--  1 root root   299020 Jul 19 23:21 ispconfig_access_log_2007_07_19
    -rw-r--r--  1 root root   278748 Jul 20 23:34 ispconfig_access_log_2007_07_20
    -rw-r--r--  1 root root   156781 Jul 21 23:23 ispconfig_access_log_2007_07_21
    -rw-r--r--  1 root root     4038 Jul 22 08:48 ispconfig_access_log_2007_07_22
    No it did not. I just put the lines in my cronttab. I hope this would fix the issue.

    Thanks a lot till
  10. rafael-ec

    rafael-ec New Member

    it is working :)

    I just run manually de cronttab commands and now it is working find :).

    The only problem I have is that it start the stats from yesterday stats. I guess the crontab task do one day at the time. Is there a way to read the older statists and show them in webalizer. From the files in /var/log/httpd I guess all the stats are in this logs.

    Thanks again for the help

Share This Page