Created
November 22, 2018 13:33
-
-
Save GideonBabu/5940f351714dd3836ae07b94e5a668b6 to your computer and use it in GitHub Desktop.
Setup Logrotate on the server
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /var/www/html/var/log/*.log { | |
| daily | |
| missingok | |
| rotate 14 | |
| compress | |
| notifempty | |
| create 0777 www-data www-data | |
| } | |
| setup cron job | |
| /usr/sbin/logrotate -s /var/www/html/var/log/logrotate.status /var/www/html/html/app/etc/magento-logrotate.conf |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment