Skip to content

Instantly share code, notes, and snippets.

@mikebuchanon
Last active October 5, 2015 22:38
Show Gist options
  • Save mikebuchanon/2888890 to your computer and use it in GitHub Desktop.
Save mikebuchanon/2888890 to your computer and use it in GitHub Desktop.
Running logrotate for Zend CE

##To configure log rotation:##

  1. Log in as root or use sudo to execute the following commands.
  2. Create a file called zendserver using a text editor and save it in /etc/logrotate.d/, with the following content:
/usr/local/zend/var/log/*.log { 
  size 5M 
  missingok 
  rotate 10 
  compress 
  delaycompress 
  copytruncate 
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment