Did you know that cPanel actually designed to be able to disallow certain folder/files to be backed up from your cPanel backup?
To accomplished this, you may look for the configuration file name cpbackup-exclude.conf. This configuration file exists in your virtual account root folder such as /home/username/cpbackup-exclude.conf.
If this file is not exist, you may simply create it.
Then you may open this file and enter the desired folder/files. The file format could be as below,
In case you have set to delete your MySQL binary log as
but, you still get lots of MySQL binary log.
To fix this issue, you may simply run this command,
mysql> PURGE BINARY LOGS BEFORE ‘2011-11-20’;
Today, I was found out one of customer server filled up with mysql-bin log and the server var space fully utilized.
From their MySQL path, file as below have filled up,
As mysql-bin used to record the event of the MySQL databases and it is not necessary to keep the log from the first day of the databases create until the present date, hence I would suggest for maximum 30 days of logs to be kept.
To disable the mysql-bin, simply remove log-bin from the MySQL configuration file, /etc/.my.cnf or my.ini.
log-bin = mysql-bin
Otherwise, keep only 30 days of log,
expire_logs_days = 30
If you have cPanel with your server, you might get the following error.
tailwatchd failed @ Tue Jan 1 00:00:00 2010. A restart was attempted automagically
Service Check Method: [check command] tailwatchd is not running
However, you do not need to worry on it as it might be cPanel services stopped or restarted.
To understand in detail, you may execute the command as below from your Shell.
tail -f /usr/local/cpanel/logs/tailwatchd_log
To fix it, you may try to execute the command as below.
Then restart the cPanel services.
service cpanel restart
If the issue still not fix, may update cPanel,
By default, Perl/CGI script will send the error to STDERR where it is the server standard error and normally it will store to the server Apache error log.
To setup private error_log from your Perl/CGI script, you may easily get them done with script below.
use CGI::Carp qw(carpout);
open(LOG, “>>/home/mickgenie.com/logs/cgi-error.log”) or
die(“Unable to open cgi-error.log: $!n”);
The carpout() used to call the error and send it to the log file that you set.
To setup error to send to browser,
use CGI::Carp qw(fatalsToBrowser);
die “Couldn’t open log file”;
Use the above script and it could send all the error to the Browser.