Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why isn't IIS executing the PHP code of my site root index.php file?

Tags:

php

iis

IIS is literally sending <?php ... ?> code to the browser rather then executing it.

But, only for the root http://domain.com/index.php file.

All other .php files in that folder and index.php files in subfolders execute as expected.

How can I get my root index.php code to execute?


Update: "index.php" is a Default Document of my Web Site...

alt text http://img412.imageshack.us/img412/4130/defaultdocumentmt9.gif

like image 811
Zack Peterson Avatar asked Jan 21 '26 02:01

Zack Peterson


1 Answers

It seems you have properly configured your handlers. If you're using <? ... ?> make sure you have short_open_tag = On in your php.ini.

like image 149
Eduardo Campañó Avatar answered Jan 22 '26 19:01

Eduardo Campañó



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!