« Previous Next »

Thread: Only one PHP Application will work at a time.

Last post 12-19-2008 3:01 PM by joe.davis. 3 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (4 items)

Sort Posts:

  • 12-04-2008, 1:48 PM

    • joe.davis
    • Not Ranked
    • Joined on 12-04-2008, 1:15 PM
    • Kansas City
    • Posts 3

    Only one PHP Application will work at a time.

    I have a 32bit 2003 STD R2 SP2 server running FastCGI and PHP 5.2.6. There are two IIS Sites running, each with their own application pool and identity. One site is running WordPress and the other is running PHPMyAdmin. When the server first starts or IIS is reset, the site which is hit first runs fine. The other site will get this error:

    FastCGI Error

    The FastCGI Handler was unable to process the request.

    Error Details:

    • The FastCGI process exited unexpectedly
    • Error Number: -2 (0xfffffffe).
    • Error Description: Unknown Error

    HTTP Error 500 - Server Error.
    Internet Information Services (IIS)

    --------------------------

     I have done the following in my attempt to resolve this issue:

    • Reset IIS, and load the site which was throwing the FastCGI error (PHPMyAdmin) before the site that wasn't (WordPress). The PHPMyAdmin site worked fine but the WordPress site did not.
    • Reset IIS and did the exact opposite as above (loaded WordPress before PHPMyadmin) and the exact opposite result was achieved (WordPress worked but PHPMyAdmin did not).
    • Checked permissions for all directories in concern (c:\php; c:\windows\system32\inetsrv; respective website directories). All permissions were fine, as I suspected because the sites do work if they load first.
    • Ran c:\php\php-cgi.exe d:\websitelocation\phpscript.php for both sites and the proper result was returned.
    • Cussed and screamed at the server, PHP, and FastCGI and the expected result was achieved (the vein in my forehead nearly popping). :-)
    • Checked FastCGI config file (fcgiext.ini) against the documentation here: http://learn.iis.net/page.aspx/248/configuring-fastcgi-extension-for-iis60/.
    • Configured FastCGI with separate settings for each website. Same result.

    I may have forgotten one or two things I have tried but I think I got them all.

    Thank you for any help you can provide.

    -Joe

  • 12-05-2008, 6:50 AM In reply to

    Re: Only one PHP Application will work at a time.

     In my experience, a 500 error with

    The FastCGI process exited unexpectedly

    means your php code crashed somewhere. Debug it step by step

  • 12-05-2008, 9:43 AM In reply to

    • joe.davis
    • Not Ranked
    • Joined on 12-04-2008, 1:15 PM
    • Kansas City
    • Posts 3

    Re: Only one PHP Application will work at a time.

    Thanks Mike but both applications work fine IF they are the first application to load. If the WordPress site loads before the PHPMyAdmin site, it's application pool and thus user account will load the php-cgi.exe executable into memory. When the PHPMyAdmin site tries to load, it cannot, for some reason unknown to me, load the php-cgi.exe executable. If the PHPMyAdmin site loads before the WordPress site, it runs fine and the WordPress site has the problem.

    Thanks!
    Joe

  • 12-19-2008, 3:01 PM In reply to

    • joe.davis
    • Not Ranked
    • Joined on 12-04-2008, 1:15 PM
    • Kansas City
    • Posts 3

    Re: Only one PHP Application will work at a time.

    bump

Page 1 of 1 (4 items)
Microsoft Communities