I'd like to add the date
to the name of my slow log file (to make like a rotating log).
I can't find a way to do it like this in my php-fpm.conf
. The server doesn't restart with the date. Is this even possible to accomplish this way?
[www]
date = $(date +"%Y-%m-%d")
slowlog = /var/www/html/perf/slow-$date.log
request_slowlog_timeout = 3s
You can't add changeable variables to php-fpm.conf , it's not a PHP file, it's basically a text file