Dive into php on Windows Azure
-
Upload
maarten-balliauw -
Category
Technology
-
view
2.280 -
download
5
description
Transcript of Dive into php on Windows Azure
APRIL 12, 2023 | SLIDE 1
APRIL 12, 2023 | SLIDE 2
www.realdolmen.com
DIVE INTO PHP ON WINDOWS AZURE
Maarten Balliauw
http://about.me/maartenballiauw
http://blog.maartenballiauw.be
@maartenballiauw
APRIL 12, 2023 | SLIDE 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
APRIL 12, 2023 | SLIDE 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
APRIL 12, 2023 | SLIDE 5
A BRIEF HISTORY...
APRIL 12, 2023 | SLIDE 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
APRIL 12, 2023 | SLIDE 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)
APRIL 12, 2023 | SLIDE 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
APRIL 12, 2023 | SLIDE 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
APRIL 12, 2023 | SLIDE 10
UNTIL... MARCH 14, 2009
APRIL 12, 2023 | SLIDE 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
APRIL 12, 2023 | SLIDE 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
APRIL 12, 2023 | SLIDE 13
HELLO,PHP ON WINDOWS AZURE
APRIL 12, 2023 | SLIDE 14
MOST BASIC USAGE
Get http://phpazure.codeplex.com or PEAR it Get your commands ready
Scaffolder Run –out=“c:\temp\helloworld” Package Create –in=“c:\temp\helloworld”
APRIL 12, 2023 | SLIDE 15
demoHello, Windows Azure
APRIL 12, 2023 | SLIDE 16
POPULAR APPS ON WINDOWS AZURE
APRIL 12, 2023 | SLIDE 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
APRIL 12, 2023 | SLIDE 18
demoWordPress on Windows Azure
APRIL 12, 2023 | SLIDE 19
WHAT ABOUT MY APPS?
APRIL 12, 2023 | SLIDE 20
Windows Azure!= all-or-nothing
APRIL 12, 2023 | SLIDE 21
HOW DO YOU DEVELOP YOUR APPS TODAY?
Typically on a local development machine Remember this one?
APRIL 12, 2023 | SLIDE 22
MEET SHORTENR...
URL shortening service 3 use cases
Shorten URL Navigate to URL Track # clicks
APRIL 12, 2023 | SLIDE 23
demoBuilding shortenr
APRIL 12, 2023 | SLIDE 24
demoDeploying shortenr
APRIL 12, 2023 | SLIDE 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
APRIL 12, 2023 | SLIDE 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
APRIL 12, 2023 | SLIDE 27
PHP-AS-A-SERVICE?
PHP Windows Azure SDK for
PHP
Windows Azure Management API
SQL Azure Management API
APRIL 12, 2023 | SLIDE 28
demoDeploying shortenr using WebSpecies Azure+
APRIL 12, 2023 | SLIDE 29
CONCLUSION
APRIL 12, 2023 | SLIDE 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
APRIL 12, 2023 | SLIDE 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
APRIL 12, 2023 | SLIDE 32
Q&A
Or scan this QR code with your Smartphone to immediately go to the website
Maarten Balliauw
http://about.me/maartenballiauw
http://blog.maartenballiauw.be
@maartenballiauwThank you!