xavier_baez
Jan 8 2005, 06:39 PM
#!/bin/sh
echo "" > /home/mysite.com/access_log.processed
#Error logs
echo "" > /home/mysite.com/socceraccess.com/error_log
This script will run via crontab, every day, around 5 AM
Plesk used ALL my hard drive, consuming more than 20 GB just in logs, in .processed logs, and in error_logs
How can I make plesk, get rid of those:
access_log.processed
error_log
every night?
this should be an automatic thing, done by the statistics program
Regards
Xavier
kamihacker
Jan 8 2005, 10:50 PM
there's a program for that on RHEL it's called logrotate
check your config at /etc/logrotate.conf
regards
fuzzball
Jan 9 2005, 11:41 AM
Plesk comes by default with log rotation disabled (or set very high), I'm too lazy to go look at the moment.
From the control panel, go to domains, click on a domain, then go to log rotation. Tell it to rotate the logs daily (or by size if you prefer) and tell it to compress old logs. The problem will go away.
comes by default OFF
like he said goto the domain
or domains you wish to have logrotate
on and set it up then turn on logrotate
within the plesk panel for each domain
xavier_baez
Apr 14 2005, 10:01 AM
really I've opened tickets and changed the option to ON in Plesk
The error_logs just won't rotate, I'm doing it now with /etc/logrotate.conf
Anybody else with the same problems?
4PSA
Apr 15 2005, 04:33 AM
You should enable log rotation for domains in Plesk. It uses a different logrotate.conf configuration.
xavier_baez
Apr 15 2005, 02:11 PM
I've enabled log rotation in plesk
I don't know if people don't believe me or if I'm doing something wrong
I did enabled log rotation in plesk, it works, EXEPET for error_log files
really strange
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please
click here.