HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   General (http://www.howtoforge.com/forums/forumdisplay.php?f=15)
-   -   No webalizer stat generated (http://www.howtoforge.com/forums/showthread.php?t=42299)

savago 31st December 2009 11:06

No webalizer stat generated
 
FC 12 perfect setup

no webalizer stats generated

/root/ispconfig/php/php -q /root/ispconfig/scripts/shell/webalizer.php
Error: Can't open log file /var/www/web1/log/web.log (symlink)
Error: Can't open log file /var/www/web6/log/web.log (symlink)
Error: Can't open log file /var/www/web5/log/web.log (symlink)

till 31st December 2009 11:19

You have to wait up to 24 hours until new stats get generated and there must have been pages accessed for these sites, otherwise you get the error above as there is no web.log file then.

savago 4th January 2010 11:48

Quote:

Originally Posted by till (Post 214831)
You have to wait up to 24 hours until new stats get generated and there must have been pages accessed for these sites, otherwise you get the error above as there is no web.log file then.

I was run crontabs as root:
crontab -l
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 4 * * * /root/ispconfig/php/php /root/ispconfig/scripts/shell/awstats.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

and see output
/root/ispconfig/php/php -q ..

p.s

/root/ispconfig/php/php -q /root/ispconfig/scripts/shell/ftp_logs.php
grep: /var/log/xferlog.0: No such file or directory

/root/ispconfig/php/php -q /root/ispconfig/scripts/shell/mail_logs.php
grep: /var/log/maillog.0: No such file or directory
/bin/awk
/bin/awk
/bin/awk

till 4th January 2010 11:53

Please post the output of:

ls /var/log/

savago 4th January 2010 12:01

Quote:

Originally Posted by till (Post 215113)
Please post the output of:

ls /var/log/

ls -la /var/log/
total 136444
drwxr-xr-x 18 root root 4096 2010-01-04 12:51 .
drwxr-xr-x 24 root root 4096 2009-12-18 23:59 ..
-rw------- 1 root root 76960 2009-12-18 15:42 anaconda.log
-rw------- 1 root root 42749 2009-12-18 15:42 anaconda.syslog
-rw------- 1 root root 24543 2009-12-18 15:42 anaconda.xlog
drwxr-x--- 2 root root 4096 2010-01-03 14:20 audit
drwxr-x--- 2 backuppc backuppc 4096 2009-09-25 17:13 BackupPC
-rw-r--r-- 1 root root 0 2010-01-03 03:13 boot.log
-rw-r--r-- 1 root root 2985 2009-12-19 20:56 boot.log-20091220
-rw-r--r-- 1 root root 2785 2009-12-23 14:08 boot.log-20091227
-rw-r--r-- 1 root root 210 2009-12-30 10:20 boot.log-20100103
-rw------- 1 root utmp 2304 2010-01-03 16:25 btmp
-rw------- 1 root utmp 1659264 2009-12-29 10:44 btmp-20100101
drwxr-xr-x 2 root root 4096 2009-12-18 15:55 ConsoleKit
-rw------- 1 root root 85009 2010-01-04 13:00 cron
-rw------- 1 root root 30634 2009-12-20 03:29 cron-20091220
-rw------- 1 root root 145686 2009-12-27 03:16 cron-20091227
-rw------- 1 root root 423045 2010-01-03 03:13 cron-20100103
drwxr-xr-x 2 lp sys 4096 2009-12-23 13:25 cups
drwxr-xr-x 2 root root 4096 2009-07-25 10:55 dirmngr
-rw-r--r-- 1 root root 30312 2009-12-23 14:08 dmesg
-rw-r--r-- 1 root root 31308 2009-12-23 13:22 dmesg.old
drwx------ 2 root root 4096 2010-01-04 12:49 httpd
-rw-r--r-- 1 root root 13321 2009-12-18 22:50 ispconfig_install.log
-rw-r--r-- 1 root root 5840584 2010-01-04 12:42 lastlog
drwxr-xr-x 2 root root 4096 2009-12-18 15:36 mail
-rw------- 1 root root 1989719 2010-01-04 13:00 maillog
-rw------- 1 root root 1365337 2009-12-20 03:26 maillog-20091220
-rw------- 1 root root 12856950 2009-12-27 03:16 maillog-20091227
-rw------- 1 root root 10862246 2010-01-03 03:13 maillog-20100103
-rw-r--r-- 1 root root 31555374 2010-01-04 12:51 maillog.ispconfigsave
-rw------- 1 root root 101842 2010-01-04 12:55 messages
-rw------- 1 root root 11655330 2009-12-20 03:29 messages-20091220
-rw------- 1 root root 36466820 2009-12-27 03:16 messages-20091227
-rw------- 1 root root 24179136 2010-01-03 03:13 messages-20100103
drwxr-xr-x 2 munin munin 4096 2010-01-04 03:31 munin
-rw-r----- 1 mysql mysql 15969 2009-12-30 09:30 mysqld.log
drwxr-xr-x 2 ntp ntp 4096 2009-12-09 13:49 ntpstats
drwx------ 2 root root 4096 2009-09-16 21:03 ppp
drwxr-xr-x 2 root root 4096 2009-12-18 19:29 prelink
drwxr-x--- 2 root root 4096 2009-12-11 01:41 proftpd
-rw------- 1 root root 24850 2009-12-18 15:42 program.log
drwxr-xr-x 2 root root 4096 2010-01-03 03:13 rkhunter
drwxr-xr-x 2 root root 4096 2010-01-04 00:00 sa
drwx------ 3 root root 4096 2009-12-18 15:36 samba
-rw------- 1 root root 743679 2010-01-04 12:49 secure
-rw------- 1 root root 1608068 2009-12-20 02:05 secure-20091220
-rw------- 1 root root 325907 2009-12-27 02:10 secure-20091227
-rw------- 1 root root 1384892 2010-01-03 02:10 secure-20100103
-rw------- 1 root root 0 2010-01-03 03:13 spooler
-rw------- 1 root root 0 2009-12-18 15:33 spooler-20091220
-rw------- 1 root root 0 2009-12-20 03:29 spooler-20091227
-rw------- 1 root root 0 2009-12-27 03:16 spooler-20100103
drwxr-x--- 2 squid squid 4096 2009-11-23 20:00 squid
-rw------- 1 root root 71050 2009-12-18 15:42 storage.log
-rw------- 1 root root 0 2009-12-18 15:33 tallylog
-rw-r--r-- 1 root root 0 2009-12-18 15:55 wpa_supplicant.log
-rw-rw-r-- 1 root utmp 238464 2010-01-04 12:42 wtmp
-rw-r--r-- 1 root root 0 2010-01-03 03:13 xferlog
-rw-r--r-- 1 root root 267 2009-12-21 03:41 xferlog-20091221.gz
-rw-r--r-- 1 root root 68539 2009-12-27 03:16 xferlog-20091227.gz
-rw-r--r-- 1 root root 13619 2010-01-03 03:13 xferlog-20100103.gz
-rw-r--r-- 1 root root 1097847 2010-01-04 12:50 xferlog.ispconfigsave
-rw------- 1 root root 0 2010-01-01 04:23 yum.log
-rw------- 1 root root 250340 2009-12-30 09:24 yum.log-20100101

falko 5th January 2010 13:01

What's the output of
Code:

getenforce
?

savago 6th January 2010 09:44

Quote:

Originally Posted by falko (Post 215213)
What's the output of
Code:

getenforce
?


# getenforce
Disabled

falko 7th January 2010 15:04

Can you run
Code:

/root/ispconfig/php/php /root/ispconfig/scripts/shell/logs.php
/root/ispconfig/php/php /root/ispconfig/scripts/shell/webalizer.php

?
Do you get any error messages? Do the stats work afterwards?

savago 8th January 2010 10:16

Quote:

Originally Posted by falko (Post 215403)
Can you run
Code:

/root/ispconfig/php/php /root/ispconfig/scripts/shell/logs.php
/root/ispconfig/php/php /root/ispconfig/scripts/shell/webalizer.php

?
Do you get any error messages? Do the stats work afterwards?

No errors.
Not working.

falko 9th January 2010 11:06

Quote:

Originally Posted by savago (Post 214826)
Error: Can't open log file /var/www/web1/log/web.log (symlink)
Error: Can't open log file /var/www/web6/log/web.log (symlink)
Error: Can't open log file /var/www/web5/log/web.log (symlink)

Can you check the log directory of all your web sites and check if there's a web.log in it?


All times are GMT +2. The time now is 12:53.

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