« Previous Next »

Thread: IIS6 / php-4.4.4-Win32 FastCGI stops responding after a couple hits.

Last post 11-04-2006 9:34 AM by SoHoAlex. 6 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (7 items)

Sort Posts:

  • 11-01-2006, 7:38 AM

    IIS6 / php-4.4.4-Win32 FastCGI stops responding after a couple hits.

    My setup is Windows Server 2003 SP1 (fully patched) + IIS6 + php.4.4.4.

    I've extracted IIS6-IIS51-FastCGI-Technical-Preview.zip, and ran the installer:

    c:\IIS6-IIS51-FastCGI-Technical-Preview>cscript fcgisetup.js /install
    Microsoft (R) Windows Script Host Version 5.6
    Copyright (C) Microsoft Corporation 1996-2001. All rights reserved.

    IIS version 6
    Stopping IIS...
    ...done
    Copying files ...
    Copying C:\IIS6-IIS51-FastCGI-Technical-Preview\fcgiext.dll
    to C:\WINDOWS\system32\inetsrv\fcgiext.dll
    Copying C:\IIS6-IIS51-FastCGI-Technical-Preview\fcgiext.ini
    to C:\WINDOWS\system32\inetsrv\fcgiext.ini
    Copying C:\IIS6-IIS51-FastCGI-Technical-Preview\fcgiext.pdb
    to C:\WINDOWS\system32\inetsrv\fcgiext.pdb
    ... done!
    Starting IIS...
    ... done!
    Creating Web Service Extension Restriction List entry for
     'C:\WINDOWS\system32\inetsrv\fcgiext.dll' ...
    ...done
    Installation completed successfully.

     c:\IIS6-IIS51-FastCGI-Technical-Preview>cscript fcgisetup.js /r /add c:\php4\php.exe PHP
    Microsoft (R) Windows Script Host Version 5.6
    Copyright (C) Microsoft Corporation 1996-2001. All rights reserved.

    IIS version 6
    Configuring FastCGI program ...
    ... done
    Creating handler mappings ...
    Path:IIS://localhost/W3SVC
    Path:IIS://localhost/W3SVC/1/ROOT
    Path:IIS://localhost/W3SVC/2329/ROOT
    Path:IIS://localhost/W3SVC/6787/ROOT
    ...done
    Installation completed successfully.

    I created C:\Inetpub\wwwroot\modinfo.php with the text <?php phpinfo(); ?>.

    I can visit http://localhost/modinfo.php, and it shows me the correct phpinfo. After about 3/4 refreshes the phpinfo page simply hangs, and shows no output (it just keeps loading).

    I have to completely kill w3wp.exe to get it running again.

    HTTPERR logs shows:

    2006-11-01 12:36:38 127.0.0.1 1570 127.0.0.1 80 HTTP/1.1 GET /modinfo.php - 1 Connection_Dropped DefaultAppPool
    2006-11-01 12:36:38 127.0.0.1 1571 127.0.0.1 80 HTTP/1.1 GET /modinfo.php - 1 Connection_Dropped DefaultAppPool
    2006-11-01 12:36:38 127.0.0.1 1572 127.0.0.1 80 HTTP/1.1 GET /modinfo.php - 1 Connection_Dropped DefaultAppPool

    Any suggestions?

    Alex Schoenmaker, SoHosted
    Platform: Windows Server 2003 (SP2), IIS6, PHP4 and PHP5.
  • 11-01-2006, 2:23 PM In reply to

    • mvolo
    • Top 25 Contributor
    • Joined on 09-17-2003, 9:48 AM
    • Philadelphia, PA
    • Posts 584
    • IIS MVPs

    Re: IIS6 / php-4.4.4-Win32 FastCGI stops responding after a couple hits.

    We have not tested the technical preview with PHP 4 (PHP5 only) - there is a chance that there are some incompabilities with the php 4 CGI exe.

    We are looking into it right now - thanks for submitting the report, stay tuned!

    Thanks,
    This posting is provided "AS IS" with no warranties, and confers no rights.
  • 11-01-2006, 5:38 PM In reply to

    Re: IIS6 / php-4.4.4-Win32 FastCGI stops responding after a couple hits.

    Thanks!

     If there is any update on this matter, will this information be posted here or should I be able to find updates somewhere else?

    Alex Schoenmaker, SoHosted
    Platform: Windows Server 2003 (SP2), IIS6, PHP4 and PHP5.
  • 11-01-2006, 8:26 PM In reply to

    • mvolo
    • Top 25 Contributor
    • Joined on 09-17-2003, 9:48 AM
    • Philadelphia, PA
    • Posts 584
    • IIS MVPs

    Re: IIS6 / php-4.4.4-Win32 FastCGI stops responding after a couple hits.

    I'll shout something on this forum.  Thanks for reporting the issue.
    This posting is provided "AS IS" with no warranties, and confers no rights.
  • 11-02-2006, 7:25 PM In reply to

    Re: IIS6 / php-4.4.4-Win32 FastCGI stops responding after a couple hits.

    Hi SoHoAlex,

    Thanks for reporting this! I just fixed the issue. We'll need to do a bunch of regression testing before releasing an update.

    Cheerz,

    Rick

  • 11-03-2006, 6:18 PM In reply to

    • mvolo
    • Top 25 Contributor
    • Joined on 09-17-2003, 9:48 AM
    • Philadelphia, PA
    • Posts 584
    • IIS MVPs

    Re: IIS6 / php-4.4.4-Win32 FastCGI stops responding after a couple hits.

    SoHoAlex,

    There is a workaround you can try to enable this scenario before the updated fix is released.

    In the fcgiext.ini file located in %systemdrive%\system32\inetsrv\, make the following changes to the settings for the path to your PHP.EXE:

    InstanceMaxRequests=150
    flushNamedPipe=1

    Then, do an iisreset.

    This will work around an issue that occurs whenever a FastCGI program quits before it exhausts the maximum number of requests configured for it, AND the fastCGI program has an issue with its handling of named pipes.  PHP 4.x has a bug in its handling of the FastCGI named pipe which causes the issue you are reporting.

    Let us know if this doesnt help you.

    Thanks,
    This posting is provided "AS IS" with no warranties, and confers no rights.
  • 11-04-2006, 9:34 AM In reply to

    Re: IIS6 / php-4.4.4-Win32 FastCGI stops responding after a couple hits.

    Thanks Mike, this works perfectly for me!

    I'll eagerly awaite the next update aswell. Thanks!

    Alex Schoenmaker, SoHosted
    Platform: Windows Server 2003 (SP2), IIS6, PHP4 and PHP5.
Page 1 of 1 (7 items)
Microsoft Communities