PHP on Windows

33
“PHP on Windows“ installation and management Juozas Kaziukėnas www.juokaz.com / [email protected] / @juokaz

Transcript of PHP on Windows

Page 1: PHP on Windows

“PHP on Windows“ installation and management

Juozas Kaziukėnaswww.juokaz.com / [email protected] /

@juokaz

Page 2: PHP on Windows

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

YouPHP developers?Using Linux for production servers?Using Windows for workstations?

Page 4: PHP on Windows

PHP on WindowsInstallation and management

Page 5: PHP on Windows

Why?

Page 6: PHP on Windows

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

No-one wants to migrate to Windows

Page 8: PHP on 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”

Page 9: PHP on Windows

History

Page 10: PHP on Windows

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

PHP and Microsoft

Page 12: PHP on Windows

PHP and Microsoft

Page 13: PHP on Windows

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

Installation

Page 15: PHP on Windows

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

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

Web Platform Installer

Page 18: PHP on Windows

Web App Gallery

Page 19: PHP on Windows

IIS tools

Page 20: PHP on Windows

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

PHP Manager for IIS

Page 22: PHP on Windows

URL RewriteSimilar to Apache mod_rewrite

Probably has more featuresNot always easier to use

UI tool.htaccess import!

Page 23: PHP on Windows

URL Rewrite

Page 24: PHP on Windows

Much moreWinCacheLoggingWarm upDatabase managerSEO toolkitEtc.

Page 25: PHP on Windows

Windows support

Page 26: PHP on Windows

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

SQL server driver (SQLSRV)

Page 28: PHP on Windows

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

Windows Azure

Page 30: PHP on Windows

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

Finishing touches

Page 32: PHP on Windows

Questions?

Page 33: PHP on Windows

Thanks!Slides will be available online soonContact me on:

[email protected]: @juokaz

* illustrations from sxc.hu and images.google.com