Debugging a site using IIS Log

Irfan Ranjha 21 Reputation points
2022-06-13T20:53:59.22+00:00

For learning purpose I was working on a PHP based web site on Windows 10 Pro IIS, I got the error code 500, I wanted to debug this error using IIS logs (I know other methods but this time I want to debug it purely using IIS)

What I already have tried:
In IIS I clicked the web site I was working on, in web site features section under IIS I clicked Logging, I changed the logging path to some different place so that I can clearly see what log was generated, I set folder Read/Write security with App Pool related user. I did same for FTP site for FTP related trace.

When I load the page I get error 500 I open the log folder in W3SVxx folder I can see the log file but I was not able to find an clue regarding error.

I also added Failed Request Tracing Rule for *.php, status code 500-599, Provider WWW Server, but error log folder was empty, that means no log file was generated

I also looked at Event Viewer, but I was not able to find any error trace.

I want to know what kind of log settings could be helpful to trace such errors?

Internet Information Services
{count} votes