Configurar PHP 5.2.10 en IIS 6 con FastCGI

1. Se presupone que IIS 6 está instalado y funcionando.
2. Descargar el instalador de fastcgi de http://www.iis.net/extensions/FastCGI o del sitio que más guste (hay muchas fuentes con diferentes implementaciones). Hay que tener cuidado con descargar la versión correcta: para 32 bits o para 64. Instalarlo.
3. Descargar el instalador de PHP de http://www.php.net. Ejecutarlo. Cuando pregunte cómo se desea instalar, elegir el funcionamiento a través de FastCGI. Seleccionar las extensiones que se desee instalar y terminar el proceso de instalación.
4. Una vez instalado, pinchar en Administrador IIS -> Web Sites -> [botón derecho] -> Properties -> Home Directory -> Configuration -> Add
5. En la pantalla que aparece, poner la ruta hacia la dll de fastcgi, que por defecto se habrá instalado en c:/windows/system32/inetsrv/fcgiext.dll. En extensión añade «php» y asegúrate de que está tildada la opción «Script engine». Guardar.
6. Configura manualmente el fichero c:/windows/system32/inetsrv/fcgiext.ini (si fastcgi se instaló en otra carpeta, el .ini también se encontrará ahí). Deben añadirse las secciones [TYPES] y [PHP5] así:
[Types]
php=PHP5
[PHP5]
ExePath=[rutahacia]php-cgi.exe
7. Listo tus scripts PHP son accesibles desde cualquier dominio configurado en el IIS o que configures posteriormente. Si sólo deseas hacerlo sobre un website en particular, realiza el paso 4 sólo sobre el website en el que desees activar la ejecución de scripts PHP.

Share this post

Related post

  1. hend217 2010.01.27 2:58am

    Excelente tutorial, fue el único que me sirvió después de intentar muchas alternativas.

    Lo que si es que debes aclarar (que por alguna razón no aparecen las barras invertidas) en el paso 5, la ruta es:
    c/:windows/system32/inetsrv/fcgiext.dll

    Y en el paso 6, la ruta sería
    c/:windows/system32/inetsrv/fcgiext.ini

  2. Juanfer 2010.02.12 8:57pm

    Hola hend217, gracias por el apunte; artículo corregido. Tampoco sé por qué al guardarlo la primera vez no funcionó bien. Me alegro de que la información te sirviera de ayuda. Un saludo, y suerte!

  3. DarT 2010.12.09 7:07pm

    Hola que tal, seguí los pasos y pues al perecer funciono porque si muestra la pagina de inicio (presentacion) de mi sitio pero cuando ya entra realmente al sitio ya no muestra nada, alguna idea de porque?

    De antemano gracias

{ Piensa / Think }

"This is a waste of life. [...] the entire educational system in the modern day is nothing more than a cookie cutter processing plant that prepares humans for mostly predefined occupational roles. This element of human life has become so traditionally ingrained, that many falsely consider the nature of ‘having a job’ some form of human instinct. Even parents will ask their kids “What do you want to be when you grow up?” as though there was only one thing. This is disturbing and a violation of human potential." - The Zeitgeist Movement


"He aprendido que hay cosas que pueden ser comprendidas pero que nunca podrán ser explicadas con palabras sin desvirtuar su grandeza" - Andrés Pascual


"You never change things by fighting the existing reality. To change something, build a new model that makes the existing model obsolete." - Buckminster Fuller


"... I am the master of my fate. I am the captain of my soul." - William Ernest Henley