PHP Manager 1.1 available in Web PI

PHP Manager 1.1 for IIS 7 has been released today. This is an incremental release that contains all the functionality available in PHP Manager 1.0 for IIS 7 plus additional features listed below:

  • Improved detection logic for existing PHP installations. Now PHP Manager detects the location to php.ini file in accordance to the PHP specifications.
  • Configuring date.timezone. PHP Manager can automatically set the date.timezone directive which is required to be set starting from PHP 5.3.
  • Ability to add new PHP extensions. When pointed to a PHP extension file, the PHP Manager will copy it to the right location and will enable the extension in php.ini file.

In addition, several bugs were fixed in this release. The complete list of changes can be found in the change list.

PHP Manager can now be installed with Web Platform Installer. Use the link below to install it:


ruslany on December 9th 2010 in PHP


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

How to install PHP PEAR and phploc on Windows

PEAR (short for PHP Extension and Application Repository) is a framework and distribution system for reusable PHP components. In includes many useful tools and components that can be easily downloaded and installed by using PEAR package manager. This post describes how to install and configure PEAR package manager and then how to use it to install a PEAR package. An example PEAR package used in this post is phploc, which is a tool for measuring the size of PHP projects.

Start by installing PHP on Windows by using one of the following methods:

Now open an elevated command line prompt and go to the directory where PHP was installed. For example if PHP 5.3 was installed with Web PI 3.0 then the directory path will be: Continue Reading »


ruslany on November 22nd 2010 in PHP


PoorFairAverageGoodExcellent (No Ratings Yet)

PHP 5.3 and PEAR available in WebMatrix Beta 3

WebMatrix Beta 3 release has been announced recently. This release includes many new cool features that are described in release announcement and in the Web Deploy team blog. In addition to all those improvements, WebMatrix Beta 3 has much better support for PHP. Specifically:

  • It is now possible to enable PHP 5.3 (previous versions of WebMatrix and Web PI only supported PHP 5.2)
  • PHP can now be enabled on an empty new site in WebMatrix (previously it was required to install a PHP application in order to enable PHP on a site)
  • PEAR installation is now included when PHP is installed.

This post describes those improvements in more details. Continue Reading »

1 Comment »

ruslany on November 10th 2010 in PHP


PoorFairAverageGoodExcellent (No Ratings Yet)

PHP Manager 1.0 for IIS 7 – stable release

PHP Manager is a tool for IIS 7 that greatly simplifies installation, configuration, management and troubleshooting of PHP in IIS. A beta release of the tool has been published a month ago and since then it has been downloaded nearly five thousand times. Today I am releasing the final stable build of PHP Manager 1.0 for IIS 7, which includes new features and fixes for the bugs reported in the beta release.

Both x86 and x64 builds of PHP Manager 1.0 for IIS 7 can be downloaded from the project’s page at

Note: if you already have the beta release installed then it will be upgraded when you install the final build of PHP Manager 1.0 for IIS 7.

PHP Manager 1.0 can be used to:

  • Register PHP with IIS;
  • Validate and properly configure existing PHP installations;
  • Run multiple PHP versions side by side on the same server and even within the same web site;
  • Check PHP runtime configuration and environment (output of phpinfo() function);
  • Configure various PHP settings;
  • Enable or disable PHP extensions;
  • Remotely manage PHP configuration in php.ini file.

The most important feature introduced in this release is the validation and optimization of existing PHP configurations on IIS. Continue Reading »


ruslany on September 29th 2010 in FastCGI, PHP


PoorFairAverageGoodExcellent (No Ratings Yet)

PHP on IIS: get the latest security updates now

This morning Microsoft has released a security update that addresses the ASP.NET Security Vulnerability. The PHP applications running on IIS are subject to this vulnerability if ASP.NET is enabled in IIS.

IMPORTANT: Even if PHP applications on IIS do not use any of the ASP.NET features the vulnerability still exists as long as ASP.NET is enabled. It is recommended to install the security update as soon as possible.

The security update is available today via the Microsoft Download Center. In a next few days it will also be distributed via Windows Update channels. Once the update is on Windows Update, you can run the Windows Update on your servers to automatically apply the security patch.

If you plan to download the updates directly from Microsoft Download Center then follow the instructions in Scott Guthrie’s blog at:

1 Comment »

ruslany on September 28th 2010 in PHP


PoorFairAverageGoodExcellent (No Ratings Yet)

ASP.NET vulnerability affecting PHP sites on IIS

Update on Sep 28th, 2010: The security update for the vulnerability is available. More details can be found at PHP on IIS: get the latest security updates now.

Microsoft has recently released a Security Advisory about a security vulnerability in ASP.NET. This vulnerability exists in all versions of ASP.NET. The PHP applications running on IIS are also subject to this vulnerability if ASP.NET is enabled in IIS.

