Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Wordpress On Windows


Published on

This is the presenation that I did at WordCamp Ireland talking about running PHP on Windows with a focus on Wordpress.

Published in: Technology
  • Be the first to comment

Wordpress On Windows

  1. 1. <ul><li>By Josh Holmes </li></ul>WORDPRESS ON WINDOWS…
  2. 2. <ul><ul><li>Background </li></ul></ul><ul><ul><li>What’s New </li></ul></ul><ul><ul><li>Microsoft and Open Source Technologies </li></ul></ul>AGENDA
  3. 3. <ul><li>PHP on Windows was: </li></ul><ul><ul><li>Slow </li></ul></ul><ul><ul><li>Unreliable </li></ul></ul><ul><ul><li>Not Compatible </li></ul></ul><ul><li>IIS support for PHP was a joke: </li></ul><ul><ul><li>CGI implementation was SLOW </li></ul></ul><ul><ul><li>ISAPI implementation was unreliable </li></ul></ul><ul><ul><ul><li>Thread-safe dependency never would have worked anyway </li></ul></ul></ul><ul><ul><li>No URL rewriting support </li></ul></ul>HISTORY - (PRIOR TO 2006)
  4. 4. <ul><li>FastCGI support for IIS 7.0, 6.0, 5.11: </li></ul><ul><ul><li>Finally a fast and reliable way to run PHP on Windows </li></ul></ul><ul><li>SQL Driver for PHP </li></ul><ul><ul><li>Reliable, scalable integration with Microsoft SQL Server </li></ul></ul><ul><ul><li>Development continues </li></ul></ul><ul><li>URL Rewrite in IIS 7.0 </li></ul><ul><li>Fully features and performant URL rewriting engine </li></ul>HISTORY - (2006-2008) Pigs fly !
  5. 5. <ul><ul><li>Microsoft Employees Submit to PHP Core </li></ul></ul><ul><ul><li>Microsoft Employees Submit to Open Source PHP Application </li></ul></ul><ul><ul><ul><li>Wordpress </li></ul></ul></ul><ul><ul><li>PHP included in the “Microsoft Web Platform” </li></ul></ul><ul><ul><li>PHP applications included in the Windows Web Application Gallery </li></ul></ul><ul><ul><li>WinCache extension for PHP ships </li></ul></ul>PRESENT (2009 --> ) More Pigs Fly
  6. 6. <ul><ul><li>Configures IIS FastCGI on all Windows Versions </li></ul></ul><ul><ul><li>Sets the recommended PP configuration directives </li></ul></ul><ul><ul><li>Adds index.php as a default document in IIS configuration </li></ul></ul>PHP INSTALLER On Windows - IIS FastCGI becomes the default
  8. 8. <ul><ul><li>Drives the standard PHP Installer </li></ul></ul><ul><ul><li>Downloads the installer from </li></ul></ul><ul><ul><li>Always the latest 5.2.x release </li></ul></ul><ul><ul><li>PHP 5.3 will be offered soon </li></ul></ul><ul><ul><ul><li>But not yet ? </li></ul></ul></ul>PHP IN THE MICROSOFT WEB PLATFORM INSTALLER Technical Details
  10. 10. <ul><ul><li>Applications are hosted on their own web sites. </li></ul></ul><ul><ul><li>The package includes a manifest file that tells the Web PI what to do: </li></ul></ul><ul><ul><ul><li>Copy Files </li></ul></ul></ul><ul><ul><ul><li>Set file access permissions </li></ul></ul></ul><ul><ul><ul><li>Create a database user </li></ul></ul></ul><ul><ul><ul><li>Create a database schema </li></ul></ul></ul><ul><ul><ul><li>Launch the application’s install page. </li></ul></ul></ul>PHP APPS IN THE MICROSOFT WEB PI Technical Details
  12. 12. <ul><ul><li>Caches PHP opcode and file content in shared memory </li></ul></ul><ul><ul><li>API’s for refreshing the cache and for cache stats </li></ul></ul><ul><ul><li>Supports PHP 5.2.X and PHP 5.3. </li></ul></ul>WINCACHE FOR PHP Technical Details
  13. 13. <ul><ul><li>Legal barrios being removed. </li></ul></ul><ul><ul><li>Working with the PHP Community </li></ul></ul><ul><ul><ul><li>Windows Specific Testing and Bug Fixes </li></ul></ul></ul><ul><ul><ul><li>PHP Installer Fixes </li></ul></ul></ul><ul><ul><ul><li>Testing PHP Release Packages </li></ul></ul></ul><ul><ul><li>Working with PHP App Communities </li></ul></ul><ul><ul><ul><li>PHP Apps in the Microsoft Web App Gallery (Add Yours !) </li></ul></ul></ul><ul><ul><ul><li>IIS Specific Fixes Submitted to WordPress </li></ul></ul></ul><ul><ul><ul><li>IIS Specific fixes submitted to SilverStripe </li></ul></ul></ul><ul><ul><li>New Open Source Foundation </li></ul></ul>MICROSOFT AND OSS COMMUNITY Hell Freezing Over ? 
  14. 14. <ul><li>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 </li></ul><ul><li>Warning Support for the ISAPI module has been dropped. Use the improved FastCGI SAPI module instead. </li></ul><ul><li>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). . </li></ul><ul><li>User Contributed Notes </li></ul><ul><ul><li>“ 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.“ </li></ul></ul><ul><ul><li>“ 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.” </li></ul></ul>PHP ON WINDOWS PROGRESS
  15. 15. <ul><li>How WinCache makes PHP run faster </li></ul><ul><ul><li> </li></ul></ul><ul><li>Using WinCache Extensions for PHP </li></ul><ul><ul><li> </li></ul></ul><ul><li>Changes Made to PHP 5.3 to Support Windows </li></ul><ul><ul><li> </li></ul></ul><ul><li>Migrating from PHP 5.2.x to PHP 5.3.x </li></ul><ul><ul><li> </li></ul></ul>RESOURCES
  16. 16. <ul><ul><li>Getting up and running with PHP and PHP Applications on Windows is easy. </li></ul></ul><ul><ul><li>PHP Apps on Windows are fully functional and are easy to install </li></ul></ul><ul><ul><li>WinCache offers a significant performance gain: </li></ul></ul><ul><ul><li>Customers report up to 3X throughput improvement </li></ul></ul>SUMMARY Info at : and
  17. 17. THANKS [email_address] @joshholmes