Addon : AWStats for ISPConfig 2
Written by DjTremors   
Saturday, 03 March 2007

 

For ISPConfig 3, please visit my main site Emperor-IT

 

awstats.gif

Awstats mod has been provided by djTremors as is and holds no responsibility due to loss of information or data. Use at own risk.

 

This addon was provided to use in place of the builtin webalizer package which should be remarked from the crontab from starting 2 webstats software.

 

This addon provides a more dynamic view of your websites statistics and minimizes space by keeping all the data in the database.

It uses the /etc/awstats/awstats.model.conf as a main configuration and the per site configurations are stored in separate files.

To get to the stats page, browse the website followed by a /stats at the end ie http://www.yourdomain.com/stats

Authentication is done at 2 areas, the /stats page and the redirected page which is the generic page to all sites. The generic page allows all user logins but only the allowed logins for their speicifc sites respectfully so no one on the same server can see other sites pages.

 


Version 1.4.1 - Download

Removed alot of nagging things like the accidental dual crontab entry (first calls awstats.php and second does perl stats of all configs which awstats.php covered anyway).

Corrected my lazy admin user added 1 time per site. 10 sites, admin is listed 10 times in .htpasswd file.. now it's just last on the list.

Remarked 2 lines for those who want to allow admins only to view stats or both admin+users to view, just remark out the users line if you want admins only. Wasn't going to go to the extreme and make a config for it.

 

Version 1.2 

Some serious path issues which only worked if httpd home was /home/httpd (Have no idea why I had it this way). Now using ISPConfigs path.

 

Version 1.1

fixed some minor bugs (thanks to martinfst from the ISPC community).

 

:To install:

Create a temp folder. download and extract the file ispc.awstats-install.tgz

#mdkir tmp

#wget {url/download/file}

#tar xvfz ispc.awstats-install.tgz

 

Now run the installation script

# sh install.sh

 

The script will install as best it can for your distro, any problems should be alerted and some minor changes may need manual configuring.

"Sample output of an upgrade"

Extracting awstats files and configs
Patching httpd.conf
Found: Redhat compatible conf.d path
Adding crontab settings
WARNING: Crontab entry exists in /var/spool/cron/root. Check to be sure
Please restart your Apache server for changes to take effect
All websites stats are accessed via {website}/stats
Thanks to 'martinfst' for bug fixes/notes on changes

NOTE : Upon completion of the installation, make sure you edit the awstats.php file in /root/ispconfig/scripts/shell/awstats.php and edit the lines containing the admin username and password to use for global site admin logins otherwise the script will not run. Thanks to Claudio H. Imai who pointed this confusing bit out.

 

Last Updated ( Friday, 02 July 2010 )