Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 2 > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 15th September 2005, 12:47
feanor feanor is offline
Junior Member
 
Join Date: Aug 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Configuring Awstats for ispconfig

Hi, I've built a script and a template config file for awstats to work automatically with ispconfig/apache2. Just put it in a cron job and let it do the work. It works for me, though I don't use any authentication for the stats themselves.
Also, it needs a template file for awstats.
Last, you need to add a couple of lines in your apache2.conf file to create a logfile that can be used by awstats properly:

-----
LogFormat "%v %h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" virtual_combined

# Add this log file for use with Awstats
CustomLog "|/root/ispconfig/cronolog --symlink=/var/log/httpd/awstats_access_log /var/log/httpd/awstats_access_log_%Y_%m_%d" virtual_combined
-----

Use it at your own risk :-)

Konstantinos
Attached Files
File Type: gz awstats-ispconfig.tar.gz (18.3 KB, 1449 views)

Last edited by feanor; 15th September 2005 at 13:08.
Reply With Quote
Sponsored Links
  #2  
Old 15th September 2005, 13:01
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,740 Times in 2,575 Posts
Default

Thanks a lot! We'll test this.

Could you please upload it again as tar.gz? I've just changed the forum settings to allow the upload of tar.gz files.
__________________
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
  #3  
Old 15th September 2005, 13:08
feanor feanor is offline
Junior Member
 
Join Date: Aug 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by falko
Thanks a lot! We'll test this.

Could you please upload it again as tar.gz? I've just changed the forum settings to allow the upload of tar.gz files.
Done, Thanks :-)
Reply With Quote
  #4  
Old 23rd September 2005, 09:22
misterm misterm is offline
Senior Member
 
Join Date: Aug 2005
Posts: 519
Thanks: 15
Thanked 7 Times in 6 Posts
Arrow How to install it ?

Hello with all

I am happy that there is a system for this Awstats scripts for ispconfig, but I would like to have myself how one it install, I see just that it is necessary to add lines in apache2.conf, of agreement, but, one does not need install Awstats, is to configure it in such manner, so that it functions with the Web sites.

The only thing which I miss, it is an easy way, to install it under debian or another distribution, I know one will say to me, will seek on the Web, one does not have all the people available on the site to do it.

Thank you in advance

MM
Reply With Quote
  #5  
Old 25th September 2005, 22:48
Hellbound Hellbound is offline
Senior Member
 
Join Date: Sep 2005
Posts: 116
Thanks: 4
Thanked 1 Time in 1 Post
Default

anyone have tried this?
I've ended up installing ispconfig for almost 5 times due my lack of knowledge, I just like awstat very much and want to have it.

thanks
Reply With Quote
  #6  
Old 26th September 2005, 14:47
DevilAtWork DevilAtWork is offline
Junior Member
 
Join Date: Sep 2005
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Install Awstats on ISPconfig

Hi Feanor,

I am a newbie and interested in your awstats scripts for Ispconfig but a little bit confuse on how to install it...how to use the local and template.. can you elaborate more on the steps?

Fyi, I installed awstats RPM.
Reply With Quote
  #7  
Old 27th May 2006, 02:15
funkyade funkyade is offline
Junior Member
 
Join Date: May 2006
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by feanor
Hi, I've built a script and a template config file for awstats to work automatically with ispconfig/apache2. Just put it in a cron job and let it do the work. It works for me, though I don't use any authentication for the stats themselves.
Also, it needs a template file for awstats.
Last, you need to add a couple of lines in your apache2.conf file to create a logfile that can be used by awstats properly:

-----
LogFormat "%v %h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" virtual_combined

# Add this log file for use with Awstats
CustomLog "|/root/ispconfig/cronolog --symlink=/var/log/httpd/awstats_access_log /var/log/httpd/awstats_access_log_%Y_%m_%d" virtual_combined
-----

Use it at your own risk :-)

Konstantinos
This script looks great!

Just one question, how do I use it?

Do I need to edit the paths inside the script?

I get errors regarding 'localhost' when I run it from the command-line.

cheers...

Last edited by funkyade; 27th May 2006 at 02:18.
Reply With Quote
  #8  
Old 27th May 2006, 13:52
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,740 Times in 2,575 Posts
Default

Quote:
Originally Posted by funkyade
Just one question, how do I use it?
Create a cron job for it. Run
Code:
crontab -e
as root.

Quote:
Originally Posted by funkyade
I get errors regarding 'localhost' when I run it from the command-line.
What are the exact error messages?
__________________
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
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
Help config Awstats domino Programming/Scripts 4 6th September 2005 06:47


All times are GMT +2. The time now is 06:22.


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