IIS Configuration Optimization

When moving from Zend Core to Zend Server on IIS, Microsoft's FastCGI is used instead of the Zend's FastCGI. Therfore, the settings and configurations are in a different location. For more information per IIS version, see below.

Tuning FastCGI Configuration for IIS6

These performance enhancements are defined by default when you install Zend Server .

By default, Zend Server runs with a maximum of ten concurrent PHP instances. For high load Web servers, it is recommended to increase this value, based on your performance requirements and other hardware/software limitations (such as memory, CPU, etc.).

 

 

Instructions on how to complete a procedure

To control the maximum amount of concurrent PHP instances:

  1. Go to C:\WINDOWS\system32\inetsrv\fcgiext.ini.

  2. Locate the entry for "php" under Types.

  3. Locate the section corresponding to this entry (usually under "[PHP]").

  4. Append the following line at the end of this section:
    MaxInstances=10

This will enable Zend Server to run ten PHP instances, for high loads. If you have lots of memory and high loads, you can increase this value even more.

 

 

 

Instructions on how to complete a procedure

To control the amount of requests handled by a single PHP instance before recycling:

  1. Go to C:\WINDOWS\system32\inetsrv\fcgiext.ini.

  2. Locate the entry for "php" under Types.

  3. Locate the section corresponding to this entry (usually under "[PHP]").

  4. Append the following line at the end of this section:
    InstanceMaxRequests=10000

This will allow a single PHP instance to handle 10,000 requests, instead of the default 1,000.

If you set this number higher, make sure you increase the value of  PHP_FCGI_MAX_REQUESTS located in the same file accordingly.

Tuning FastCGI Configuration for IIS7

These performance enhancements are defined by default when you install Zend Server.

By default, Zend Server runs with a maximum of ten concurrent PHP instances. For high load Web servers, it is recommended to increase this value, based on your performance requirements and other hardware/software limitations (such as memory, CPU, etc.).

Requirements: IIS7 Resource Kit -

(x86) http://www.iis.net/downloads/default.aspx?tabid=34&i=1682&g=6

(x64) http://www.iis.net/downloads/default.aspx?tabid=34&i=1683&g=6

Once installed, you can administer your FastCGi settings from the Internet Information Services (IIS) Manager.

From here, you can configure your MaxInstances and InstanceMaxRequests.

 

 

Instructions on how to complete a procedure

To tune FastCGi configuration for IIS7:

  1. Go to Start | All Programs | Administrative Tools | Internet Information Services 7 - Application Server Manager.

  2. Select the server to manage from the left tree.

  3. Click FastCGI Settingsand select <install_dir>\bin\php-cgi.exe.

  4. In the Actions section (on the right), click "Add Application..."
    The Add FastCGI Application dialog opens:

Add FastCGI Application Dialog.

  1. Tweak the variables as necessary.
    The recommended Zend default is MaxInstances=10 and InstanceMaxRequests=10000.

Depending on which settings you change, the Web server's memory and CPU consumption are adjusted.