configuring php on iis7 making your application rock on iis7 taking advantage of the windows...
TRANSCRIPT
Partying with PHP on Microsoft Internet Information Services 7Drew RobbinsTechnical EvangelistMicrosoft Corporation
Agenda
Configuring PHP on IIS7Making your application rock on IIS7Taking advantage of the Windows platform
Q&A at Open Space
FastCGIExtension 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
A History of PHP on IIS
CGIInvokes a process for each request.
Advantages Easy to Configure Stable Execution
Disadvantages Slow due to I/O Overhead of Process Creation
ISAPILoaded 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=1521Fully 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 TechnologiesImprovements in PHP engine for IIS with contributions and collaboration back to PHP CommunityZend Core Available for Commercially Supported PHP
FastCGI in IIS6 and IIS7
FastCGI in IIS6 FastCGI in IIS7
Available today on Download Center
Available with Windows Server 2008 and Vista SP1
Delivered as a separate download for Windows Server 2003.
Delivered as part of IIS7. Users must install the CGI feature in IIS to enable FastCGI.
FastCGI ISAPI extension Native IIS7 module
Resources, forums, and reference material available on IIS.NET
Product help documentation, as well as resources on IIS.NET.
Configured via fcgiext.ini Configured via the new XML-based configuration system in IIS7.
Fully supported by Microsoft
Supports PHP and other FastCGI frameworks
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
ManagedNative
Forms
Anon Basic
UrlAuth
Cache
ISAPI
Logging
Tracing
Static
ASP
ASP.NET
FastCGI
Compress
Errors
- or -
Managed
Custom
web.config
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.
Central configuration file for the server contains system wide configuration settings.
Distributed configuration files contain overrides and local site and application settings.
Schema
applicationHost.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
Leveraging the Platform
Rich functionality in IIS7Included modules such as MembershipAdd-on modules from http://IIS.net
SQL Server 2005 Driver for PHPOther Windows Applications
Active DirectoryExchangeSharePointOffice
Add-On Modules
PublishingWebDAV - ReleasedFTP7 - ReleasedFrontpage Server Extensions - Released
Media PackBitRate Throttling – Go LivePlaylists - 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.
ReliabilityScalabilityMaintainability
Base the PHP driver's API on existing data patterns
Feb '08 CTP contains API changes based on community feedbackFor more info, see the team blog http://blogs.msdn.com/sqlphp
The IIS 7.0 Pillars What’s cool about IIS
Security
Extensibility
Config
System Manageme
nt
Diagnostics
• Customized, Componentized Web Server• Reduced management of patches• URLScan built-in functionality
• Brand new Win32 API• Integrated support for iHttpModules (ASP.NET)
• Distributed, delegatable configuration• Rich extensibility• Integrated configuration for Web Platform
• Innovative, Brand-new IIS Manager• AppCmd.exe: Command line administration• Http & Https remote administration
• Brand-new state API• Easy-to-setup & use failed request tracing• IIS & ASP.NET integrated 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 CodeUse this layout to show software codeThe font is Courier, a monospace fontThe slide doesn’t use bullets but levels can be indented using the “Increase List Level” icon on the Home menu
© 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.