PHP Error Logs on IIS 7.5/Windows Server 2008

前端 未结 2 1634
情歌与酒
情歌与酒 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:09

    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
    
    0 讨论(0)
  • 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.

    0 讨论(0)
提交回复
热议问题