My distro is Fedora Core 4. I follow every single step of the perfect setup. My problem is webalizer doesn't work as I expect. I can't get the stats at http://myweb/stats/ but I find the stat in /var/log/httpd and it's the stats for all. I'd like to get stats for every single vertual host and can access like http://vertualhostname/stats/ Could any one please show me the details of configuration? Please be noted that I'm not the Linux expert. Thanks in advance, ________ NO2 VAPORIZER REVIEW ________ WEB SHOWS
This problem was fixed several times, use the search function. Its the cron job, it doesnt work as expected..
I wait more than 5 days now. I've searched this forum regarding webalizer and try to run webalizer.php. After that I found directory called stats in VHost but the problem still exist even more webalizer doesn't work now. I don't see any changes in /var/www/usage after I ran webalizer.php. Please give me suggestion. ________ vapir oxygen vaporizer ________ LIVE SEX
A suggestion Try this: /etc/init.d/cron stop pkill cron (Make sure no cron processes are left.) Edit your crontab (crontab -e) and save it again. Then restart cron: /etc/init.d/cron start Wait max. 24 hours... It worked for some of us. Maybe you're lucky too...
Thank a million Hans, Could you please give me details of crontab(command sets) I should edit? I'm just a kid in Linux world. ________ Expert Insurance ________ WEB SHOWS
If you do an crontab -e (as root) It should contain this line: 0 4 * * * /root/ispconfig/php/php /root/ispconfig/scripts/shell/webalizer.php &> /dev/null This means that at 4:00 (every night) webalizer creates stats for you. Be sure that Web stats ar enabled in ISPConfig for the website. The webstatistics are stored in the stats directory of your web.
Thanks again Hans I'll pray all night to make my wish come true. ________ VAPORIZER ________ HOW TO ROLL A JOINT
I'm still getting no luck. there was nothing happen, I've checked /var/log/cron and it's OK. There was a job at 4 am in the morning but I still see no stats. I found that the stats at /var/www/usage still no change since 200608. Help please. ________ NEW JERSEY MARIJUANA DISPENSARY ________ CuteJenny
I found out that for Fedora it must be: /etc/init.d/crond stop Please have also a look here: http://www.howtoforge.com/forums/showthread.php?t=562&highlight=webalizer
Thanks Hans I already fixed that and cron is working fine now. The problem is webalizer doesn't work. Any procedures I should do? Thanks again. ________ latin girl Cams ________ Live Sex Webshows
I suggest you read this post here http://www.howtoforge.com/forums/showthread.php?t=562 and try everything mentioned. 1. stop cron, crontab -e, save, start cron 2.retype your crontab manually after emptying it. 3.go to ispconfig, login as admin, go to the site tha does not produce stat, go to options and below, uncheck save the site, wait some minutes, check it again and save the site again. #3 seems to have helped me, since this morning my stats appeared again. I feel a bit like doing voodoo magic here, try this and pray, try that and pray
I would read the steps in the thread http://www.howtoforge.com/forums/showthread.php?t=562&highlight=webalizer i gave you. And this: http://www.howtoforge.com/forums/showthread.php?t=562 The people involved had the same problem that webalizer was not compiling. Use the parts within in this thread which are usefull for you. (Falko gave also some hints). And remember you will know if it works or not after max. 24 h. Good luck!
Finally I can solve problem after reading few posts and try again. The problem is there is no cron job for root by default in Fedora distro. The stats doesn't compile if I only add a command calling webalizer.php. But when I add another command calling logs.php before webalizer.php , the stats starts compiling. Here are the procedures I did /etc/init.d/crond stop pkill crond crontab -e then add the following 30 00 * * * /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 0 4 * * * /root/ispconfig/php/php /root/ispconfig/scripts/shell/webalizer.php &> /dev/null 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 then start crond again /etc/init.d/crond start then login ispconfig -> goto site you want -> choose option tab and unchecked Webalizer Statistic -> Save after few minutes rechecked Webalizer Statistic and Save again and just wait one night. Thanks agian Hans, Tenaka, Till, Falko and everyone here Cheer. ________ KRISTALHOTXX LIVE
Hi! My problem is: server1:/usr/bin # /etc/init.d/cron stop Shutting down CRON daemon done server1:/usr/bin # pkill crond server1:/usr/bin # crontab -e crontab: installing new crontab server1:/usr/bin # /etc/init.d/crond start bash: /etc/init.d/crond: No such file or directory server1:/usr/bin # /etc/init.d/cron start Starting CRON daemon done I don’t know ore it’s a problem bat my crontab who’s totally empty! server1:/usr/bin # crontab -l # DO NOT EDIT THIS FILE - edit the master and reinstall. # (/tmp/crontab.XXXXPtm0xp installed on Mon Aug 14 17:21:53 2006) # (Cron version V5.0 -- $Id: crontab.c,v 1.12 2004/01/23 18:56:42 vixie Exp $) 30 00 * * * /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 0 4 * * * /root/ispconfig/php/php /root/ispconfig/scripts/shell/webalizer.php &> /dev/null 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 THIS WILL WORK???
WRONG! The correct syntax to make it run from cron.d is: 15 4 * * * root /root/ispconfig/php/php -c /root/ispconfig/php /root/ispconfig/scripts/shell/webalizer.php >& /dev/null Changes: - you need to provide "root" user to run as, otherwise cron won't even try to execute this job, - you need to give php -c, otherwise php can pickup wrong php.ini (it did for us), - "& >" is "run in background and redirect stdout", you need ">&" - "redirect stdout and stderr".
Thanx a lot! I have the same problem. No cron job for root in Fedora 5. I followed your instructions. We will see tomorow. KeeZzz...