Your SlideShare is downloading. ×
Dive into php on Windows Azure
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×

Saving this for later?

Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime - even offline.

Text the download link to your phone

Standard text messaging rates apply

Dive into php on Windows Azure

2,245
views

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 …

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,245
On Slideshare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
7
Comments
0
Likes
1
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
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="c:\\temp\\WordPressAzure" --DB_NAME="wordpress" --DB_USER=sqladm@uiebrrjttc --DB_PASSWORD=php@php1 --DB_HOST="uiebrrjttc.database.windows.net" --sync_account=phptestsdk --sync_key="DTWRLbFbO8SctIbTiXkQgDFMTikwify2liThoq1WPfHMxedbg8HwoktXR0WJfZeno9740TzLk0OsO5pUUKFL+Q=="Package Create -in="c:\\temp\\WordPressAzure" -dev=false
  • Transcript

    • 1.
    • 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
    • 5. A brief history...
    • 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
    • 10. Until... March 14, 2009
    • 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
    • 13. Hello,PHP on Windows Azure
    • 14. Most basic usage
      Get http://phpazure.codeplex.com or PEAR it
      Get your commands ready
      Scaffolder Run –out=“c:temphelloworld”
      Package Create –in=“c:temphelloworld”
    • 15. demo
      Hello, Windows Azure
    • 16. Popular apps on Windows Azure
    • 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
    • 18. demo
      WordPress on Windows Azure
    • 19. What about my apps?
    • 20. Windows Azure
      != all-or-nothing
    • 21. How do you develop your apps today?
      Typically on a local development machine
      Remember this one?
    • 22. Meet shortenr...
      URL shortening service
      3 use cases
      Shorten URL
      Navigate to URL
      Track # clicks
    • 23. demo
      Building shortenr
    • 24. demo
      Deploying shortenr
    • 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
    • 27. PHP-as-a-Service?
      PHP
      Windows Azure SDK for PHP
      Windows Azure Management API
      SQL Azure Management API
    • 28. demo
      Deploying shortenr using WebSpecies Azure+
    • 29. Conclusion
    • 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
    • 31. Resources
      Starting pointhttp://azurephp.interoperabilitybridges.com
      Windows Azure SDK for PHPhttp://phpazure.codeplex.com
      Windows Azure Learning Planhttp://blogs.msdn.com/b/silverlining/archive/2011/09/29/a-php-on-windows-azure-learning-plan.aspx
    • 32. Q&A
      Maarten Balliauwhttp://about.me/maartenballiauwhttp://blog.maartenballiauw.be@maartenballiauw
      Thank you!
      Or scan this QR code with your Smartphone to immediately go to the website