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
  #111  
Old 15th June 2006, 14:57
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,078
Thanks: 826
Thanked 5,396 Times in 4,240 Posts
Default

Quote:
Originally Posted by cctex10
When I do the command i get...

s1:~ # /root/ispconfig/php/php /root/ispconfig/scripts/shell/logs.php

Warning: readlink(): Invalid argument in /root/ispconfig/scripts/shell/logs.php on line 125

Warning: readlink(): Invalid argument in /root/ispconfig/scripts/shell/logs.php on line 125
Thats just a warning, nothing serious.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
Sponsored Links
  #112  
Old 23rd June 2006, 20:34
nenad nenad is offline
Senior Member
 
Join Date: Nov 2005
Location: Novi Sad, Serbia
Posts: 415
Thanks: 13
Thanked 5 Times in 5 Posts
Default

Unbeliveable but true:

Code:
/etc/init.d/cron stop
pkill cron
crontab -e
... and save it again.
/etc/init.d/cron start
Didn't helped me.

But DELETING of crontab file and writing new one RESOLVED crontab & statistcs issue?

Finally, I don't have to run manually those scripts for refreshing statictics every day.

BTW this can be added and thus help you to see if script is executing:

00 4 * * * /root/ispconfig/php/php /root/ispconfig/scripts/shell/webalizer.php 2>&1 | mail -s "webalizer is proceessing logs" your.name@yourdomain.com

Code:
30 0 * * * /root/ispconfig/php/php /root/ispconfig/scripts/shell/logs.php &> /dev/null
59 23 * * * /root/ispconfig/php/php /root/ispconfig/scripts/shell/ftp_logs.php &> /dev/null
59 23 * * * /root/ispconfig/php/php /root/ispconfig/scripts/shell/mail_logs.php &> /dev/null
59 23 * * * /root/ispconfig/php/php /root/ispconfig/scripts/shell/cleanup.php &> /dev/null
00 4 * * * /root/ispconfig/php/php /root/ispconfig/scripts/shell/webalizer.php 2>&1 | mail -s "webalizer is proceessing logs" your.name@yourdomain.com
0,30 * * * * /root/ispconfig/php/php /root/ispconfig/scripts/shell/check_services.php &> /dev/null
15 3,15 * * * /root/ispconfig/php/php /root/ispconfig/scripts/shell/quota_msg.php &> /dev/null
40 00 * * * /root/ispconfig/php/php /root/ispconfig/scripts/shell/traffic.php &> /dev/null
05 02 * * * /root/ispconfig/php/php /root/ispconfig/scripts/shell/backup.php &> /dev/null
__________________
Nenad Bulatovic
---------------
Debian Lenny & ISPConfig 3

Last edited by nenad; 23rd June 2006 at 22:52.
Reply With Quote
  #113  
Old 24th June 2006, 15:20
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'm glad it finally worked out.
__________________
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
  #114  
Old 11th July 2006, 13:06
ProgressiveBastion ProgressiveBastion is offline
Junior Member
 
Join Date: Jun 2006
Location: Arcata
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to ProgressiveBastion Send a message via MSN to ProgressiveBastion Send a message via Yahoo to ProgressiveBastion Send a message via Skype™ to ProgressiveBastion
Default This worked for me

Quote:
Originally Posted by Mountainman
after the last time I ran both scripts (log.php and webalizer.php) all seems to be fine

Ah well it's working

tnx again...
After running the 2 suggested commands it seems to work I can see my stats. Very cool. If it seems to not work after a few days I guess it'lll be back to the forums...

peace Michael

p.s. thanks for the info till & falko...
__________________
ISPConfig-ver:2.2.9, Apache/2.0.55 PHP/5.1.2 mod_ssl/2.0.55 OpenSSL/0.9.8a (Ubuntu Dapper 6.02LTS)

Yup! I'm a Liberal lib~er~al (lbr-l, lbrl), adj.

1a. Not limited to or by established, traditional, orthodox, or authoritarian attitudes, views or dogmas; free of bigotry.
b. Favoring proposals for reform, open to new ideas and behavior of others; broad-minded.

2. Tending to give freely; generous: a liberal benefactor.
Reply With Quote
  #115  
Old 2nd August 2006, 08:03
Ovidiu Ovidiu is offline
Senior Member
 
Join Date: Sep 2005
Posts: 1,262
Thanks: 78
Thanked 24 Times in 20 Posts
Default

hi there,

after moving to a new server, it seems stats are not generated, I had a look inside my webxxx/log/ folders and it seems the log.php script is running and splitting the logs so that each web now has its logs inside its log folder, but for a newly created site (a weeke ago) the stats folder is not being created and for the older sites the stats are not compiled, it still shows me stats from july ...

here is some sample commands I tried:

stop cron edit crontab save restart cron did not help

Quote:
h898552:/var/www# /root/ispconfig/php/php /root/ispconfig/scripts/shell/logs.php

Warning: readlink(): Invalid argument in /root/ispconfig/scripts/shell/logs.php on line 125
Quote:
h898552:/var/www# /root/ispconfig/php/php /root/ispconfig/scripts/shell/webalizer.php
h898552:/var/www#
the prompt returned 2-3 seconds after I ran the webalizer script...
Reply With Quote
  #116  
Old 3rd August 2006, 08:01
Ovidiu Ovidiu is offline
Senior Member
 
Join Date: Sep 2005
Posts: 1,262
Thanks: 78
Thanked 24 Times in 20 Posts
Default

Please I need some help. its 3.rd august and I have no stats for this month. any feedback you can give? what can I do to debug this problem?
Reply With Quote
  #117  
Old 3rd August 2006, 09:35
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,078
Thanks: 826
Thanked 5,396 Times in 4,240 Posts
Default

Do you have logfiles with todays and yesterdays date in /var/log/httpd ?
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #118  
Old 3rd August 2006, 10:08
Ovidiu Ovidiu is offline
Senior Member
 
Join Date: Sep 2005
Posts: 1,262
Thanks: 78
Thanked 24 Times in 20 Posts
Default

yes I have and there are also logs inside the webXXX fodlers, meaning it seems like the logs are getting splitte ok, its just that no stats are processed by webalizer!?
Reply With Quote
  #119  
Old 3rd August 2006, 10:20
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,078
Thanks: 826
Thanked 5,396 Times in 4,240 Posts
Default

What is the output of:

which webalizer
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #120  
Old 3rd August 2006, 10:22
Ovidiu Ovidiu is offline
Senior Member
 
Join Date: Sep 2005
Posts: 1,262
Thanks: 78
Thanked 24 Times in 20 Posts
 
Default

h898552:~# which webalizer
/usr/bin/webalizer
h898552:~#
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
Webalizer - Usage by Country statistics leno Installation/Configuration 3 28th April 2005 18:12


All times are GMT +2. The time now is 15:11.


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