Doing Post deploy test and getting Error 500 0 0 93

I am going through the post deployment checks on a Windows 2016 Server install where you check to make sure the below files are accessible…
○ /matomo.php and /piwik.php
○ /matomo.js and /piwik.js
○ /js/tracker.php
○ /js/container_*.js
○ /plugins/HeatmapSessionRecording/configs.php

The .js files are accessible but none of the .php files are working.
Below is the IIS log entry…
2021-02-03 17:39:07 xxx.xxx.2xxx.xxx GET /analytics/matomo.php - 443 - yyy.yyy.yyy.yyy Mozilla/5.0+(Windows+NT+10.0;+Win64;+x64)+AppleWebKit/537.36+(KHTML,+like+Gecko)+Chrome/88.0.4324.104+Safari/537.36 - 500 0 0 93

The strange part is the files in the same directory work…

2021-02-03 17:38:48 xxx.xxx.xxx.xxx GET /analytics/robots.txt - 443 - yyy.yyy.yyy.yyy Mozilla/5.0+(Windows+NT+10.0;+Win64;+x64)+AppleWebKit/537.36+(KHTML,+like+Gecko)+Chrome/88.0.4324.104+Safari/537.36 - 200 0 0 1
2021-02-03 17:38:54 xxx.xxx.xxx.xxx POST /analytics/index.php date=yesterday&module=Live&action=getLastVisitsStart&idSite=1&period=day 443 - yyy.yyy.yyy.yyy Mozilla/5.0+(Windows+NT+10.0;+WOW64;+Trident/7.0;+Touch;+rv:11.0)+like+Gecko https://matomo..com/analytics/index.php?module=CoreHome&action=index&idSite=1&period=day&date=yesterday 200 0 0 298

Even the .js files work. The .php files are failing.
Any ideas?

Thanks

Hi,

The .php files are handled by PHP, so please check your Webserver error log to see what the error is that occurs.

What I posted are from the IIS webserver logs from E:\inetpub\logs\LogFiles\W3SVC1
Is there another location?

Log files in C:\Windows\System32\LogFiles\HTTPERR revealed no errors.

Hi,

Those are the access logs (so the log of every http request).

Honestly I know nothing about IIS and PHP on Windows, so I have no idea where they could be stored. You could also try looking at the Matomo log in /your/matomo/tmp/logs/matomo.log.