Take the 2-minute tour ×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

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.

share

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.