250 likes | 354 Views
Partying with PHP on Microsoft Internet Information Services 7. Drew Robbins Technical Evangelist Microsoft Corporation. Agenda. Configuring PHP on IIS7 Making your application rock on IIS7 Taking advantage of the Windows platform Q&A at Open Space. A History of PHP on IIS. CGI. FastCGI.
E N D
Partying with PHP on Microsoft Internet Information Services 7 Drew Robbins Technical Evangelist Microsoft Corporation
Agenda • Configuring PHP on IIS7 • Making your application rock on IIS7 • Taking advantage of the Windows platform • Q&A at Open Space
A History of PHP on IIS CGI FastCGI ISAPI Invokes a process for each request. Advantages Easy to Configure Stable Execution Disadvantages Slow due to I/O Overhead of Process Creation Extension to CGI allowing reuse of a process. Advantages Easy to Configure Faster than CGI More stable than PHP on ISAPI Can run non- thread-safe versions of PHP Loaded as extension in process. Advantages Better Performance Disadvantages Many PHP Applications are not Thread-Safe
FastCGI for IIS6 • Same FastCGI functionality as in IIS7, available as a separate download for IIS6 from the Microsoft download center • http://www.iis.net/downloads/default.aspx?tabid=34&g=6&i=1521 • Fully supported by Microsoft • Walk-throughs demonstrating how to run popular PHP applications on Windows Server • See http://www.iis.net/php • Close collaboration with Zend Technologies • Improvements in PHP engine for IIS with contributions and collaboration back to PHP Community • Zend Core Available for Commercially Supported PHP
Configuring PHP on Windows Drew Robbins Technical Evangelist Microsoft demo
Advantages of PHP on IIS7 Modular architecture for reduced attack surface XML-based configuration system Remote management capability Advanced diagnostics Integration with WMS and Media Pack Ability to extend IIS7 using managed code
New Modular Architecture The integrated pipeline Native Managed Managed - or - Custom ISAPI Logging Cache Compress Errors Tracing Static ASP ASP.NET FastCGI Anon UrlAuth Basic Forms
New Configuration System Say goodbye to the metabase! • Configuration stored in XML files validated by a schema. Schema describes configuration settings for IIS, ASP.NET and 3rd party applications. Schema Central configuration file for the server contains system wide configuration settings. applicationHost.config Distributed configuration files contain overrides and local site and application settings. web.config web.config
New IIS Manager Easy navigation to server, sites and applications Tasks organized by areas and features Common actions related to navigation context
Making Your Application Rock on IIS7 Drew Robbins Technical Evangelist Microsoft demo
Leveraging the Platform • Rich functionality in IIS7 • Included modules such as Membership • Add-on modules from http://IIS.net • SQL Server 2005 Driver for PHP • Other Windows Applications • Active Directory • Exchange • SharePoint • Office
Add-On Modules • Publishing • WebDAV - Released • FTP7 - Released • Frontpage Server Extensions - Released • Media Pack • BitRate Throttling – Go Live • Playlists - CTP • Other modules to come…
SQL Server 2005 Driver for PHP • Goal: Provide robust, scalable, and reliable SQL Server connectivity for PHP developers targeting the Windows platform • Enterprise “abilities” to PHP/SQL Server Devs. • Reliability • Scalability • Maintainability • Base the PHP driver's API on existing data patterns • Feb '08 CTP contains API changes based on community feedback • For more info, see the team blog http://blogs.msdn.com/sqlphp
Leveraging the Windows platform Drew Robbins Technical Evangelist Microsoft demo
The IIS 7.0 Pillars What’s cool about IIS • Customized, Componentized Web Server • Reduced management of patches • URLScan built-in functionality Security • Brand new Win32 API • Integrated support for iHttpModules (ASP.NET) Extensibility • Distributed, delegatable configuration • Rich extensibility • Integrated configuration for Web Platform Config • Innovative, Brand-new IIS Manager • AppCmd.exe: Command line administration • Http & Https remote administration System Management • Brand-new state API • Easy-to-setup & use failed request tracing • IIS & ASP.NET integrated diagnostics Diagnostics
© 2008 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
Slide for Showing Developer’s Software Code • Use this layout to show software code • The font is Courier, a monospace font • The slide doesn’t use bullets but levels can be indented using the “Increase List Level” icon on the Home menu
Demo Title Name Title Company demo
Video Title video
Partner Title Name Title Company partner
Customer Title Name Title Company customer
Announcement Title announcing
© 2008 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.