I have the following code:
ini_set("log_errors", 1);
ini_set("error_log", "home/sites/production/log/test.log");
phpinfo();
When I view the webpage phpinfo()
shows the following:
______________________________________________________________________________
| Directive | Local Value | Master Value |
|___________|________________________________|_________________________________|
| error_log | /var/log/php-fpm/www-error.log | /var/log/php-fpm/www-error.log |
Why does it not change?
I have different sites, and I would like to log the errors in separate log files. For example, I would like to have separate log files for my production, development, and Q/A sites. I am currently using php 5.5.17.