PHP on Windows

PHP now runs better than ever on Windows. Utilize the power of IIS 7.0 and the Windows Web App Gallery. Improve speed and efficiency with Fast CGI and WinCache.

Install PHP for Windows Here!

Install PHP for Windows using the Microsoft Web Platform Installer. It’s fast, easy and takes the guess work out of getting PHP up and running on Windows and IIS.

Install PHP 5.2.17 Install PHP 5.3.5
 

PHP Features

Over the years PHP has gotten better and better running on Windows and IIS. The latest version of PHP for Windows includes dramatic improvements that come from a deep collaboration between the PHP Core Maintainers and Microsoft. Improvements to this latest version of PHP for Windows include:

  • Compiled using our latest VC9 compiler (PHP 5.2 used VC6)
  • Optimized API calls (using Win32 instead of POSIX)
  • All PHP libraries built from the source code
  • Loads of compatibility fixes to improve speed and stability

To learn more about PHP on Windows or access to PHP on Windows source visit: http://windows.php.net/

PHP Articles

If you are experienced with PHP but new but new to the Windows and IIS environment the best place to start is the Running PHP Applications on IIS article which lists the best articles and is the definitive guide for installing, configuring, running and optimizing PHP for the Windows and IIS environment. Check out these other great articles too for more advanced concepts:

Fast. FastCGI

FastCGIThe FastCGI module enables popular application frameworks like PHP be hosted on the IIS web server. FastCGI provides high performance, rock solid stability for production environments and simplified tuning and management for PHP applications on Windows.

Features:

  • PHP process pool maximizes per process utilization
  • Auto-tuning for PHP processes for optimal performance
  • No more restarts for changes to php.ini
  • Automatic recycling of PHP processes when php.ini changes
  • Consistent features across IIS versions, write on XP and deploy to Windows Server 2008
  • Single-threaded execution environment
  • Use Non-Thread Safe PHP with IIS FastCGI

Install

Learn More

Accelerate with WinCache

Win Cache Windows Cache Extension for PHP is a PHP accelerator that increases the speed of PHP applications running on Windows and Windows Server. Add the Windows Cache Extension for PHP into your php.ini and get immediate performance benefits with zero code modifications. New features in WinCache 1.1 include Session Cache and User Cache with an APC compatible API providing advanced performance benefits for your PHP applications.

WinCache 1.1 Features:

  • Support for PHP 5.2 and PHP 5.3
  • Configurable PHP opcode cache
  • Configurable file cache to reduce file system I/O overhead
  • Relative file path cache to avoid redundant mapping for absolute paths
  • Session cache with file system persistence in web farm environments
  • User cache for variables and application data with an APC API
  • PHP file notification support to flush and rehydrate opcode cache
  • PHP functions to obtain information about the cache status

WinCache for PHP 5.2 (Web PI)

Install

 

WinCache for PHP 5.3 (Web PI)

Install

Easily Manage PHP on IIS 7

PHP Manager PHP Manager for IIS 7 is a open source extension for IIS Management Console, that greatly simplifies the tasks of setting up, configuring and managing one or more PHP versions on IIS server. Use it to register PHP with IIS, run multiple PHP versions, get the information about PHP runtime settings, add and modify php.ini directives and enable or disable PHP extensions.

Features:

  • Simple registration of many PHP versions with IIS
  • An easy way of checking if PHP works correctly by geting the output of phpinfo() function
  • Configuring the PHP error reproting settings for production or development environment
  • Managing all php.ini directives and PHP extensions from within IIS manager
  • Remote PHP administration via IIS Remote Administration Tool
  • Works well with PHP installed via Web Platform Installer or PHP Windows Installer

Install

Learn More

PHP and Windows Azure

PHP on Windows AzureYes, PHP also runs on Windows Azure, and Microsoft partnered with the community to build tools and SDKs to make the life of PHP developers easier.

Windows Azure Storage for WordPress

Windows Azure Storage for WordPress: This WordPress plugin allows you to use Windows Azure Storage Service to host your media for your WordPress powered blog. Windows Azure Storage is an effective way to scale storage of your site without having to go through the expense of setting up the infrastructure for content delivery.

Get it
Windows Azure SDK for PHP

Windows Azure SDK for PHP: This SDK provides access to Windows Azure Storage and Diagnostics from PHP

Get it
Windows Azure AppFabric SDK for PHP

Windows Azure AppFabric SDK for PHP: This SDK provides access to Windows Azure AppFabric Service Bus and Access Control Service functionality from PHP.

Get it
Windows Azure Command-line Tools for PHP

Windows Azure Command-line Tools for PHP: This is a command-line PHP app that creates a deployable package for Windows Azure Platform.

Get it
Windows Azure PHP Samples

Windows Azure PHP Samples: Samples for using Windows Azure services from PHP.

Get it

Discover. Install. Enjoy.Web Application Gallery

The Windows Web App Gallery provides simple streamline ways for users to explore, discover, install and deploy PHP web applications, tested to run seamlessly on the Microsoft Web Platform.

Popular Applications

Check out a few of the more popular PHP web applications that have some great modules, plug-ins and themes that the community has developed to take advantage of the Microsoft Web Platform

WordPress

WordPress: WordPress runs great on the Microsoft Web Platform. Come get the one-click install and see some of the great WordPress Plug-ins being developed by the community and by Microsoft too.

Get it
Drupal

Acquia Drupal: Acquia Drupal runs great on the Microsoft Web Platform. Come get the one-click install and see the preview of Drupal 7 with SQL Server, modules being developed by the community and Microsoft and register for the WebsiteSpark program to get access to no-cost software and support.

Get it
Joomla!

Joomla!: Joomla! is an award-winning content management system (CMS) that enables you to build websites and powerful online applications. Many aspects, including its ease-of-use and extensibility, have made Joomla! the most popular website software available.

Get it

Everything you need to get started, FREE with a single streamlined installer.