PHP on Windows - What's New

Uploaded on

Talk by Josh Holmes of Microsoft at ZendCon 2009

Talk by Josh Holmes of Microsoft at ZendCon 2009

More in: Technology
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
No Downloads


Total Views
On Slideshare
From Embeds
Number of Embeds



Embeds 0

No embeds

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

    No notes for slide


  • 1. PHP on Windows What’s New
    • By Josh Holmes
  • 2. Agenda
      • Background
      • What’s New
      • Microsoft and Open Source Technologies
  • 3. History - (prior to 2006)
    • PHP on Windows was:
      • Slow
      • Unreliable
      • Not Compatible
    • IIS support for PHP was a joke:
      • CGI implementation was SLOW
      • ISAPI implementation was unreliable
        • Thread-safe dependency never would have worked anyway
      • No URL rewriting support
  • 4. History - (2006-2008)
    • FastCGI support for IIS 7.0, 6.0, 5.11:
      • Finally a fast and reliable way to run PHP on Windows
    • SQL Driver for PHP
      • Reliable, scalable integration with Microsoft SQL Server
      • Development continues
    • URL Rewrite in IIS 7.0
    • Fully features and performant URL rewriting engine
    Pigs fly !
  • 5. Present (2009 --> )
      • Microsoft Employees Submit to PHP Core
      • Microsoft Employees Submit to Open Source PHP Application
        • Wordpress
      • PHP included in the “Microsoft Web Platform”
      • PHP applications included in the Windows Web Application Gallery
      • WinCache extension for PHP ships
    More Pigs Fly
  • 6. PHP Installer
      • Configures IIS FastCGI on all Windows Versions
      • Sets the recommended PP configuration directives
      • Adds index.php as a default document in IIS configuration
    On Windows - IIS FastCGI becomes the default
  • 7. PHP is part of the Microsoft Web Platform
  • 8. Installing PHP with the Microsoft Web PI DEMO
  • 9. PHP in the Microsoft Web Platform Installer
      • Drives the standard PHP Installer
      • Downloads the installer from
      • Always the latest 5.2.x release
      • PHP 5.3 will be offered soon
        • But not yet ?
    Technical Details
  • 10. PHP Applications in the Web PI
  • 11. Installing PHP Apps with the Web PI DEMO
  • 12. PHP Apps in the Microsoft Web PI
      • Applications are hosted on their own web sites.
      • The package includes a manifest file that tells the Web PI what to do:
        • Copy Files
        • Set file access permissions
        • Create a database user
        • Create a database schema
        • Launch the application’s install page.
    Technical Details
  • 13. WinCache Extension for PHP
  • 14. WinCache for PHP DEMO
  • 15. WinCache for PHP
      • Caches PHP opcode and file content in shared memory
      • API’s for refreshing the cache and for cache stats
      • Supports PHP 5.2.X and PHP 5.3.
    Technical Details
  • 16. Microsoft and Open Source Community
      • Legal barrios being removed.
      • Working with the PHP Community
        • Windows Specific Testing and Bug Fixes
        • PHP Installer Fixes
        • Testing PHP Release Packages
      • Working with PHP App Communities
        • PHP Apps in the Microsoft Web App Gallery (Add Yours !)
        • IIS Specific Fixes Submitted to WordPress
        • IIS Specific fixes submitted to SilverStripe
      • New Open Source Foundation
    Hell Freezing Over ? 
  • 17. PHP on Windows Progress
    • The Windows version of PHP now exposes a set of constants prefixed PHP_WINDOWS_* . A list of these constants and their usage can be found at
    • Warning Support for the ISAPI module has been dropped. Use the improved FastCGI SAPI module instead.
    • Note: A new dedicated site for PHP on Windows is now available, including downloads, release candidates, and snapshots in various flavors (thread-safe/not-thread-safe, VC6/VC9, x86/x64). .
    • User Contributed Notes
      • “ Well worth the effort to set up fast cgi on windows. No more lockups with php or 40 procs running...and 1 killing IIS. Some PHP INI vars can't be overriden in your php files, so read up (like timeout). 8 months and no more locked up iis.“
      • “ Fast CGI is available for IIS6. Reading the IIS website (which is more appropriate since it is server specific) yields plenty of results regarding PHP setup under the fastCGI module. They even have an entire domain associated with PHP.”
  • 18. Resources
    • How WinCache makes PHP run faster
    • Using WinCache Extensions for PHP
    • Changes Made to PHP 5.3 to Support Windows
    • Migrating from PHP 5.2.x to PHP 5.3.x
  • 19. Summary
      • Getting up and running with PHP and PHP Applications on Windows is easy.
      • PHP Apps on Windows are fully functional and are easy to install
      • WinCache offers a significant performance gain:
      • Customers report up to 3X throughput improvement
    Info at : and
  • 20. Thanks [email_address] @joshholmes [email_address]