After some good hard work I have Ispconfig working very well but found a very over inflated log file of almost 900M. The apache error log file is full of these entries: I looked at my cron tab and it is full of ISPconfig entries such as: 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 I know something is a miss and would love a good insite as to what direction I may further look into debugging the error log. -Adam
Please post the output of: ls -la /root/ispconfig/cronolog ls -lah var/log/httpd/ The crontab entries you posted are fine, as long as there are no duplicates of these entrys.
Here are the outputs: # ls -la /root/ispconfig/cronolog -rwxr-xr-x 1 root root 40511 2007-06-06 21:29 /root/ispconfig/cronolog* # ls -lah /var/log/httpd/ total 2.0M drwxr-xr-x 2 root root 8.0K 2007-06-11 00:30 ./ drwxr-xr-x 23 root root 52K 2007-06-13 23:59 ../ lrwxrwxrwx 1 root root 46 2007-06-10 00:05 ispconfig_access_log -> /var/log/httpd/ispconfig_access_log_2007_06_10 -rw-r--r-- 1 root root 95K 2006-11-09 22:04 ispconfig_access_log_2006_11_09 -rw-r--r-- 1 root root 54K 2006-11-15 12:33 ispconfig_access_log_2006_11_15 -rw-r--r-- 1 root root 361 2006-11-20 16:08 ispconfig_access_log_2006_11_20 -rw-r--r-- 1 root root 372 2006-11-30 12:52 ispconfig_access_log_2006_11_30 -rw-r--r-- 1 root root 361 2006-12-05 16:36 ispconfig_access_log_2006_12_05 -rw-r--r-- 1 root root 1.8K 2006-12-08 04:47 ispconfig_access_log_2006_12_07 -rw-r--r-- 1 root root 57K 2007-02-03 22:30 ispconfig_access_log_2007_02_03 -rw-r--r-- 1 root root 1.7M 2007-02-20 18:01 ispconfig_access_log_2007_02_20 -rw-r--r-- 1 root root 1.8K 2007-02-23 10:37 ispconfig_access_log_2007_02_23 -rw-r--r-- 1 root root 5.4K 2007-02-26 22:28 ispconfig_access_log_2007_02_26 -rw-r--r-- 1 root root 531 2007-03-17 12:30 ispconfig_access_log_2007_03_17 -rw-r--r-- 1 root root 3.9K 2007-06-10 00:06 ispconfig_access_log_2007_06_10 -Adam
Looks ok. What's the output of Code: df -h ? Did you modify the Apache configuration manually and maybe change the CustomLog directive?
Sorry it has taken me a while to get back. But I have been trying various elements before I respond and all my attempts have failed to take care of the huge error log. The out put to: df -h # df -h Filesystem Type Size Used Avail Use% Mounted on /dev/hda4 xfs 4.0G 1.7G 2.4G 42% / varrun tmpfs 505M 72K 505M 1% /var/run varlock tmpfs 505M 0 505M 0% /var/lock procbususb usbfs 505M 72K 505M 1% /proc/bus/usb udev tmpfs 505M 72K 505M 1% /dev /dev/hda10 jfs 2.0G 3.3M 2.0G 1% /tmp /dev/hda11 jfs 2.1G 133M 1.9G 7% /site /dev/hda8 jfs 5.0G 1.4G 3.7G 28% /var/log /dev/hda6 jfs 6.0G 3.9M 6.0G 1% /var/spool /dev/hda9 jfs 2.0G 448K 2.0G 1% /var/tmp /dev/hda7 xfs 87G 173M 87G 1% /var/www -Adam
This looks fine too. Do you get a error when you execute this command: Code: /root/ispconfig/cronolog --symlink=/var/log/httpd/ispconfig_access_log /var/log/httpd/ispconfig_access_log_%Y_%m_%d
I issued the command but it has stalled with no return of the prompt. The current up to date /var/log/httpd/ directory is listed as: Code: total 2.0M lrwxrwxrwx 1 root root 46 2007-06-10 00:05 ispconfig_access_log -> /var/log/httpd/ispconfig_access_log_2007_06_10 -rw-r--r-- 1 root root 95K 2006-11-09 22:04 ispconfig_access_log_2006_11_09 -rw-r--r-- 1 root root 54K 2006-11-15 12:33 ispconfig_access_log_2006_11_15 -rw-r--r-- 1 root root 361 2006-11-20 16:08 ispconfig_access_log_2006_11_20 -rw-r--r-- 1 root root 372 2006-11-30 12:52 ispconfig_access_log_2006_11_30 -rw-r--r-- 1 root root 361 2006-12-05 16:36 ispconfig_access_log_2006_12_05 -rw-r--r-- 1 root root 1.8K 2006-12-08 04:47 ispconfig_access_log_2006_12_07 -rw-r--r-- 1 root root 57K 2007-02-03 22:30 ispconfig_access_log_2007_02_03 -rw-r--r-- 1 root root 1.7M 2007-02-20 18:01 ispconfig_access_log_2007_02_20 -rw-r--r-- 1 root root 1.8K 2007-02-23 10:37 ispconfig_access_log_2007_02_23 -rw-r--r-- 1 root root 5.4K 2007-02-26 22:28 ispconfig_access_log_2007_02_26 -rw-r--r-- 1 root root 531 2007-03-17 12:30 ispconfig_access_log_2007_03_17 -rw-r--r-- 1 root root 3.9K 2007-06-10 00:06 ispconfig_access_log_2007_06_10 ISPconfig has been installed on the system since at lease a year and the log rotation has not been rotating but hanging. -Adam