error_log php.ini setting has no effect on IIS 7/FastCGI/Win7/PHP5.3.2

Posted by Lucas on Stack Overflow See other posts from Stack Overflow or by Lucas
Published on 2010-05-17T22:16:39Z Indexed on 2010/05/17 22:20 UTC
Read the original article Hit count: 882

I have a very strange problem with PHP 5.3.2 running on IIS 7 on a fresh Windows 7 installation. Changing the error_log configuration options in the php.ini does not seem to have any effect. I cannot change the option to point to anything other than the default location.

Here is a portion of my php.ini file and the output from phpinfo() before and after changing some configuration options. Everything else seems to have taken effect except the error_log option. I have noticed that the fastcgi.logging option also appears to be stuck.

A previous setup with PHP 5.3.2 on Win XP and IIS 5.5 exhibited no problems. Also, this seems to be a bit different than other PHP + error_log problems that have been posted as the configuration option is never even being recognized by PHP.

display_errors = On
log_errors = Off
error_log = mylog.log
magic_quotes_gpc = Off

Directive         Local Value                     Master Value
---------------   ------------------------------  ------------
display_errors    On                              On
log_errors        Off                             Off
error_log         C:\Windows\temp\php-errors.log  C:\Windows\temp\php-errors.log
magic_quotes_gpc  Off                             Off

After changing the configuration options to:

display_errors = Off
log_errors = On
error_log = php_errors.log
magic_quotes_gpc = On

I get the following from phpinfo()

Directive         Local Value                     Master Value
---------------   ------------------------------  ------------
display_errors    Off                             Off
log_errors        On                              On
error_log         C:\Windows\temp\php-errors.log  C:\Windows\temp\php-errors.log
magic_quotes_gpc  On                              On

© Stack Overflow or respective owner

Related posts about php5.3

Related posts about windows-7