HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Tips/Tricks/Mods (http://www.howtoforge.com/forums/forumdisplay.php?f=19)
-   -   AWStats Installer (http://www.howtoforge.com/forums/showthread.php?t=7293)

jnsc 6th October 2006 16:05

AWStats Installer
 
Hello,

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 http://jnsc.ch/ispconfig.php

Regards

falko 7th October 2006 13:42

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

jnsc 7th October 2006 15:14

Thank's that would be nice

TobiasTM 14th October 2006 07:11

Hi,

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 19:33

crontab problem
 
Hi,
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 22: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
Code:

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 16th October 2006 23: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/www.xceed.ro/web/awstats# cat ./index.php
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<body>
<?php
$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 />";
}
}
}
?>
</body>
</html>
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 16th October 2006 23:23

Ok,
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 )

Code:

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

bogdanbrudiu 16th October 2006 23:42

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

falko 17th October 2006 17:58

I've put a link to http://jnsc.ch/ispconfig.php on http://www.ispconfig.org/downloads.htm . :)


All times are GMT +2. The time now is 05:01.

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