PHP Error Logs on IIS 7.5/Windows Server 2008

前端 未结 2 1638
情歌与酒
情歌与酒 2021-02-07 07:31

I\'m confused about where I should be looking for a log file containing php errors on a Windows 2008 Server running IIS 7.5 (I\'m more familiar with the Mac OS X setup for this)

2条回答
  •  名媛妹妹
    2021-02-07 08:18

    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.

提交回复
热议问题