Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 2 > General

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 19th July 2007, 22:24
rafael-ec rafael-ec is offline
Member
 
Join Date: Jul 2007
Posts: 57
Thanks: 15
Thanked 6 Times in 4 Posts
Default Problems with webalizer and virtual hosts

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.
Reply With Quote
Sponsored Links
  #2  
Old 20th July 2007, 12:38
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,478
Thanks: 813
Thanked 5,255 Times in 4,121 Posts
Default

If you go to:

http://yourdoamin.com/stats/

you will get the web statistics just for this website.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 20th July 2007, 15:28
rafael-ec rafael-ec is offline
Member
 
Join Date: Jul 2007
Posts: 57
Thanks: 15
Thanked 6 Times in 4 Posts
Default

Thank you till

Quote:
Originally Posted by till
If you go to:

http://yourdoamin.com/stats/

you will get the web statistics just for this website.
Actually I get a 403 error if I go to http://mydomain.com/stats. I read the stats at http://mydomain.com/usage. 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?

Greetings
Reply With Quote
  #4  
Old 20th July 2007, 16:35
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,735 Times in 2,571 Posts
Default

Did you install ISPConfig?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #5  
Old 20th July 2007, 19:23
rafael-ec rafael-ec is offline
Member
 
Join Date: Jul 2007
Posts: 57
Thanks: 15
Thanked 6 Times in 4 Posts
Default

Quote:
Originally Posted by falko
Did you install ISPConfig?
Sure, I have version 2.2.10 working really well. Just the problem with webalizer.
Reply With Quote
  #6  
Old 21st July 2007, 14:49
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,478
Thanks: 813
Thanked 5,255 Times in 4,121 Posts
Default

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
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #7  
Old 21st July 2007, 18:25
rafael-ec rafael-ec is offline
Member
 
Join Date: Jul 2007
Posts: 57
Thanks: 15
Thanked 6 Times in 4 Posts
Default

I installed webalizer using yum in CentOS 4.
Code:
which webalizer
/usr/bin/webalizer
The version of webalizer that I have is:
Code:
rpm -q webalizer
webalizer-2.01_10-25
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
Reply With Quote
  #8  
Old 22nd July 2007, 13:50
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,478
Thanks: 813
Thanked 5,255 Times in 4,121 Posts
Default

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
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
The Following User Says Thank You to till For This Useful Post:
rafael-ec (24th July 2007)
  #9  
Old 22nd July 2007, 14:55
rafael-ec rafael-ec is offline
Member
 
Join Date: Jul 2007
Posts: 57
Thanks: 15
Thanked 6 Times in 4 Posts
Default

Quote:
Originally Posted by till
Please post the output of:

ls -la /var/log/httpd
Code:
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
Quote:
Originally Posted by till
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
No it did not. I just put the lines in my cronttab. I hope this would fix the issue.

Thanks a lot till
Reply With Quote
  #10  
Old 22nd July 2007, 15:06
rafael-ec rafael-ec is offline
Member
 
Join Date: Jul 2007
Posts: 57
Thanks: 15
Thanked 6 Times in 4 Posts
 
Thumbs up 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
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Manual Webalizer Installation protocol Installation/Configuration 1 25th April 2006 16:33


All times are GMT +2. The time now is 23:37.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.