I am attempting to install PHP onto Windows Server 2008 R2. I have followed the instructions here but when I try to load phpinfo.php I get a blank page.
There are no errors in the Event Viewer.
The server is used to host multiple other Asp.Net websites but I am using PHP so that I can install MediaWiki.
UPDATE:
When trying to load simple HTML (with no PHP) it also loads as blank. The fix for this seems to be to enable “Static Content” in the “Turn Windows features On/Off” manager – but this is already in place.
So I found the solution after hours of randomly trying things. I removed and re-added the Static Content role in Windows – still same result. Then I edited the Error Pages feature of the website in IIS to say return Detailed Error Messages. At this point PHP started to complain about the timezone so I set to “Europe\London” – for this to take effect you need to restart IIS.
After that it worked, phpinfo now loads!