Note that there are some explanatory texts on larger screens.

plurals
  1. POPHP default document (index.php) displaying code as plain text in IIS7
    primarykey
    data
    text
    <p>I've recently setup PHP 5.2.9-2 on IIS 7 on Windows Server 2008 SP2. Most everything seems to be working fine -- PHP is running great, just about all PHP code runs perfectly... EXCEPT for default pages. Any default document (index.php) is not interpreted by PHP and the page merely displays the underlying PHP code in the browser.</p> <p>Best Example -- two pages (index.php + phpinfo.php) with the exact same code: &lt;?php phpinfo(); ?&gt;</p> <p><strong><a href="http://mysite.com/test/" rel="nofollow noreferrer">http://mysite.com/test/</a></strong> --> "&lt;?php phpinfo(); ?&gt;" (displayed in plaintext) <strong><a href="http://mysite.com/test/index.php" rel="nofollow noreferrer">http://mysite.com/test/index.php</a></strong> --> "&lt;?php phpinfo(); ?&gt;" (displayed in plaintext)</p> <p><strong><a href="http://mysite.com/test/phpinfo.php" rel="nofollow noreferrer">http://mysite.com/test/phpinfo.php</a></strong> --> Proper "blue/gray" PHP Info page</p> <p>What's strange is: the root of my site (<a href="http://mysite.com" rel="nofollow noreferrer">http://mysite.com</a>) interprets PHP just fine via its default document, index.php.</p> <p>I've set up the site via the "best practices" (<a href="http://iis.net/fastcgi/configuration" rel="nofollow noreferrer">http://iis.net/fastcgi/configuration</a>). PHP is running via FastCGI. Index.php is the only default document type. "Mysite" is housed in a subdirectory off the root drive, and IUSR has permissions throughout. Handler Mappings shows PHP via FastCGI as the top entry for *.php.</p> <p>Been Googling this for hours, have seen others with very similar problems, but no resolution.</p> <p>Thanks!</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload