HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (
-   Tips/Tricks/Mods (
-   -   AWStats Installer (

jnsc 6th October 2006 17:05

AWStats Installer

I made a little installer for AWStats, It's a first draft so do not use on a production server. I would like to have some feedback, so don't hesitate to post your questions.

For more information go to this URL


falko 7th October 2006 14:42

I'll test it in the next days. :)

jnsc 7th October 2006 16:14

Thank's that would be nice

TobiasTM 14th October 2006 08:11


its great, that you build a package :)

I will test it in the next days, too and tell you how it works.


bogdanbrudiu 16th October 2006 20:33

crontab problem
I am having problems making it work.
I have installed the package and it generats the /awstats folder and etc/awstats conf files, also the .passwd files...but no stats.
I have installed awstats (apt-get install awstats) but i do not know what to add in crontab for awstat to generate the reports.
Can you please help me?

jnsc 16th October 2006 23:43

You do not need to install awstats by apt-get, because the installer copy the needed files to /home/admispconfig/ispconfig/tools

Normally the script adds the cron automaticly, chek that you have

0 4 * * * /root/ispconfig/php/php /root/ispconfig/scripts/shell/awstats.php &> /dev/null
in your crontab (crontab -e)

If you run /root/ispconfig/php/php /root/ispconfig/scripts/shell/awstats.php manually (which can be long) do you have an error message?

bogdanbrudiu 17th October 2006 00:01

I have runde manualy /root/ispconfig/php/php /root/ispconfig/scripts/shell/awstats.php and I do not get error..
bot no stats also..
in /awstats a index.php file gets generated
mainframe:/var/www/ cat ./index.php
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
$dir = ".";

if( $dh = opendir($dir)) {
while (($file = readdir($dh)) !== false) {
$pattern = 'awstats\..*\.[0-9]{4}-[0-9]{2}\.html';
if (ereg($pattern, $file)) {
echo "<a href=\"$file\">$file</a><br />";
but when i try to see it in a browser is empty (the awstats folder does not contain file matching awstats\..*\.[0-9]{4}-[0-9]{2}\.html)
the only files there are index.php and .htaccess
I did not figure out from your scripts where is awstats called to generate the reports from the config files?

jnsc 17th October 2006 00:23

I figured out the problem, it was my fault, I commented out one line in order to make a test and I forgot to remove the comment.

Just edit line 172 of /root/ispconfig/scripts/shell/awstats.php and remove the leading // of this line (it begins with $message .= exec )


vi +172 /root/ispconfig/scripts/shell/awstats.php
I'm really sorry, I will release a new version wich removes this Bug.

bogdanbrudiu 17th October 2006 00:42

it works ok now :-)
thankyou great tool it is mutch beater then webalizer reports

falko 17th October 2006 18:58

I've put a link to on . :)

All times are GMT +2. The time now is 12:10.

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