Hi All,

With PHP 4 now to be retired it is time for me to finally get with the times and upgrade to PHP 5. I have been running PHP 4.4.x on IIS 6 in FastCGI mode using the isapi_fcgi.dll from the PECL site for some years, and have been very happy with performance and reliability it has offered. However, coming to PHP 5.2.x my upgrade path is not as clear.

I have tried using isapi_fcgi.dll with PHP 5.2.3, and although I can quite easily get it to serve up a phpinfo(); page, when it comes to serving actual web applications needing sessions, extensions and the like it falls in a heap. Just wondering if anyone had successfully configured IIS using FastCGI with isapi_fcgi.dll to serve PHP web apps under PHP 5.2.3?

I am aware that Microsoft now have their own FastCGI handler, but I have tested it and although it seems to get a lot further than isapi_fcgi.dll it is still far from complete. At present I am using PHP in CGI mode using the non-thread safe packages. Performance is quite good, and is actually matching ISAPI performance, though I doubt it will scaled very well under load.

Anyway, if anyone has any suggestions for running PHP 5.2.3 in FastCGI mode using the isapi_fcgi.dll on IIS 6 would be great.

Cheers

    So you're saying normal PHP pages work fine (including phpinfo(), which shows the appropriate PHP version and everything)?

    If that's the case, then it sounds like PHP isn't finding the php.ini file. Have you added the PHPRC environment variable and rebooted the server?

      Actually phpinfo() seems to be the only page working. All my PHP web apps display a blank page with nothing written to the log or screen with logging set to E_ALL and display errors on. The PHPRC variable is set and a I did reboot it. Phpinfo() shows the correct path to the php.ini file, so not really sure what else to look at here...

        Oh, and the other thing if I use just a straight CGI mapping instead of FastCGI every thing works just fine.

          Write a Reply...