Archive for the 'FastCGI' tag

Windows Cache Extension 1.0 for PHP – Beta

Today IIS team has released the beta of the Windows Cache Extension 1.0 for PHP. The Windows Cache Extension for PHP is a PHP accelerator, that is used to increase the speed of PHP applications running on the Windows operating systems. Any PHP application can take advantage of the functionality provided by the Windows Cache Extension for PHP without any code modifications. All that is required is that the extension is enabled and loaded by the PHP engine.

Install the Windows Cache Extension 1.0 for PHP – Beta

wpibadgesilver

or, download:

Windows Cache Extension 1.0 for PHP 5.2 – Beta

Windows Cache Extension 1.0 for PHP 5.3 – Beta

Follow the instructions at “Using Windows Cache Extension for PHP” to install, enable and configure the extension. Continue Reading »

9 Comments »

ruslany on September 1st 2009 in PHP

9,093 views

PoorFairAverageGoodExcellent (3 votes, average: 5.00 out of 5)

Per-site PHP configuration with PHP 5.3 and IIS

About a year ago I wrote an article about how to enable per-site PHP configuration on IIS with FastCGI. The instructions in that article required some non-trivial manipulations of IIS and FastCGI configuration settings. At that time it was one of the primary options for enabling per site php.ini support (other option was to use the htscanner extension for PHP). Now, with PHP 5.3 final release available, it is much simpler to implement the same configuration because PHP 5.3 has built-in support for per-directory INI settings and for user-defined INI files. This post describes how to use these features of PHP 5.3 with IIS to enable per-site and per-directory PHP configuration. Continue Reading »

9 Comments »

ruslany on July 11th 2009 in FastCGI, PHP

38,624 views

PoorFairAverageGoodExcellent (1 votes, average: 5.00 out of 5)

FastCGI Extension 1.5 for IIS 6.0 and IIS 5.1 – RC

Today IIS team has released the FastCGI Extension 1.5 for IIS 6.0 and IIS 5.1 – Release Candidate. This version is based on FastCGI Extension 1.0 and it adds several important improvements and features. The release is believed to have a quality level suitable for production deployments.

Install the Release Candidate of FastCGI Extension 1.5 for IIS 6.0 and IIS 5.1

Install FastCGI 1.5 RC with Web Platform Installer

or, download:

FastCGI Extension 1.5 for IIS 6.0 and IIS 5.1 – RC (x86)

FastCGI Extension 1.5 for IIS 6.0 and IIS 5.1 – RC (x64)

Upgrade from FastCGI Extension 1.0 and 1.5 Beta releases

If you already have installed FastCGI Extension v1.0 or FastCGI Extesnion v1.5 Beta, then the installation package will upgrade it to version 1.5 – RC. All the related IIS configuration and settings in fcgiext.ini file will be preserved during upgrade. Note that during upgrade from v1.0 the comments in fcgiext.ini will not be updated and will not mention new configuration settings. However the new settings can still be used after upgrade. Continue Reading »

1 Comment »

ruslany on June 24th 2009 in FastCGI

8,672 views

PoorFairAverageGoodExcellent (2 votes, average: 5.00 out of 5)

FastCGI Extension 1.5 for IIS 6.0 and IIS 5.1 – Beta

Today IIS team has released the FastCGI Extension 1.5 for IIS 6.0 and IIS 5.1 – Beta. This version is based on FastCGI Extension 1.0 and it adds several important improvements and features.

Install the Beta of FastCGI Extension 1.5 for IIS 6.0 and IIS 5.1

Install FastCGI with Web PI

or, download:

FastCGI Extension 1.5 for IIS 6.0 and IIS 5.1 (x86)

FastCGI Extension 1.5 for IIS 6.0 and IIS 5.1 (x64)

Upgrade from FastCGI Extension 1.0 release

If you already have FastCGI Extension version 1.0 installed then the installation package will upgrade it to version 1.5. All the related IIS configuration and settings in fcgiext.ini file will be preserved during upgrade. Note that during upgrade the comments in fcgiext.ini will not be updated and will not mention new configuration settings. However the new settings can still be used after upgrade. Continue Reading »

3 Comments »

ruslany on April 20th 2009 in FastCGI

13,922 views

PoorFairAverageGoodExcellent (1 votes, average: 5.00 out of 5)

Install PHP with Microsoft Web Platform Installer 2.0

While the task of setting up PHP on IIS was not a difficult one, it anyway required a lot of manual installation and configuration steps. With the PHP 5.2.9-1 release the PHP development community has put a lot of improvements to the PHP installer to make it easy to setup PHP on IIS 5.1, IIS 6.0 and IIS 7.0. The latest PHP installer can be downloaded from the PHP community site.

Now, with the release of Microsoft Web Platform Installer 2.0 Beta (Web PI), the task of enabling PHP on Windows OS has become the easiest it has ever been. Here are the three simple steps you need to follow: Continue Reading »

11 Comments »

ruslany on March 26th 2009 in FastCGI, PHP

37,758 views

PoorFairAverageGoodExcellent (4 votes, average: 5.00 out of 5)

Windows Installer for PHP 5.2.9 RC and PHP 5.3 Beta

