
6th October 2006, 16:05
|
|
rotaredoM
|
|
Join Date: Mar 2006
Location: Lausanne, Switzerland
Posts: 470
Thanks: 7
Thanked 78 Times in 41 Posts
|
|
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
Last edited by jnsc; 15th September 2008 at 11:33.
|

7th October 2006, 13:42
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 34,488
Thanks: 1,044
Thanked 1,806 Times in 1,707 Posts
|
|
I'll test it in the next days.
|

7th October 2006, 15:14
|
|
rotaredoM
|
|
Join Date: Mar 2006
Location: Lausanne, Switzerland
Posts: 470
Thanks: 7
Thanked 78 Times in 41 Posts
|
|
Thank's that would be nice
|

14th October 2006, 07:11
|
|
Member
|
|
Join Date: Nov 2005
Location: Uffing am Staffelsee
Posts: 52
Thanks: 8
Thanked 0 Times in 0 Posts
|
|
Hi,
it´s great, that you build a package
I will test it in the next day´s, too and tell you how it works.
;-)
__________________
If you have a Strato-Dedicatet-Server and want to use IPSConfig look here
Wanted a HowTo for installation of AWStats incl. GeoIP? Look here...
|

16th October 2006, 19:33
|
|
Junior Member
|
|
Join Date: Oct 2006
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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?
|

16th October 2006, 22:43
|
|
rotaredoM
|
|
Join Date: Mar 2006
Location: Lausanne, Switzerland
Posts: 470
Thanks: 7
Thanked 78 Times in 41 Posts
|
|
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?
|

16th October 2006, 23:01
|
|
Junior Member
|
|
Join Date: Oct 2006
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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?
|

16th October 2006, 23:23
|
|
rotaredoM
|
|
Join Date: Mar 2006
Location: Lausanne, Switzerland
Posts: 470
Thanks: 7
Thanked 78 Times in 41 Posts
|
|
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.
Last edited by jnsc; 17th October 2006 at 09:43.
|

16th October 2006, 23:42
|
|
Junior Member
|
|
Join Date: Oct 2006
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
it works ok now :-)
thankyou great tool it is mutch beater then webalizer reports
|

17th October 2006, 17:58
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 34,488
Thanks: 1,044
Thanked 1,806 Times in 1,707 Posts
|
|
Last edited by jnsc; 19th October 2008 at 19:44.
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT +2. The time now is 08:02.
|
Recent comments
20 hours 47 min ago
1 day 33 min ago
1 day 5 hours ago
1 day 8 hours ago
2 days 12 hours ago
2 days 12 hours ago
2 days 13 hours ago
2 days 13 hours ago
2 days 13 hours ago
2 days 21 hours ago