php on windows
TRANSCRIPT
![Page 1: PHP on Windows](https://reader038.vdocuments.net/reader038/viewer/2022103114/55526c6cb4c9052e1f8b5097/html5/thumbnails/1.jpg)
“PHP on Windows“ installation and management
Juozas Kaziukėnaswww.juokaz.com / [email protected] /
@juokaz
![Page 2: PHP on Windows](https://reader038.vdocuments.net/reader038/viewer/2022103114/55526c6cb4c9052e1f8b5097/html5/thumbnails/2.jpg)
MeJuozas KaziukėnasLive in Edinburgh, UKStudent in University of EdinburghSoftware developer, consultant and
evangelistSpeaker in PHP conferences all over the
worldOpen source developer (Zend Framework,
Doctrine etc.)Somewhat related to Microsoft...More info www.juokaz.com and @juokaz
![Page 3: PHP on Windows](https://reader038.vdocuments.net/reader038/viewer/2022103114/55526c6cb4c9052e1f8b5097/html5/thumbnails/3.jpg)
YouPHP developers?Using Linux for production servers?Using Windows for workstations?
![Page 4: PHP on Windows](https://reader038.vdocuments.net/reader038/viewer/2022103114/55526c6cb4c9052e1f8b5097/html5/thumbnails/4.jpg)
PHP on WindowsInstallation and management
![Page 5: PHP on Windows](https://reader038.vdocuments.net/reader038/viewer/2022103114/55526c6cb4c9052e1f8b5097/html5/thumbnails/5.jpg)
Why?
![Page 6: PHP on Windows](https://reader038.vdocuments.net/reader038/viewer/2022103114/55526c6cb4c9052e1f8b5097/html5/thumbnails/6.jpg)
Why?PHP is the most popular language , 75% of all
websiteshttp://bit.ly/bmCvms
Enterprise/business environments Windows are very popular there
Integration with Windows applications and toolsSQL Server etc.
Microsoft’s wish
![Page 7: PHP on Windows](https://reader038.vdocuments.net/reader038/viewer/2022103114/55526c6cb4c9052e1f8b5097/html5/thumbnails/7.jpg)
No-one wants to migrate to Windows
![Page 8: PHP on Windows](https://reader038.vdocuments.net/reader038/viewer/2022103114/55526c6cb4c9052e1f8b5097/html5/thumbnails/8.jpg)
No-one wants to migrate to WindowsAnd no-one asks for itChanging working systems is stupid and
prone to errors and downtimeImportant:
Using in existing Windows systemsMaybe for new projects
It’s good to know that “it works”
![Page 9: PHP on Windows](https://reader038.vdocuments.net/reader038/viewer/2022103114/55526c6cb4c9052e1f8b5097/html5/thumbnails/9.jpg)
History
![Page 10: PHP on Windows](https://reader038.vdocuments.net/reader038/viewer/2022103114/55526c6cb4c9052e1f8b5097/html5/thumbnails/10.jpg)
History2006
• PHP and Windows =
2007
• FastCGI
2008
• PHP 5.3 and windows.php.net
2009
• PHP 5.3 release• WinCache 1.0
2010
• FastCGI 1.5• WinCache 1.1
![Page 11: PHP on Windows](https://reader038.vdocuments.net/reader038/viewer/2022103114/55526c6cb4c9052e1f8b5097/html5/thumbnails/11.jpg)
PHP and Microsoft
![Page 12: PHP on Windows](https://reader038.vdocuments.net/reader038/viewer/2022103114/55526c6cb4c9052e1f8b5097/html5/thumbnails/12.jpg)
PHP and Microsoft
![Page 13: PHP on Windows](https://reader038.vdocuments.net/reader038/viewer/2022103114/55526c6cb4c9052e1f8b5097/html5/thumbnails/13.jpg)
TodayCommunity’s and Microsoft’s initiativesUsed in productionA lot of tools for developersWork on interoperability is done on daily
basis
![Page 14: PHP on Windows](https://reader038.vdocuments.net/reader038/viewer/2022103114/55526c6cb4c9052e1f8b5097/html5/thumbnails/14.jpg)
Installation
![Page 15: PHP on Windows](https://reader038.vdocuments.net/reader038/viewer/2022103114/55526c6cb4c9052e1f8b5097/html5/thumbnails/15.jpg)
WebDeployDeploy toolAllows migrating IIS 6 -> IIS 7Configuration, source code, DB’s, DLL’s etc.DependenciesServers synchronizationNo admin permissions are required
![Page 16: PHP on Windows](https://reader038.vdocuments.net/reader038/viewer/2022103114/55526c6cb4c9052e1f8b5097/html5/thumbnails/16.jpg)
Web Platform InstallerUsing WebDeployWeb server setup with one click
IIS, PHP, Microsoft SQL Server, .Net etc.Web App Gallery
Drupal, Wordpress etc.
![Page 17: PHP on Windows](https://reader038.vdocuments.net/reader038/viewer/2022103114/55526c6cb4c9052e1f8b5097/html5/thumbnails/17.jpg)
Web Platform Installer
![Page 18: PHP on Windows](https://reader038.vdocuments.net/reader038/viewer/2022103114/55526c6cb4c9052e1f8b5097/html5/thumbnails/18.jpg)
Web App Gallery
![Page 19: PHP on Windows](https://reader038.vdocuments.net/reader038/viewer/2022103114/55526c6cb4c9052e1f8b5097/html5/thumbnails/19.jpg)
IIS tools
![Page 20: PHP on Windows](https://reader038.vdocuments.net/reader038/viewer/2022103114/55526c6cb4c9052e1f8b5097/html5/thumbnails/20.jpg)
PHP Manager for IISStraightforward way to manage multiple PHP
versionsConfiguration editing in UI (no need to touch
php.ini)No restart of IIS is needed because of FastCGI
7.5Also managing extensions and errors’ level
Websites can have different PHP versions configured
![Page 21: PHP on Windows](https://reader038.vdocuments.net/reader038/viewer/2022103114/55526c6cb4c9052e1f8b5097/html5/thumbnails/21.jpg)
PHP Manager for IIS
![Page 22: PHP on Windows](https://reader038.vdocuments.net/reader038/viewer/2022103114/55526c6cb4c9052e1f8b5097/html5/thumbnails/22.jpg)
URL RewriteSimilar to Apache mod_rewrite
Probably has more featuresNot always easier to use
UI tool.htaccess import!
![Page 23: PHP on Windows](https://reader038.vdocuments.net/reader038/viewer/2022103114/55526c6cb4c9052e1f8b5097/html5/thumbnails/23.jpg)
URL Rewrite
![Page 24: PHP on Windows](https://reader038.vdocuments.net/reader038/viewer/2022103114/55526c6cb4c9052e1f8b5097/html5/thumbnails/24.jpg)
Much moreWinCacheLoggingWarm upDatabase managerSEO toolkitEtc.
![Page 25: PHP on Windows](https://reader038.vdocuments.net/reader038/viewer/2022103114/55526c6cb4c9052e1f8b5097/html5/thumbnails/25.jpg)
Windows support
![Page 26: PHP on Windows](https://reader038.vdocuments.net/reader038/viewer/2022103114/55526c6cb4c9052e1f8b5097/html5/thumbnails/26.jpg)
SQL server driver (SQLSRV)Finally possible to use SQL Server databases
flawlesslyAll previous drivers’ problems are fixedSqlsrv 2.0 contains PDO adapter alsoIt works, used in practice:
Zend Framework was first to introduce Sqlsrv support
Doctrine 2.0 will be a major Sqlsrv providerCurrently only works on Windows
![Page 27: PHP on Windows](https://reader038.vdocuments.net/reader038/viewer/2022103114/55526c6cb4c9052e1f8b5097/html5/thumbnails/27.jpg)
SQL server driver (SQLSRV)
![Page 28: PHP on Windows](https://reader038.vdocuments.net/reader038/viewer/2022103114/55526c6cb4c9052e1f8b5097/html5/thumbnails/28.jpg)
Windows AzureSupports PHP applications
Google AppEngine doesn’t support PHPPHP runtime contained within applicationReady to use libraries for consuming Azure
serviceshttp://phpazure.codeplex.com/
WebDeploy is used for deploying applications
![Page 29: PHP on Windows](https://reader038.vdocuments.net/reader038/viewer/2022103114/55526c6cb4c9052e1f8b5097/html5/thumbnails/29.jpg)
Windows Azure
![Page 30: PHP on Windows](https://reader038.vdocuments.net/reader038/viewer/2022103114/55526c6cb4c9052e1f8b5097/html5/thumbnails/30.jpg)
PHP projectsMore and projects are officially supporting
WindowsMost of the big ones: Drupal, phpBB, Wodpres
etc.Microsoft are helping themUsually it only requires small changesSQL Server support is growing also
![Page 31: PHP on Windows](https://reader038.vdocuments.net/reader038/viewer/2022103114/55526c6cb4c9052e1f8b5097/html5/thumbnails/31.jpg)
Finishing touches
![Page 32: PHP on Windows](https://reader038.vdocuments.net/reader038/viewer/2022103114/55526c6cb4c9052e1f8b5097/html5/thumbnails/32.jpg)
Questions?
![Page 33: PHP on Windows](https://reader038.vdocuments.net/reader038/viewer/2022103114/55526c6cb4c9052e1f8b5097/html5/thumbnails/33.jpg)
Thanks!Slides will be available online soonContact me on:
[email protected]: @juokaz
* illustrations from sxc.hu and images.google.com