Help - Search - Members - Calendar
Full Version: plesk really does a bad jobs with logs, server out of service for hours
The Planet Forums > Control Panels > Plesk
xavier_baez
#!/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
there's a program for that on RHEL it's called logrotate

check your config at /etc/logrotate.conf

regards
fuzzball
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.
Tex
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
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
You should enable log rotation for domains in Plesk. It uses a different logrotate.conf configuration.
xavier_baez
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.
Invision Power Board © 2001-2009 Invision Power Services, Inc.