Technical dive into how one can develop PHP applications and run them on Windows Azure. Learn how to use scaffolders, the Windows Azure SDK for PHP and how to use the different storage options offered by Microsoft's cloud platform.Dive into php on Windows Azure
2. Dive into PHP on Windows Azure Maarten Balliauwhttp://about.me/maartenballiauwhttp://blog.maartenballiauw.be@maartenballiauw
3. Who am I? Maarten Balliauw Antwerp, Belgium www.realdolmen.com Focus on web ASP.NET, ASP.NET MVC, PHP, Azure, … MVP Windows Azure (formerly ASP.NET) Fun: interop! PHPExcel, PHPLinq, PHPMEF,Windows Azure SDK for PHP, ... http://blog.maartenballiauw.be @maartenballiauw
4. Agenda A brief history... PHP on Windows PHP on Windows Azure Hello, PHP on Windows Azure Popular apps on Windows Azure Wordpress Drupal What about my apps? Conclusion Q&A
6. PHP on Windows Has always been a great joke! Until Microsoft saw this*: *pure speculation that this is the actual reason for jumping on PHP on Windows
7. So they started working on a stack Linux PHP stack Linux Apache MySQL PHP (Memcached / APC) Windows PHP stack Windows IIS 7+ SQL Server PHP (Memcached / WinCache)
8. The past 2-3 years... IIS added FastCGI support (& URL rewriting) Creation of SQL Server DB extension (PDO!) PHP core optimizations WinCache extension for PHP Web Platform Installer A lot more... No longer a joke! Pretty easy to use once you know the stack
9. PHP on Windows Azure Windows Azure has always advertised it’s open to any language True: it’s just Windows, SQL & REST But no real “PHP-ish” support for Windows Azure specifics
11. The result? Windows Azure SDK for PHPhttp://phpazure.codeplex.com Support for: Working with all types of storage (blobs, tables, queues) PHP specifics such as session handling Support for the management API Create a new host from PHP code Manage storage accounts from PHP Create a SQL Azure DB server ... Command-line tooling To use the mgmt capabilities To package and deploy
12. So here’s your next stack Windows PHP stack Windows IIS 7+ SQL Server PHP (Memcached / WinCache) Windows Azure PHP stack Windows (Azure) IIS 7+ SQL Azure PHP (Memcached / WinCache) Plus easy access to all Windows Azure related options
14. Most basic usage Get http://phpazure.codeplex.com or PEAR it Get your commands ready Scaffolder Run –out=“c:empelloworld” Package Create –in=“c:empelloworld”
17. Scaffolding Generate a baseline PHP on Windows Azure structure Can be extended and plugged Wordpresshttp://azurephp.interoperabilitybridges.com/articles/how-to-deploy-wordpress-using-the-windows-azure-sdk-for-php-wordpress-scaffold Drupalhttp://azurephp.interoperabilitybridges.com/articles/how-to-deploy-drupal-to-windows-azure-using-the-drupal-scaffold
25. Was that a nice experience? 15min+ to deploy Creates a fresh VM Installs fresh components on it Deploys your app on it Guarantees a clean state & easy recovery Does not really feel like what I’m used to...* Phpstorm.com Orchestra.io * I prefer short deploys whilst devving, 15min for prod isn’t that bad
26. Any alternatives? Sure! http://waawebroles.codeplex.com/ http://smarxrole.codeplex.com Or a real PaaS solution for PHP built on Windows Azure by http://webspecies.co.uk
30. Conclusion Windows Azure = rich set of platform components Use at will! It’s an extra option A lot of tools are out there ...but a lot is also to be done