Click Here to Install Silverlight*
United StatesChange|All Microsoft Sites
Microsoft
Download Center 
Search Advanced Search

Windows Cache Extension 1.0 for PHP 5.3 - RC

Brief Description
The Windows Cache Extension 1.0 for PHP is a PHP accelerator that is used to increase the speed of PHP code running on Windows Operating System.

On This Page

Quick Details
File Name:wincache53_rc.exe
Version:1.0
Date Published:10/20/2009
Language:English
Download Size:154 KB - 371
Estimated Download Time: 1 min 56K
*Download size depends on selected download components.

Overview

The Windows Cache Extension for PHP is a PHP accelerator that is used to increase the speed of executing PHP scripts on the Windows Operating System. The extension increases PHP performance by:
  1. Caching the contents of PHP script files in shared memory, which helps to reduce the amount of file system I/O operations that is performed by the PHP engine. This is especially important when the PHP scripts are located on a remote UNC file share.
  2. Caching the mappings between the relative file paths and corresponding absolute file paths. This reduces the amount of requests to file system when PHP scripts perform any file operations by using relative file paths.
  3. Caching the compiled PHP opcode in shared memory to avoid the overhead of parsing and compiling the PHP source code for every request.
IMPORTANT: The Windows Cache Extension for PHP can only be used with the non-thread-safe builds of PHP.

 Top of page

System Requirements

  • Supported Operating Systems: Windows 7; Windows Server 2003; Windows Server 2008; Windows Server 2008 R2; Windows Vista; Windows XP
  • Internet Information Services 5.1, 6.0 or 7 configured to run PHP via FastCGI
  • PHP 5.3 non-thread-safe x86 VC9 build

 Top of page

Instructions

To install and enable the extension, use the following steps:
  1. Unpack the package that is appropriate for the PHP version you are using. Note that if you run the installation package as non-administrator and try to un-package it into the directory where you do not have write access, then you may see the error "Extracting file failed. It is most likely caused by low memory (low disk space for swapping file) or corrupted Cabinet file". If you see this error, then make sure to run the installation package as an administrator.
  2. Copy the php_wincache.dll file into the PHP extensions folder. Typically this folder is called "ext" and it is located in the same folder with all PHP binary files. For example:
    "C:\Program Files\PHP\ext".
  3. Using a text editor, open the php.ini file, which is usually located in the same folder where all PHP binary files are. For example:
    "C:\Program Files\PHP\php.ini".
  4. Add the following line at the end of the php.ini file:
    "extension = php_wincache.dll"
  5. Save and close the php.ini file.
  6. Recycle your IIS Application Pools for PHP to pick up the configuration changes.
To check that Windows Cache Extension for PHP has been enabled, create a file called phpinfo.php with the following PHP code that calls phpinfo() function:

"<?php phpinfo(); ?>"

Save the phpinfo.php file in the root folder of a IIS web site that uses PHP, then open a browser and make a request to http://yoursitename/phpinfo.php. Search within the returned web page for a section called "wincache". If the extension is enabled, then you should see the configuration settings provided by the extension.

 Top of page

 Top of page

What Others Are Downloading

Others who downloaded Windows Cache Extension 1.0 for PHP 5.3 - RC also downloaded:
  1. Windows Cache Extension 1.0 for PHP 5.2 - RC
  2. FastCGI Extension 1.5 for Internet Information Services 6.0 and 5.1 - RC (x86)

 Top of page

 Top of page


© 2009 Microsoft Corporation. All rights reserved. Contact Us |Terms of Use |Trademarks |Privacy Statement