Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Not the first setup I install, but I can't figure out what's going on ...

System :
- Windows Server 2003
- IIS with FastCGI
- PHP 5.3.1

I've setup :
- fcgi.ini as usual with a single [PHP] section pointing on my C:\PHP\php-cgi.exe
- IIS / FCGI mapping on .php file
- PHP.ini is almost standard. Just enabled full error logging and MySQL extension.

The strangiest is the result :
- When I call my test.php in my browser it just "connecting ..." for ever. No display, no error.

Even if my test.php contains no PHP !
But if I rename it test.html everything's OK !

I'm a little lost here ...

share|improve this question

I recently implemented a similar setup:

From my deployment notes, the install steps were:

  • Download PHP 5.3.1 zip (, note the "Which version do I choose?" section)
  • Install into c:\php
  • Test php -v works on the command line (in c:\php)
  • Associate .php with FastCGI: IIS Manager -> machine -> Web Sites -> site -> right click, choose properties -> choose "Home Directory" tab, click "Configuration", Mappings tab. Config for .php looks like:

alt text

  • Configure FastCGI's config file (C:\WINDOWS\system32\inetsrv\fcgiext.ini) with at least:

  • Append/change the following to c:\php\php.ini. Without this config, my config bounces between giving blank pages and not loading at all (I guess this is your problem):
    fastcgi.impersonate = 1
    fastcgi.logging = 0
    cgi.force_redirect = 0
  • Set
    on in c:\php\php.ini and uncomment extension=php_mysql.dll.
  • Restart IIS for the site (click the stop/play buttons)

In this config, you've essentially got two components, the plumbing between IIS-FastCGI-PHP, and PHP itself. I'd recommend isolating which of these isn't working:

  • Temporarily edit fcgiext.ini and point the PHP ExePath to something different, e.g. c:\php\nothere.exe. If the server starts returning "The FastCGI executable could not be found" for PHP requests, then I'd FastCGI was working correctly, and PHP is at fault.
  • Run PHP with its default config, the fastcgi/cgi changes above and display_errors on. You'll need to restart IIS (and possibly kill off any php-cgi processes) for the site you're restarting for the changes to be recognised.
  • Run PHP on the command line with a simple phpinfo(); script, to check basic operation, and note where the loaded php.ini is. This checks a rogue config file (e.g. in c:\, c:\windows etc) is not being used.

These steps confirm (at least) the PHP executable is being invoked, with the most basic config.

hope this helps,


share|improve this answer
Thank You Lockie. I finally was a studip little thing I forgot : Correctly setting the PHP setting "extension_dir" to "ext", which it not by default in the PHP Zip version. Thanks for the time you spent writting your answer. It will be a good "check list" for my next setup :-) – Jalil Dec 13 '09 at 22:16
up vote 0 down vote accepted

It's working now : I simply forgot to correctly set the PHP setting "extension_dir" to "ext", which it not by default in the PHP Zip version.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.