PHP on Windows
-
Upload
juozas-kaziukenas -
Category
Technology
-
view
2.193 -
download
2
Transcript of PHP on Windows
“PHP on Windows“ installation and management
Juozas Kaziukėnaswww.juokaz.com / [email protected] /
@juokaz
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
YouPHP developers?Using Linux for production servers?Using Windows for workstations?
PHP on WindowsInstallation and management
Why?
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
No-one wants to migrate to Windows
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”
History
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
PHP and Microsoft
PHP and Microsoft
TodayCommunity’s and Microsoft’s initiativesUsed in productionA lot of tools for developersWork on interoperability is done on daily
basis
Installation
WebDeployDeploy toolAllows migrating IIS 6 -> IIS 7Configuration, source code, DB’s, DLL’s etc.DependenciesServers synchronizationNo admin permissions are required
Web Platform InstallerUsing WebDeployWeb server setup with one click
IIS, PHP, Microsoft SQL Server, .Net etc.Web App Gallery
Drupal, Wordpress etc.
Web Platform Installer
Web App Gallery
IIS tools
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
PHP Manager for IIS
URL RewriteSimilar to Apache mod_rewrite
Probably has more featuresNot always easier to use
UI tool.htaccess import!
URL Rewrite
Much moreWinCacheLoggingWarm upDatabase managerSEO toolkitEtc.
Windows support
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
SQL server driver (SQLSRV)
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
Windows Azure
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
Finishing touches
Questions?
Thanks!Slides will be available online soonContact me on:
[email protected]: @juokaz
* illustrations from sxc.hu and images.google.com