Previous Next

Thread: IIS7/PHP FastCGI

Last post 05-26-2008 2:11 AM by radirk. 4 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (5 items)

Sort Posts:

  • 04-29-2008, 1:22 PM

    • cjacob
    • Top 500 Contributor
    • Joined on 04-28-2008, 10:09 AM
    • Posts 9
    • cjacob

    IIS7/PHP FastCGI

    Hi All

    As mentioned in the config article http://learn.iis.net/page.aspx/246/using-fastcgi-to-host-php-applications-on-iis7/ section "Configure PHP and FastCGI Recycling Behavior" the following command does not work:

    C:\>%windir%\system32\inetsrv\appcmd set config -section:system.webServer/fastCgi /+[fullPath='c:\{php_folder}\php-cgi.exe'].environmentVariables.[name=’PHP_FCGI_MAX_REQUESTS’, value='10000']

    After reading I realize there is no fcgiext.ini file in IIS7. So my question is where do I config ’PHP_FCGI_MAX_REQUESTS’? Maybe this is not needed in IIS7?

  • 04-29-2008, 3:36 PM In reply to

    • swerve713
    • Not Ranked
    • Joined on 09-30-2002, 8:14 AM
    • Houston
    • Posts 6
    • swerve713

    Re: IIS7/PHP FastCGI

    You should find this setting in the applicationhost.config for IIS7, it appears that the INI file is only used in IIS6. 

    Chris
    Houston Super Geek
  • 04-30-2008, 11:49 AM In reply to

    • cjacob
    • Top 500 Contributor
    • Joined on 04-28-2008, 10:09 AM
    • Posts 9
    • cjacob

    Re: IIS7/PHP FastCGI

    Is is not loctaed in the applicationhost.config file. I'm only running IIS7 and am not using backward compatability for IIS6. So then...does this mean it is not needed?

  • 04-30-2008, 3:53 PM In reply to

    • ruslany
    • Top 50 Contributor
    • Joined on 07-01-2007, 3:38 PM
    • Redmond, WA
    • Posts 95
    • ruslany

    Re: IIS7/PHP FastCGI

    This setting is not mandatory and PHP on IIS7 will work fine with default value for it. The setting is supposed to be set in the <fastCgi> section of the applicationHost.config:

    Here is how you can set it in applicationHost.config:

            <fastCgi>
                <application fullPath="C:\PHP\php-cgi.exe" maxInstances="4" instanceMaxRequests="10000">
                    <environmentVariables>
                        <environmentVariable name="PHP_FCGI_MAX_REQUESTS" value="10000" />
                    </environmentVariables>
                </application>
            </fastCgi>

     What error do you get when you run appcmd? 

    http://ruslany.net
  • 05-26-2008, 2:11 AM In reply to

    • radirk
    • Not Ranked
    • Joined on 06-23-2003, 7:59 AM
    • Posts 1
    • radirk

    Re: IIS7/PHP FastCGI

    ruslany:

    This setting is not mandatory and PHP on IIS7 will work fine with default value for it. The setting is supposed to be set in the <fastCgi> section of the applicationHost.config:

    Here is how you can set it in applicationHost.config:

            <fastCgi>
                <application fullPath="C:\PHP\php-cgi.exe" maxInstances="4" instanceMaxRequests="10000">
                    <environmentVariables>
                        <environmentVariable name="PHP_FCGI_MAX_REQUESTS" value="10000" />
                    </environmentVariables>
                </application>
            </fastCgi>

     What error do you get when you run appcmd? 

     

    I also couldn't get the command to run successfully, getting:

    ERROR ( message:Cannot find SITE object with identifier "value='10000']". )

    but now I have manually inserted the settings into applicationHost.config.

    Thanks for that. 

    http://dirk.net
Page 1 of 1 (5 items)
Page view counter