Skip to content

Instantly share code, notes, and snippets.

@SimonSimCity
Created April 5, 2013 09:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save SimonSimCity/5317996 to your computer and use it in GitHub Desktop.
Save SimonSimCity/5317996 to your computer and use it in GitHub Desktop.
Logrotate for php5-fpm ... first definition is for the log of the master-process, the second one is for every pool.
/var/log/php5-fpm.log {
daily
rotate 21
missingok
notifempty
sharedscripts
postrotate
kill -USR1 `cat /opt/php/logs/nginx.pid`
endscript
}
/srv/http/*/log/php.error.log {
daily
copytruncate
rotate 21
missingok
notifempty
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment