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
  #1  
Old 6th October 2006, 16:05
jnsc jnsc is offline
rotaredoM
 
Join Date: Mar 2006
Location: Lausanne, Switzerland
Posts: 525
Thanks: 10
Thanked 172 Times in 77 Posts
Default 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.
Reply With Quote
Sponsored Links
  #2  
Old 7th October 2006, 13:42
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Thumbs up

I'll test it in the next days.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 7th October 2006, 15:14
jnsc jnsc is offline
rotaredoM
 
Join Date: Mar 2006
Location: Lausanne, Switzerland
Posts: 525
Thanks: 10
Thanked 172 Times in 77 Posts
Default

Thank's that would be nice
Reply With Quote
  #4  
Old 14th October 2006, 07:11
TobiasTM TobiasTM is offline
Member
 
Join Date: Nov 2005
Location: Uffing am Staffelsee
Posts: 52
Thanks: 8
Thanked 0 Times in 0 Posts
Send a message via ICQ to TobiasTM
Default

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...
Reply With Quote
  #5  
Old 16th October 2006, 19:33
bogdanbrudiu bogdanbrudiu is offline
Junior Member
 
Join Date: Oct 2006
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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?
Reply With Quote
  #6  
Old 16th October 2006, 22:43
jnsc jnsc is offline
rotaredoM
 
Join Date: Mar 2006
Location: Lausanne, Switzerland
Posts: 525
Thanks: 10
Thanked 172 Times in 77 Posts
Default

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?
Reply With Quote
  #7  
Old 16th October 2006, 23:01
bogdanbrudiu bogdanbrudiu is offline
Junior Member
 
Join Date: Oct 2006
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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?
Reply With Quote
  #8  
Old 16th October 2006, 23:23
jnsc jnsc is offline
rotaredoM
 
Join Date: Mar 2006
Location: Lausanne, Switzerland
Posts: 525
Thanks: 10
Thanked 172 Times in 77 Posts
Default

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.
Reply With Quote
  #9  
Old 16th October 2006, 23:42
bogdanbrudiu bogdanbrudiu is offline
Junior Member
 
Join Date: Oct 2006
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

it works ok now :-)
thankyou great tool it is mutch beater then webalizer reports
Reply With Quote
  #10  
Old 17th October 2006, 17:58
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
 
Default

I've put a link to http://jnsc.ch/ispconfig.php on http://www.ispconfig.org/downloads.htm .
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:

Last edited by jnsc; 19th October 2008 at 19:44.
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
Configuring Awstats for ispconfig feanor Installation/Configuration 26 23rd February 2009 19:14
AWStats as .pkg-AddOn-package TobiasTM Feature Requests 8 13th October 2006 17:27
Suse Ispconfig and AWstats shajazzi Installation/Configuration 4 15th May 2006 23:04
php-nuke installer... how to do it? danf.1979 General 8 20th December 2005 19:23
Help config Awstats domino Programming/Scripts 4 6th September 2005 06:47


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


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