I am pleased to let everyone know that PHP development community has made significant improvements to the installer in upcoming PHP releases. In particular a number of bugs have been fixed to make the installer work well with FastCGI extension in IIS 5.1 and IIS 6.0 and with FastCGI module in IIS 7.0. Now the installer will do for you many of the configuration steps that previously you had to complete manually by following the instructions in the article Using FastCGI to Host PHP Applications on IIS 7.0. Specifically, the installer will:

  1. Unpack PHP core files and extensions
  2. Make changes to the php.ini to enable necessary extensions and specify correct extension path
  3. Create and configure a new FastCGI process pool for PHP executable
  4. Create a script or handler mapping for *.php extension.

Continue Reading »

15 Comments »

ruslany on February 12th 2009 in FastCGI, PHP

36,247 views

PoorFairAverageGoodExcellent (7 votes, average: 4.86 out of 5)

Major revision of FastCGI/PHP article on IIS.NET

Since the time we have published the article about installing FastCGI and PHP on IIS 7.0 it has become one of the most popular articles on http://learn.iis.net. Also it has received a lot of comments from site visitors. Today, we are publishing the updated version of this article that contains more up-to-date information and addresses most of the feedback from community. Here is what this article includes now:

Please take a look at the new content and leave comments if you have any questions of feedback.

Acknowledgments: I would like to thank IIS.NET visitors who have provided their comments and corrections to this article. Also I thank Jake and Bill for doing a final review of the article.

6 Comments »

ruslany on October 31st 2008 in FastCGI, PHP

23,301 views

PoorFairAverageGoodExcellent (1 votes, average: 5.00 out of 5)

Update for IIS 7.0 FastCGI module

IIS team has recently released an update for IIS 7.0 FastCGI module that fixes compatibility problems with several popular PHP applications. In particular, the update changes the behavior of FastCGI module in the following ways:

  1. REQUEST_URI server variable set by FastCGI module now includes query string and path info. Previously, lack of the query string in this server variable caused the popular CMS application Drupal to not work with FastCGI on IIS 7.0
  2. REQUEST_URI server variable now contains the originally requested URL path before any URL rewriting was performed. Prior to this fix, the server variable used to contain a final rewritten URL, which caused problems when using URL rewriting to enable “pretty permalinks” for popular blog engine WordPress.

Note that above mentioned problems do not exist in IIS 6.0 FastCGI Extension, which always has been setting the REQUEST_URI server variable correctly.

The update is available for download from the following locations:

Warning: if your PHP application was coded in a way so that it relied on the REQUEST_URI server variable to contain the requested URL without a query string or to contain the final rewritten URL, then installing this update may break your application. Before applying the update, please make sure that your application does not rely on incorrect behavior of FastCGI module.

Acknowledgements: I want to thank IIS team members (Anil Ruia, Won Yoo, Yamini Jagadeesan) for providing this update and Zend Technologies team (Stanislav Malyshev) for validating the changes in FastCGI module.

20 Comments »

ruslany on August 26th 2008 in FastCGI, PHP, WordPress

28,828 views

PoorFairAverageGoodExcellent (6 votes, average: 4.50 out of 5)

Ruby on Rails in IIS 7.0 with URL Rewriter

This article is very out of date at this point and most probably the instructions given here do not work. Please refer to more up-to-date and supported solutions for running Ruby on Rails in IIS 7 provided by Helicon Zoo Web Framework Repository.

If you ever tried to set up Ruby on Rails (RoR) on IIS 7.0 with FastCGI you have probably noticed that the process is not very straightforward. There are a few workarounds that need to be applied in order for RoR to function correctly. In particular, handling of static files in your web application can be tricky on IIS 7.0. The problem is that RoR uses clean URL’s that look similar to this: http://mysite.com/home/about. In order for RoR to be invoked for this kind of URL’s  it is necessary to create a “catch all” handler mapping in IIS (that is a handler mapping with path attribute set to “*“). When you create such a handler mapping it will cause requests for static files to be routed to RoR, which will obviously fail to handle them.

For RoR to work correctly on IIS with FastCGI it needs to behave like a 404 handler, meaning that it should be invoked only if the requested URL does not exist as a file on a physical file system. The default IIS configuration does not allow this kind of configuration, so there are several workarounds available today – this article describes them in great details. However, these workarounds are either not recommended for production usage or are not easy to configure. In this post I will explain how URL Rewrite Module for IIS 7.0 can be used to configure IIS and RoR to work correctly with static files.

Continue Reading »

31 Comments »

ruslany on August 7th 2008 in FastCGI, URLRewrite

46,406 views

PoorFairAverageGoodExcellent (6 votes, average: 4.83 out of 5)

Per-site PHP configuration with IIS FastCGI

There have been a few questions on IIS.NET PHP forum regarding enabling per-site PHP configuration. This is a common requirement when running PHP applications in shared hosting environment, because each PHP application may require a different set of PHP settings. Shared hosting providers often want to provide their customers with an option of controlling PHP configuration if necessary.

Until recently, it was thought that per-site PHP configuration was only possible when running PHP on Apache in *nix based OS. However, with FastCGI module it is possible to enable this for PHP applications hosted on IIS 6.0 and IIS 7.0.

The development team at GoDaddy.com has researched and validated several options for enabling per-site PHP configuration on Windows. Based on their findings, we have updated the PHP shared hosting guide with instructions on how to allow per-site php.ini files when running PHP via FastCGI on IIS 7.0. In this post I will explain how to accomplish the same on IIS 6.0 by using FastCGI extension.

Continue Reading »

17 Comments »

ruslany on July 12th 2008 in FastCGI, PHP

65,715 views

PoorFairAverageGoodExcellent (4 votes, average: 5.00 out of 5)

Recently Published Articles