LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 08-13-2010, 12:48 AM   #1
baldur2630
Member
 
Registered: Jan 2007
Location: Belgium
Distribution: CentOS & Ubuntu
Posts: 173

Rep: Reputation: 22
Need help configuring Webalizer


Server is CentOS 5.4.

I have 6 name-based Apache Virtual Hosts each one is used by a different user (for development work). We allow external access to each site until the work is completed and then we upload the site to its final destination and delete the site from our server so we can setup a new one for the next customer. Some of the sites are permanently hosted on our servers. It all works fine. Now for the problem...

Each Virtual Host has it's own xxx-access_log and xxx-error_log all stored in /var/log/httpd.

All the Virtual Hosts are in /var/www/xxx, So we have /var/www/site1, /var/www/site2 etc.

Webalizer is installed.

I need to setup webalizer so that each user can view his/her own stats.

How and where do I setup webalizer to read the individual access_log so that each user can enter http://site1/webalizer and get the stats for his/her site?

Help would be much appreciated.
 
Old 08-13-2010, 06:43 PM   #2
chu_bun
LQ Newbie
 
Registered: Apr 2009
Location: Houston
Distribution: Centos
Posts: 9

Rep: Reputation: 1
This is how I set it up for our sites:

- Each site has its own conf file under /etc:
/etc/webalizer_xxx:
LogFile /var/log/httpd/xxx-access_log
OutputDir /var/www/usage_xxx
(basically, add "xxx" to the default settings)

- Set a daily cron job to update the site stats for each site.
/usr/bin/webalizer -c /etc/webalizer_xxx.conf -Q

- Set the aliases:
/etc/httpd/conf.d/webalizer.conf:
Alias /usage_xxx /var/www/usage_xxx
(same as OutputDir in the main conf file)

<Location /usage_xxx>
Order deny,allow
Deny from all
Allow from 11.22.33.44
(IP of developer for xxx)
</Location>


Don't know if it is the best way to set it up, but it works for us.
 
Old 08-14-2010, 12:15 AM   #3
baldur2630
Member
 
Registered: Jan 2007
Location: Belgium
Distribution: CentOS & Ubuntu
Posts: 173

Original Poster
Rep: Reputation: 22
That seems to work here as well, BUT... (there's always a but!). Each file has the same Heading. How can I change the heading in the Output file to reflect the name of the site. i.e Usage Statistics for xxx rather than the same heading for all of them?
 
Old 11-10-2010, 01:52 PM   #4
DotHQ
Member
 
Registered: Mar 2006
Location: Ohio, USA
Distribution: Red Hat, Fedora, Knoppix,
Posts: 548

Rep: Reputation: 33
inside your webalizer.conf file for xxx site: xxxwebalizer.conf there is a place to make the title whatever you want it to be. Change it in each of the .conf files and all will show the correct name for the data they are displaying.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Webalizer - How do I see in apache all the html webalizer reports ? ytd Linux - General 11 01-20-2010 11:37 PM
Where is Webalizer FunkFlex Linux - Software 1 03-11-2005 11:12 AM
Configuring Webalizer to report to a protected website folder soren625 Linux - Software 2 01-18-2005 08:23 AM
Configuring Webalizer for virtual sites. dmedici Fedora 0 07-22-2004 03:04 PM
Configuring Webalizer fullerms Linux - Software 0 11-14-2002 04:42 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 06:32 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration