# PHP not redirecting to next page (IIS7)

**URL:** <https://www.phphelp.com/t/php-not-redirecting-to-next-page-iis7/22032>\
**Category:** PHP Installation and Configuration\
**Created:** [February 5, 2014, 12:41am UTC](https://www.phphelp.com/t/php-not-redirecting-to-next-page-iis7/22032 "2014-02-05T00:41:30Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![crosstown](https://www.phphelp.com/letter_avatar_proxy/v4/letter/c/f6c823/32.png) [@crosstown](https://www.phphelp.com/u/crosstown)\
**Post date:** [February 5, 2014, 12:41am UTC](https://www.phphelp.com/t/php-not-redirecting-to-next-page-iis7/22032/1 "2014-02-05T00:41:30Z")

</div>

I have installed PHP 5.4 with IIS7. I also have MySQL5.5 installed. Running localhost I can open the initial PHP page which is a login page to my website but when I click on a button on that page that should transfer me to the next page all I get is a blank screen.  
I initially developed these pages on a different PC under Apache and everything works fine.  
I started from scratch installing PHP on the box with IIS. Then I just transferred my previously developed pages to the root directory. I am assuming that the php code should not change.  
I think I must be missing something critical in the php.ini file but I don’t know what that is.  
Several installation instructions from the web all seem to be slightly different.  
Any suggestions?

---

<div class="post-metadata">

**Author:** ![scottlpool2003](https://www.phphelp.com/letter_avatar_proxy/v4/letter/s/71e660/32.png) [@scottlpool2003](https://www.phphelp.com/u/scottlpool2003)\
**Post date:** [February 5, 2014, 9:01am UTC](https://www.phphelp.com/t/php-not-redirecting-to-next-page-iis7/22032/2 "2014-02-05T09:01:36Z")

</div>

I’m running IIS 7.

Go into your PHP manager and go into error reporting and open the log. I’m taking it you have it set as a production machine, this means errors are not shown on the page but rather in the log. If you have any trouble troubleshooting via the log, get back and I’ll take a look.

---

<div class="post-metadata">

**Author:** ![crosstown](https://www.phphelp.com/letter_avatar_proxy/v4/letter/c/f6c823/32.png) [@crosstown](https://www.phphelp.com/u/crosstown)\
**Post date:** [February 6, 2014, 6:26pm UTC](https://www.phphelp.com/t/php-not-redirecting-to-next-page-iis7/22032/3 "2014-02-06T18:26:27Z")

</div>

Thanks.  
Let me state that I am not well versed in the “under the covers” setup that needs to be done. I am primarily an applications person.  
I have found the logs for IIS but I do not see php manager.  
I am starting to think that I may need to reinstall PHP.  
Like I said initially I have found several links for install instructions on the web and each one has some slightly different information. This site  
[http://blog.pluralsight.com/iis-7-install-fastcgi-php](http://blog.pluralsight.com/iis-7-install-fastcgi-php) (first does this look like a good set of instructions?)  
does not mention copying the php.ini file to the windows folder like other instructions say to. Just leave it in the PHP folder. Does it make a difference? Right now the .ini in the windows folder and the .ini in the php folder are different.  
Also I may not have selected IIS FastCGI like it suggests, although I did do some fastcgi settings through the IIS manager.  
The primary changes to php.ini appear to be:  
fastcgi.impersonate = 1  
cgi.fix\_pathinfo = 1  
cgi.force\_redirect = 0

I have also seen these:  
open\_basedir = c:\inetpub  
fastcgi.logging = 0  
doc\_root = “C:\inetpub\wwwroot”  
extension\_dir = :C:\php\ext"  
extensions = php\_mbstring.dll  
extensions=php\_gd2.dll  
extensions=php\_mysqli.dll  
extensions=php\_mysql.dll  
session.save\_path=“C:\php\session”  
I don’t know which of these are required and which are not.

Then recently I learned something else about where I am installing on IIS.  
There is another website already setup under IIS running [asp.net](http://asp.net). I know that these cannot run at the same time through the same port. So I am sure that complicates things.  
Can both of these even be running on the same server? or am I fighting a losing battle?

Like I said I am not a systems guy so any help is appreciated.

---

<div class="post-metadata">

**Author:** ![Topcoder](https://www.phphelp.com/user_avatar/www.phphelp.com/topcoder/32/4356_2.png) [@Topcoder](https://www.phphelp.com/u/Topcoder)\
**Post date:** [February 6, 2014, 6:38pm UTC](https://www.phphelp.com/t/php-not-redirecting-to-next-page-iis7/22032/4 "2014-02-06T18:38:15Z")

</div>

I use IIS7 also…

I bet your php code is using Short tags…

Add this to you php.ini

short\_open\_tag = 1

---

<div class="post-metadata">

**Author:** ![waleed444](https://www.phphelp.com/letter_avatar_proxy/v4/letter/w/fbc32d/32.png) [@waleed444](https://www.phphelp.com/u/waleed444)\
**Post date:** [February 24, 2015, 10:30am UTC](https://www.phphelp.com/t/php-not-redirecting-to-next-page-iis7/22032/5 "2015-02-24T10:30:27Z")

</div>

Thus I guess the PHP programmers will have to change their code, running with PHP 5.5.x.

* * *

aliiii
