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.

Dive into php on Windows Azure


Published on

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

Published in: Technology
  • Be the first to comment

Dive into php on Windows Azure

  1. 1.
  2. 2. Dive into PHP on Windows Azure<br />Maarten Balliauw<br />
  3. 3. Who am I?<br />Maarten Balliauw<br />Antwerp, Belgium<br /><br />Focus on web<br />ASP.NET, ASP.NET MVC, PHP, Azure, …<br />MVP Windows Azure (formerly ASP.NET)<br />Fun: interop!<br />PHPExcel, PHPLinq, PHPMEF,Windows Azure SDK for PHP, ...<br /><br />@maartenballiauw<br />
  4. 4. Agenda<br />A brief history...<br />PHP on Windows<br />PHP on Windows Azure<br />Hello, PHP on Windows Azure<br />Popular apps on Windows Azure<br />Wordpress<br />Drupal<br />What about my apps?<br />Conclusion<br />Q&A<br />
  5. 5. A brief history...<br />
  6. 6. PHP on Windows<br />Has always been a great joke!<br />Until Microsoft saw this*:<br />*pure speculation that this is the actual reason for jumping on PHP on Windows<br />
  7. 7. So they started working on a stack<br />Linux PHP stack<br />Linux<br />Apache<br />MySQL<br />PHP<br />(Memcached / APC)<br />Windows PHP stack<br />Windows<br />IIS 7+<br />SQL Server<br />PHP<br />(Memcached / WinCache)<br />
  8. 8. The past 2-3 years...<br />IIS added FastCGI support (& URL rewriting)<br />Creation of SQL Server DB extension (PDO!)<br />PHP core optimizations<br />WinCache extension for PHP<br />Web Platform Installer<br />A lot more...<br />No longer a joke!<br />Pretty easy to use once you know the stack<br />
  9. 9. PHP on Windows Azure<br />Windows Azure has always advertised it’s open to any language<br />True: it’s just Windows, SQL & REST<br />But no real “PHP-ish” support for Windows Azure specifics<br />
  10. 10. Until... March 14, 2009<br />
  11. 11. The result?<br />Windows Azure SDK for PHP<br />Support for:<br />Working with all types of storage (blobs, tables, queues)<br />PHP specifics such as session handling<br />Support for the management API<br />Create a new host from PHP code<br />Manage storage accounts from PHP<br />Create a SQL Azure DB server<br />...<br />Command-line tooling<br />To use the mgmt capabilities<br />To package and deploy<br />
  12. 12. So here’s your next stack<br />Windows PHP stack<br />Windows<br />IIS 7+<br />SQL Server<br />PHP<br />(Memcached / WinCache)<br />Windows Azure PHP stack<br />Windows (Azure)<br />IIS 7+<br />SQL Azure<br />PHP<br />(Memcached / WinCache)<br />Plus easy access to all Windows Azure related options<br />
  13. 13. Hello,PHP on Windows Azure<br />
  14. 14. Most basic usage<br />Get or PEAR it<br />Get your commands ready<br />Scaffolder Run –out=“c:temphelloworld”<br />Package Create –in=“c:temphelloworld”<br />
  15. 15. demo<br />Hello, Windows Azure<br />
  16. 16. Popular apps on Windows Azure<br />
  17. 17. Scaffolding<br />Generate a baseline PHP on Windows Azure structure<br />Can be extended and plugged<br />Wordpress<br />Drupal<br />
  18. 18. demo<br />WordPress on Windows Azure<br />
  19. 19. What about my apps?<br />
  20. 20. Windows Azure<br />!= all-or-nothing<br />
  21. 21. How do you develop your apps today?<br />Typically on a local development machine<br />Remember this one?<br />
  22. 22. Meet shortenr...<br />URL shortening service<br />3 use cases<br />Shorten URL<br />Navigate to URL<br />Track # clicks<br />
  23. 23. demo<br />Building shortenr<br />
  24. 24. demo<br />Deploying shortenr<br />
  25. 25. Was that a nice experience?<br />15min+ to deploy<br />Creates a fresh VM<br />Installs fresh components on it<br />Deploys your app on it<br />Guarantees a clean state & easy recovery<br />Does not really feel like what I’m used to...*<br /><br /><br />* I prefer short deploys whilst devving, 15min for prod isn’t that bad<br />
  26. 26. Any alternatives?<br />Sure!<br /><br /><br />Or a real PaaS solution for PHP built on Windows Azure<br />by<br />
  27. 27. PHP-as-a-Service?<br />PHP<br />Windows Azure SDK for PHP<br />Windows Azure Management API<br />SQL Azure Management API<br />
  28. 28. demo<br />Deploying shortenr using WebSpecies Azure+<br />
  29. 29. Conclusion<br />
  30. 30. Conclusion<br />Windows Azure = rich set of platform components<br />Use at will! It’s an extra option<br />A lot of tools are out there<br />...but a lot is also to be done<br />
  31. 31. Resources<br />Starting point<br />Windows Azure SDK for PHP<br />Windows Azure Learning Plan<br />
  32. 32. Q&A<br />Maarten Balliauw<br />Thank you!<br />Or scan this QR code with your Smartphone to immediately go to the website<br />