Windows – IIS 7 on 2008r2 shows blank page

iis-7.5PHPwindowswindows-server-2008-r2

I am using IIS7 on Windows Server 2008r2. I have recently installed php and IIS. I am trying to browse to the index.php but it returns a blank page. It loads the favicon and the header of my page. When I load an info.php file it is not blank.

If I disable Anonymus Authentication it the same index.php returns IIS 7.5 Detailed Error – 401.2 – Unauthorized.

What is strange is I installed this exact code onto another fresh IIS install I just did and it loads fine. Permissions for the directory are the same for both.

Best Answer

From the IIS click or select the site folder then in top right corner click permission

under security add "Network Service" which is equivalent of IISUSER

then restart the site and try