Created
July 27, 2016 06:08
-
-
Save kujiy/3f11333f0939a674bd7e807a09e4accd to your computer and use it in GitHub Desktop.
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
# /etc/logrotate.d/php | |
/var/log/php_errors.log { | |
rotate 4 | |
missingok | |
notifempty | |
sharedscripts | |
delaycompress | |
postrotate | |
/bin/systemctl reload httpd.service > /dev/null 2>/dev/null || true | |
endscript | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Activate php error log
php.ini
[root@ra]# cat /etc/php.ini | grep _errors.log error_log = /var/log/php_errors.log
logrotate
TEST