
15th June 2006, 14:57
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 32,071
Thanks: 697
Thanked 4,248 Times in 3,260 Posts
|
|
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.
|

23rd June 2006, 20:34
|
|
Senior Member
|
|
Join Date: Nov 2005
Location: Novi Sad, Serbia
Posts: 414
Thanks: 13
Thanked 5 Times in 5 Posts
|
|
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.
|

24th June 2006, 15:20
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,685
Thanks: 1,899
Thanked 2,600 Times in 2,449 Posts
|
|
I'm glad it finally worked out.
|

11th July 2006, 13:06
|
|
Junior Member
|
|
Join Date: Jun 2006
Location: Arcata
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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.
|

2nd August 2006, 08:03
|
|
Senior Member
|
|
Join Date: Sep 2005
Posts: 1,191
Thanks: 61
Thanked 13 Times in 11 Posts
|
|
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...
|

3rd August 2006, 08:01
|
|
Senior Member
|
|
Join Date: Sep 2005
Posts: 1,191
Thanks: 61
Thanked 13 Times in 11 Posts
|
|
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?
|

3rd August 2006, 09:35
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 32,071
Thanks: 697
Thanked 4,248 Times in 3,260 Posts
|
|
Do you have logfiles with todays and yesterdays date in /var/log/httpd ?
|

3rd August 2006, 10:08
|
|
Senior Member
|
|
Join Date: Sep 2005
Posts: 1,191
Thanks: 61
Thanked 13 Times in 11 Posts
|
|
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!?
|

3rd August 2006, 10:20
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 32,071
Thanks: 697
Thanked 4,248 Times in 3,260 Posts
|
|
What is the output of:
which webalizer
|

3rd August 2006, 10:22
|
|
Senior Member
|
|
Join Date: Sep 2005
Posts: 1,191
Thanks: 61
Thanked 13 Times in 11 Posts
|
|
h898552:~# which webalizer
/usr/bin/webalizer
h898552:~#
|
| 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 23:49.
|
Recent comments
7 hours 24 min ago
8 hours 24 min ago
12 hours 11 min ago
13 hours 25 min ago
17 hours 1 min ago
1 day 16 min ago
1 day 9 hours ago
1 day 10 hours ago
2 days 1 hour ago
2 days 4 hours ago