PHP code returned means scriptmap is incorrect. Make sure the correct 32/64bit installation package is downloaded, double check the "Manually Configure the FastCGI Extension to Work with PHP" section in the article you posted, and use php.info page verify
configuration.
scottPaanane...
4 Posts
Fast CGI and IIS6
Oct 11, 2011 06:38 PM|LINK
I've followed the steps in this guide:
http://learn.iis.net/page.aspx/247/using-fastcgi-to-host-php-applications-on-iis-60/
When i try to get to my page, i only get a blank page.
Any ideas?
HCamper
8048 Posts
Re: Fast CGI and IIS6
Oct 11, 2011 06:47 PM|LINK
Hi,
Have you check the php-error.log for messages?
Have you set the Time / Zone in the php.ini file as part of post install?
Have you changed php.ini to show errors ?
Martin
Community Member Award 2011
scottPaanane...
4 Posts
Re: Fast CGI and IIS6
Oct 11, 2011 07:00 PM|LINK
yea, i set the timezone, and i have set PHP to log errors, none are coming up.
Any more ideas?
scottPaanane...
4 Posts
Re: Fast CGI and IIS6
Oct 11, 2011 07:07 PM|LINK
I've noticed that if i go to the page, and view the source, i see the PHP code.
It seems like it is not executing the php code.
HCamper
8048 Posts
Re: Fast CGI and IIS6
Oct 11, 2011 09:22 PM|LINK
Hello,
I said "Have you changed php.ini to show errors". By Default you do not see the errors in the browser.
The reason for seeing the PHP code is the Handler and Mapping are wrong.
Have you checked the PHP using the command line for test.php with <?PHP phpinfo(); ?> first.
The checked the PHP by copying test.php to C:\Inetpub\wwwroot\test.php
and then Enabling the Handler and Mapping in IIS Server and restarting the IIS Server.
The tested the PHP by using a browser with http:// localhost / test.php ?
Which installer did you use:
The Windows non-thread-safe using the msi installer ?
The Windows non-thread-safe using the zip archive ?
Have you checked the extensions in php.ini ?
Lots of ideas for common problems and issues.
You could try the no comments PHP install Tour
http://forums.iis.net/p/1181727/1997285.aspx#1997285
http://forums.iis.net/p/1181887/1997268.aspx#1997268
Martin
Community Member Award 2011
HCamper
8048 Posts
Re: Fast CGI and IIS6
Oct 11, 2011 09:53 PM|LINK
Hi,
I see you have http://forums.iis.net/p/1182297/1998809.aspx#1998809 WAMP IIS Server PHP & MySQL Server
this set of items that can cause confilicts and problems.
You can get into problems with PHP for Windows and WAMP they both
want to use the Windows location for the php.ini.
I have Learned this gets messy complex and take writing things down.
Martin
Community Member Award 2011
London
345 Posts
Re: Fast CGI and IIS6
Oct 14, 2011 09:15 AM|LINK
Hi,
PHP code returned means scriptmap is incorrect. Make sure the correct 32/64bit installation package is downloaded, double check the "Manually Configure the FastCGI Extension to Work with PHP" section in the article you posted, and use php.info page verify configuration.
HCamper
8048 Posts
Re: Fast CGI and IIS6
Oct 17, 2011 04:26 AM|LINK
Hi,
Download the latest FastCGI from here http://www.iis.net/download/fastcgi .
You need to use PHP installer for non-thread-safe Windows latest release from PHP for Windows Site.
The "Apache" versions will not work with IIS Server or FastCGI.
Remove all the previous IIS Server Handlers and Mappings and settings.
Start fresh with http://learn.iis.net/page.aspx/724/install-and-configure-php/ settings and configuration.
Do the Handlers and Mappings for FastCGI and recycle settings.
Then do the post install tests at the command-line and at IIS Server using the test.php.
If you still have problems post the errors from php-error.log php.ini settings for extensions.
Martin
Community Member Award 2011