PDA

View Full Version : dev/hda7 FULL


HL-Hosting
09-23-2003, 10:00 PM
/dev/hda7 256667 243510 0 100% /var

I have my linux on a console mode not visual (KDE).
How would I delete the logs or set it so it could delete the logs it self?

Thank You,
Roman

DirectAdmin Support
09-24-2003, 01:01 AM
Hello,

There a few things you can do:

1) lower the log rotate size for apache logs: Admin Panel -> Admin Settings -> Apache Log Rotate Size

2) change the logrotate program to rotate the logs more often, and keep fewer backups:
edit /etc/logrotate.conf
change "weekly" to "daily"
chage "rotate 4" to "rotate 2"

3) move the apache logs directory for domains to a larger partition: /home/logsmkdir -p /home/log/httpd/domains
mv /var/log/httpd/domains/* /home/log/httpd/domains
ln -sf /home/log/httpd/domains /var/log/httpd/domains
/sbin/service httpd restart

4) if mysql is using up most of the space, use the same method from 3) on /var/lib/mysql to /home/mysql

Hope that helps,

John

HL-Hosting
09-24-2003, 02:30 PM
Thank You! :D