Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where does IIS 7.5 log errors?

Tags:

php

iis-7.5

Where does IIS 7.5 log errors?

Event Viewer? Log File?

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

I'm running PHP and I did what this last comment on this post said. But still it is not logging to the C:\windows\temp folder.

like image 455
capdragon Avatar asked Jan 21 '11 21:01

capdragon


People also ask

Where are the IIS error logs?

IIS Logs Location: On a standard Windows Server, IIS log files are found at %SystemDrive%\inetpub\logs\LogFiles by default.

How do I read an IIS error log?

There are a few ways to locate the IIS log files in Windows Server 2012. Open the Server Manager and click IIS in the side menu located on the left side of the screen. Right-click the server that is installed under IIS, and on the menu that is displayed, click Internet Information Services (IIS) Manager.


2 Answers

To report errors in Event Viewer, go to your php.ini file and make sure logging is on.

log_errors = On 

Then enable error_log to write to syslog (with is Event Viewer on a Windows machines)

error_log = syslog 
like image 122
NeerPatel Avatar answered Oct 08 '22 12:10

NeerPatel


For PHP v5.3, look here:

C:\Windows\Temp\PHP53_errors.log 
like image 41
MacGyver Avatar answered Oct 08 '22 13:10

MacGyver