Where does IIS 7.5 log errors?

前端 未结 5 2139
闹比i
闹比i 2020-11-30 07:06

Where does IIS 7.5 log errors?

Event Viewer? Log File?

I get a very non specific internal 500 error. I would like to find out more.

I\'m running PHP

5条回答
  •  没有蜡笔的小新
    2020-11-30 07:58

    On my IIS 7.5 server I found this code in the php.ini file right down the bottom.

    [WebPIChanges]
    error_log=C:\Windows\temp\php54_errors.log
    upload_tmp_dir=C:\Windows\temp
    session.save_path=C:\Windows\temp
    cgi.force_redirect=0
    cgi.fix_pathinfo=1
    fastcgi.impersonate=1
    fastcgi.logging=0
    max_execution_time=300
    date.timezone=Australia/Canberra
    extension_dir="C:\Program Files (x86)\PHP\v5.4\ext\"
    

    I'm not sure if all of the above code is required because I'm not great with php.ini files but I can confirm the error log file is reachable and working.

    This fix still requires the following if anyone is wondering.

    log_errors = on
    error_log = syslog
    

提交回复
热议问题