Dive into PHP on Windows Azure<br />Maarten Balliauwhttp://about.me/maartenballiauwhttp://blog.maartenballiauw.be@maartenb...
Who am I?<br />Maarten Balliauw<br />Antwerp, Belgium<br />www.realdolmen.com<br />Focus on web<br />ASP.NET, ASP.NET MVC,...
Agenda<br />A brief history...<br />PHP on Windows<br />PHP on Windows Azure<br />Hello, PHP on Windows Azure<br />Popular...
A brief history...<br />
PHP on Windows<br />Has always been a great joke!<br />Until Microsoft saw this*:<br />*pure speculation that this is the ...
So they started working on a stack<br />Linux PHP stack<br />Linux<br />Apache<br />MySQL<br />PHP<br />(Memcached / APC)<...
The past 2-3 years...<br />IIS added FastCGI support (& URL rewriting)<br />Creation of SQL Server DB extension (PDO!)<br ...
PHP on Windows Azure<br />Windows Azure has always advertised it’s open to any language<br />True: it’s just Windows, SQL ...
Until... March 14, 2009<br />
The result?<br />Windows Azure SDK for PHPhttp://phpazure.codeplex.com<br />Support for:<br />Working with all types of st...
So here’s your next stack<br />Windows PHP stack<br />Windows<br />IIS 7+<br />SQL Server<br />PHP<br />(Memcached / WinCa...
Hello,PHP on Windows Azure<br />
Most basic usage<br />Get http://phpazure.codeplex.com or PEAR it<br />Get your commands ready<br />Scaffolder Run –out=“c...
demo<br />Hello, Windows Azure<br />
Popular apps on Windows Azure<br />
Scaffolding<br />Generate a baseline PHP on Windows Azure structure<br />Can be extended and plugged<br />Wordpresshttp://...
demo<br />WordPress on Windows Azure<br />
What about my apps?<br />
Windows Azure<br />!= all-or-nothing<br />
How do you develop your apps today?<br />Typically on a local development machine<br />Remember this one?<br />
Meet shortenr...<br />URL shortening service<br />3 use cases<br />Shorten URL<br />Navigate to URL<br />Track # clicks<br />
demo<br />Building shortenr<br />
demo<br />Deploying shortenr<br />
Was that a nice experience?<br />15min+ to deploy<br />Creates a fresh VM<br />Installs fresh components on it<br />Deploy...
Any alternatives?<br />Sure!<br />http://waawebroles.codeplex.com/<br />http://smarxrole.codeplex.com<br />Or a real PaaS ...
PHP-as-a-Service?<br />PHP<br />Windows Azure SDK for PHP<br />Windows Azure Management API<br />SQL Azure Management API<...
demo<br />Deploying shortenr using WebSpecies Azure+<br />
Conclusion<br />
Conclusion<br />Windows Azure = rich set of platform components<br />Use at will! It’s an extra option<br />A lot of tools...
Resources<br />Starting pointhttp://azurephp.interoperabilitybridges.com<br />Windows Azure SDK for PHPhttp://phpazure.cod...
Q&A<br />Maarten Balliauwhttp://about.me/maartenballiauwhttp://blog.maartenballiauw.be@maartenballiauw<br />Thank you!<br ...
Upcoming SlideShare
Loading in...5
×

Dive into php on Windows Azure

2,357

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
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
2,357
On Slideshare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
8
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide
  • Scaffolder Run –out=“c:\\temp\\helloworld”Package Create –in=“c:\\temp\\helloworld”
  • http://azurephp.interoperabilitybridges.com/articles/how-to-deploy-wordpress-using-the-windows-azure-sdk-for-php-wordpress-scaffoldScaffolder Run -s=WordPress -out=&quot;c:\\temp\\WordPressAzure&quot; --DB_NAME=&quot;wordpress&quot; --DB_USER=sqladm@uiebrrjttc --DB_PASSWORD=php@php1 --DB_HOST=&quot;uiebrrjttc.database.windows.net&quot; --sync_account=phptestsdk --sync_key=&quot;DTWRLbFbO8SctIbTiXkQgDFMTikwify2liThoq1WPfHMxedbg8HwoktXR0WJfZeno9740TzLk0OsO5pUUKFL+Q==&quot;Package Create -in=&quot;c:\\temp\\WordPressAzure&quot; -dev=false
  • Dive into php on Windows Azure

    1. 1.
    2. 2. Dive into PHP on Windows Azure<br />Maarten Balliauwhttp://about.me/maartenballiauwhttp://blog.maartenballiauw.be@maartenballiauw<br />
    3. 3. Who am I?<br />Maarten Balliauw<br />Antwerp, Belgium<br />www.realdolmen.com<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 />http://blog.maartenballiauw.be<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 PHPhttp://phpazure.codeplex.com<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 http://phpazure.codeplex.com 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 />Wordpresshttp://azurephp.interoperabilitybridges.com/articles/how-to-deploy-wordpress-using-the-windows-azure-sdk-for-php-wordpress-scaffold<br />Drupalhttp://azurephp.interoperabilitybridges.com/articles/how-to-deploy-drupal-to-windows-azure-using-the-drupal-scaffold<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 />Phpstorm.com<br />Orchestra.io<br />* I prefer short deploys whilst devving, 15min for prod isn’t that bad<br />
    26. 26. Any alternatives?<br />Sure!<br />http://waawebroles.codeplex.com/<br />http://smarxrole.codeplex.com<br />Or a real PaaS solution for PHP built on Windows Azure<br />by http://webspecies.co.uk<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 pointhttp://azurephp.interoperabilitybridges.com<br />Windows Azure SDK for PHPhttp://phpazure.codeplex.com<br />Windows Azure Learning Planhttp://blogs.msdn.com/b/silverlining/archive/2011/09/29/a-php-on-windows-azure-learning-plan.aspx<br />
    32. 32. Q&A<br />Maarten Balliauwhttp://about.me/maartenballiauwhttp://blog.maartenballiauw.be@maartenballiauw<br />Thank you!<br />Or scan this QR code with your Smartphone to immediately go to the website<br />
    1. A particular slide catching your eye?

      Clipping is a handy way to collect important slides you want to go back to later.

    ×