Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 2 > Tips/Tricks/Mods

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #101  
Old 29th August 2009, 00:46
martinfst martinfst is offline
Senior Member
 
Join Date: Dec 2006
Location: Hilversum, The Netherlands
Posts: 880
Thanks: 1
Thanked 18 Times in 17 Posts
Send a message via MSN to martinfst Send a message via Skype™ to martinfst
Default Package update AWstats 6.9

I finally found the time to create an update for the AWstats package created by djtremors. The updates included in this package:
  • Updated to AWstats 6.9
  • Added the /js/ alias to the generic part of the Apache config, so you can include /js/awstats_misc_tracker.js in any page on any website if you like to create detailed stats like screensize: http://awstats.sourceforge.net/docs/...tml#SCREENSIZE
  • Updated the awstats creation script to adhere to the latest ISPConfig 2.2.32 setup, like to use the super account to view any site statistics
  • Removed the annoying two times authentication when trying to open the stats with https.
  • Improved install.sh script:
  • In the setup script, adapted the crontab to not interfere with webalyser entry.
  • The root crontab is during setup inserted at the correct location (based on Ubuntu 8.04 LTS)
  • The setup script can now be run multiple times without creating a messy apache.conf file
  • Fix permissions, to ensure the script runs nightly
The version is only tested on Ubuntu 8.04, ISPConfig 2.2.32. You can find the new package at http://www.tiempo.nl/ispconfig_awstats

Martin

Last edited by martinfst; 9th September 2009 at 10:09. Reason: annoying typo
Reply With Quote
The Following 2 Users Say Thank You to martinfst For This Useful Post:
falko (29th August 2009), SupuS (8th October 2009)
Sponsored Links
  #102  
Old 30th August 2009, 20:32
martinfst martinfst is offline
Senior Member
 
Join Date: Dec 2006
Location: Hilversum, The Netherlands
Posts: 880
Thanks: 1
Thanked 18 Times in 17 Posts
Send a message via MSN to martinfst Send a message via Skype™ to martinfst
Default

In order to use the /js/awstats_misc_tracker.js option in the package I created, I overlooked an .htaccess restriction in the directory /home/admispconfig/web/ispc.awstats/js (you get this directory when installing).
In the parent directory, an .htaccess file is requesting you to enter a password, which is a limitation you need to remove in order to allow other websites to use the script.

The solution is really simple, and is added to the package you can download. The fix is to create an .htaccess file in /home/admispconfig/web/ispc.awstats/js, containing
Code:
Satisfy Any
Order Deny,Allow
Allow from All

Last edited by martinfst; 30th August 2009 at 20:57.
Reply With Quote
The Following User Says Thank You to martinfst For This Useful Post:
falko (31st August 2009)
  #103  
Old 8th October 2009, 17:37
SupuS SupuS is offline
HowtoForge Supporter
 
Join Date: May 2006
Posts: 202
Thanks: 68
Thanked 14 Times in 12 Posts
Default

I tested this version on ISPConfig 2.2.33 and it works as expected... very well

In web configuration is necessary to set NONE in options => webalizer statistics.

I have a lot of webs and I don't want to allow users to change this options so in file:

/root/ispconfig/scripts/lib/config.lib.php

I comented out:

Code:
  ////////////// Web Statistics ////////////////////
  $stats_alias = "";

   if($web["webalizer_stats"] == 2){
     $stats_alias = "Alias /stats \"".$document_root."/awstats\"";
   } elseif ($web["webalizer_stats"] == 1) {
     $stats_alias = "Alias /stats \"".$document_root."/webalizer\"";
   }
If this section is commented out than is not necessary to set options => webalizer statistics. After edit config.lib.php don't forget to reload vhost file for example by changing and saving some web option.

SupuS
Reply With Quote
  #104  
Old 2nd November 2009, 10:39
djtremors djtremors is offline
Senior Member
 
Join Date: Apr 2006
Location: Sydney
Posts: 278
Thanks: 0
Thanked 13 Times in 11 Posts
Default

hehe good work Martin, thanks for keeping it up to date as I've been working on other mods and projects etc.
__________________
www.emperor-it.com for ISPConfig mods/hacks
Reply With Quote
  #105  
Old 24th April 2010, 15:40
psychop psychop is offline
Member
 
Join Date: Apr 2010
Posts: 33
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Reading all these posts set up awstats 6.9 and managed to update all sites only once.
Am using ISPConfig 2.35.

How set up to be auto updated every day?

Tnx again all.
Reply With Quote
  #106  
Old 24th April 2010, 15:56
djtremors djtremors is offline
Senior Member
 
Join Date: Apr 2006
Location: Sydney
Posts: 278
Thanks: 0
Thanked 13 Times in 11 Posts
Default

crontab does it.


0 4 * * * /root/ispconfig/php/php /root/ispconfig/scripts/shell/awstats.php > /var/log/awstats.log 2>&1 &


this file not only creates the password files and adds the files required for new sites but also processes the logs.
__________________
www.emperor-it.com for ISPConfig mods/hacks
Reply With Quote
  #107  
Old 24th April 2010, 16:29
psychop psychop is offline
Member
 
Join Date: Apr 2010
Posts: 33
Thanks: 0
Thanked 0 Times in 0 Posts
 
Default

my line is like this:
0 4 * * * /root/ispconfig/php/php /root/ispconfig/scripts/shell/awstats.php &> /dev/null

but all my pages were last updated on 15.4.2010

One page has only awstats.mypage.com.txt file that it says is part of log and no html files that other have...

All is very weird.

Changed settings in awstats.shared.conf file for manual update via browser and alsno no effect
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
Howto suggestion suse PhP ver 4 + Ver 5 wwparrish Suggest HOWTO 11 7th August 2006 14:29
Suse Ispconfig and AWstats shajazzi Installation/Configuration 4 16th May 2006 00:04


All times are GMT +2. The time now is 16:17.


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