dev/hda7 FULL

HL-Hosting

Verified User
Joined
Jul 25, 2003
Messages
20
Location
New York City
/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

Administrator
Staff member
Joined
Feb 27, 2003
Messages
9,005
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/logs
Code:
mkdir -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
 
Top