3 thoughts on “Rotate Logs for Apache on Linux using logrotate”

  1. files should be together in the directory indicated by the Site address (URL) setting on your General Options page. Since the name of the file begins with a dot, the file may not be visible through an FTP client unless you change the preferences of the FTP tool to show all files, including the hidden files. Some hosts (e.g. Godaddy) may not show or allow you to edit .htaccess if you install WordPress through the Godaddy Hosting Connection installation.

  2. When using mysqldump on a replication master, if you want the slave(s) to follow, you may want to avoid the –delete-master-logs option, because it can delete binary logs before the “CHANGE MASTER” is read by the slaves, therefore breaking the replication (then you have to issue manually the “CHANGE MASTER” on the slave(s)). If you want to get rid of old and useless binary logs, it is better to issue a “PURGE MASTER” SQL command on the master after the mysqldump.

  3. You might want to add the following lines in there:


    Also, I would remove the size parameter as it will allow for easier analysis on the log files.

Leave a Reply