PHP Error Logs on IIS 7.5/Windows Server 2008 PHP Error Logs on IIS 7.5/Windows Server 2008 php php

PHP Error Logs on IIS 7.5/Windows Server 2008


In the php.ini (you can find this under "c:\program files (x86)\php\{PHP Version}") change these settings:

log_errors = On

Then set error_log to syslog for the windows event log:

error_log = syslog

Or specify a location on disk such as:

error_log = C:\Windows\temp\php_errors.log

Make sure that the error_log or log_error values aren't being set elsewhere in the file.


If you are using xampp in windows. The error log can be find in

cd C:\xampp\apache\logs\

Use the following command to display the latest errors

tail -f .\error.log