2

I'm using error_log which has been working fine for years under IIS 6. Recently I upgraded to IIS 7.5 (Windows 7) and the messages logged by error_log stop appearing.

In fact nothing is going to the log. If I call an incorrect function to force a real PHP error, it gets reported to the screen, but not to the file. My ini settings:

display_errors=On
error_log='C:\Work...\php_errors.log'
log_errors=on
error_reporting=E_ALL & !E_DEPRECATED

I've also added < httpErrors existingResponse="PassThrough" /> to the web.config file in my virtual directory but it doesn't work even after a restart.

Can anyone shed any light?

Pacerier
  • 521
  • 16
  • 35
Al Henderson
  • 141
  • 1
  • 6

1 Answers1

2

The problem eventually turned out to be access permissions for the folder where the error log was. I had to give the IUSR user write access to that folder.

Al.

Al Henderson
  • 141
  • 1
  • 6