IMPORTANT: Even if PHP application is not using any of the ASP.NET features the vulnerability still exists as long as ASP.NET is enabled.

More information about the vulnerability can be found at the following links:

This blog post describes how to protect you PHP applications on IIS from attacks that exploit this vulnerability. Continue Reading »


ruslany on September 22nd 2010 in PHP


PoorFairAverageGoodExcellent (No Ratings Yet)

PHP Manager for IIS 7 – beta release

Today I am releasing PHP Manager for IIS 7 – beta, which is an IIS extension for setting up and managing multiple PHP installations on IIS 7 servers. It can be used to:

  • Register PHP with IIS;
  • Run multiple PHP versions side by side;
  • Check PHP runtime configuration and environment (output of phpinfo() function)
  • Configure various PHP settings
  • Enable or disable PHP extensions
  • Remotely manage PHP configuration in php.ini fille

The PHP Manager installation packages can be downloaded from these locations:

The project’s home page and documentation are located at This blog post describes how the PHP Manager for IIS can be used. Continue Reading »


ruslany on August 30th 2010 in FastCGI, PHP


PoorFairAverageGoodExcellent (No Ratings Yet)

Install PHP applications with WebMatrix

Microsoft has recently launched a beta release of a new project called WebMatrix. This is a complete web development stack that can be used to start developing and deploying web sites. One thing that may be not so obvious from all the existing announcements is the fact that WebMatrix has full support for installing, running and publishing PHP applications.

Here are the examples of how WebMatrix can be used to create and publish a PHP web site (using WordPress as a showcase). Continue Reading »


ruslany on July 9th 2010 in PHP, WordPress


PoorFairAverageGoodExcellent (No Ratings Yet)

WinCache Extension 1.1 for PHP – Release to Web

Today IIS team has published the final release of WinCache Extension 1.1 for PHP. This is the latest stable and production ready version of the extension. The v1.1 has all the features available in version 1.0 plus the following features.

  • User Cache API’s can be used by PHP scripts to store PHP objects and variables in shared memory. This way PHP scripts may improve the execution speed by storing processed data in the cache and then using it in subsequent requests instead of re-creating the data on every request.
  • WinCache Session Handler can be used to configure PHP to store the session data in shared memory cache. Using shared memory instead of the default file session storage helps improve performance of PHP applications that store large amount of data in session objects. The content of the WinCache session cache is persisted on disk so that it is not lost during IIS worker process recycling.
  • File Change Notifications – the entries in the opcode and file caches are now updated as soon as the corresponding PHP files are modified on a file system. This is very useful for PHP applications that store its configuration in PHP files – for example Joomla!. Now the configuration changes for those applications take effect right away instead of a 30 seconds delay (default cache refresh interval).
  • Lock/Unlock API’s – these API’s can be used to obtain/release an exclusive lock on a key in the cache.

Install the Windows Cache Extension 1.1 for PHP – RTW

To install the WinCache Extension 1.1 for PHP 5.2 and PHP 5.3, use the download links at the extension’s home page at Continue Reading »


ruslany on June 30th 2010 in PHP, WinCache


PoorFairAverageGoodExcellent (No Ratings Yet)

Storing URL rewrite mappings in a separate file

When using rewrite maps in IIS URL Rewrite it is very common to have a very large number of entries in a rewrite map. In order to avoid cluttering the configuration file - web.config - with this configuration data the rewrite maps can be defined in a separate configuration file. That file can then be referenced from the web.config file. This post provides an example of how this can be done.

Create a file called rewritemaps.config in the same directory where web.config file is. Open that file in notepad and add the following:

  <rewriteMap name="Redirects">
    <add key="/oldurl" value="/newurl" />
    <add key="/otheroldurl" value="/othernewurl" />

Save this file and then open web.config file in notepad. In the web.config file add the following inside of the <rewrite> section:

<rewriteMaps configSource="rewritemaps.config" />

The configSource attribute tells IIS configuration that the <rewriteMaps> section is defined in a separate file rewritemaps.config. This referenced section can be now uses as if it was defined in the same web.config file. Also, the IIS Manager UI will work well with this referenced file: when you modify or add entries to the rewrite map they will be stored in the rewritemaps.config file.

Here is a complete example web.config file that uses the rewrite map from referenced configuration file:

    <rewriteMaps configSource="rewritemaps.config"><rewriteMaps>
      <rule name="Redirect rule1 for Redirects">
        <match url=".*" />
          <add input="{Redirects:{REQUEST_URI}}" pattern="(.+)" />
        <action type="Redirect" url="{C:1}" appendQueryString="false" />

The same approach can be used for storing rewrite rules in a separate configuration file, e.g.:

<rules configSource="rewriteRules.config" />


ruslany on May 19th 2010 in URLRewrite


PoorFairAverageGoodExcellent (No Ratings Yet)

Recently Published Articles