Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 2 > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 7th June 2006, 09:09
Anim Anim is offline
Member
 
Join Date: Jun 2006
Posts: 31
Thanks: 0
Thanked 1 Time in 1 Post
Default Force the creation of Webalizer stats?

Hi, is there a way to force the creation of the webalizer stats so I can test it out?

I dont leave the server running over night at the moment so they never get created but I wouldnt mind making sure that they work.

At the moment the http://domain/stats/ causes a 404

Cheers
Anim
Reply With Quote
Sponsored Links
  #2  
Old 7th June 2006, 10:44
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,046
Thanks: 826
Thanked 5,386 Times in 4,231 Posts
Default

Yes, you can force the creation. Run the command:

/root/ispconfig/php/php -q /root/ispconfig/scripts/shell/logs.php

and after it has finished:

/root/ispconfig/php/php -q /root/ispconfig/scripts/shell/webalizer.php
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 7th June 2006, 17:40
Anim Anim is offline
Member
 
Join Date: Jun 2006
Posts: 31
Thanks: 0
Thanked 1 Time in 1 Post
Default

Worked a treat, thankyou.

Anim
Reply With Quote
The Following User Says Thank You to Anim For This Useful Post:
bpatrickmittle222 (25th July 2013)
  #4  
Old 15th January 2011, 22:35
tom.mccredie tom.mccredie is offline
Junior Member
 
Join Date: Sep 2010
Location: UK
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by till View Post
Yes, you can force the creation. Run the command:

/root/ispconfig/php/php -q /root/ispconfig/scripts/shell/logs.php

and after it has finished:

/root/ispconfig/php/php -q /root/ispconfig/scripts/shell/webalizer.php
Hi guys - just tried running the above command to "force" the web stats and received the error below:

Code:
ws0:~# /root/ispconfig/php/php -q /root/ispconfig/scripts/shell/logs.php

Warning: asort() expects parameter 1 to be array, null given in /root/ispconfig/scripts/shell/logs.php on line 172

Warning: Invalid argument supplied for foreach() in /root/ispconfig/scripts/shell/logs.php on line 173
I too received a 404 error when navigating to domain.xx/stats; /stats isnt a folder in this domains web space as far as I can see, so I cant check permissions?

I'm reluctant to run the second command as I don't know if i have broke anything, I'm not a DBA and have limited MySQL knowledge. This box is in production and if it needs downtime, I will need to do this off-peak.

Spec:

ISPConfig2 - Debian 5 - 2.6.26-2-amd64 -MySQL 5.0.51a-24+lenny4 |
Reply With Quote
  #5  
Old 16th January 2011, 13:32
tom.mccredie tom.mccredie is offline
Junior Member
 
Join Date: Sep 2010
Location: UK
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

bump, would really appreciate some help on this.
Reply With Quote
  #6  
Old 16th January 2011, 19:08
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

What's the output of
Code:
ls -la /var/www/
?
__________________
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
  #7  
Old 16th January 2011, 22:56
tom.mccredie tom.mccredie is offline
Junior Member
 
Join Date: Sep 2010
Location: UK
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks for getting back to me falko.

Code:
ws0:/proc/sys/kernel# ls -la /var/www/
total 32
drwxr-xr-x  7 root         root 4096 2011-01-12 00:30 .
drwxr-xr-x 14 root         root 4096 2011-01-11 15:13 ..
-rw-r--r--  1 root         root   45 2011-01-11 15:13 index.html
drwxr-xr-x  3 root         root 4096 2011-01-12 00:30 localhost
drwxr-xr-x  2 root         root 4096 2011-01-11 15:26 sharedip
drwxr-xr-x  8 web1_xx web1 4096 2011-01-14 11:39 web1
drwxr-xr-x  2 root         root 4096 2011-01-16 06:25 webalizer
drwxr-xr-x  3 root         root 4096 2011-01-12 00:30 ws0.xxx.xx
lrwxrwxrwx  1 www-data     web1   13 2011-01-11 15:57 www.xx.xx -> /var/www/web1
Reply With Quote
  #8  
Old 17th January 2011, 13:53
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

Looks ok. You can ignore the warnings - I've taken a look at the code, and the warnings come from the part where the script tries to delete old access logs. It is safe to run the second command as well (make sure you run the first one before).
__________________
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
  #9  
Old 23rd July 2013, 08:55
gbe gbe is offline
Junior Member
 
Join Date: Jul 2013
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
 
Default

I know this is an old thread, but it's exactly my question.
So, what is the "modern way" (v3.0.5.2) to do this?
Thanks!
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
Howto: Make Webalizer show full QueryString!! Zoon Tips/Tricks/Mods 1 5th November 2007 02:12
Webalizer not updated since 01 Jan 06? Zoon General 24 22nd March 2006 20:29
view webalizer stats kuyaedz General 22 12th March 2006 14:45
webalizer and logrotate damaskinos Server Operation 4 24th November 2005 23:16
concerning webalizer Ovidiu Installation/Configuration 1 12th October 2005 12:34


All times are GMT +2. The time now is 08:44.


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