Microsoft, PHP and IIS7

0 %
100 %
Information about Microsoft, PHP and IIS7

Published on September 4, 2008

Author: nickhodge

Source: slideshare.net

Description

Presented to the Sydney PHP User Group, 4th September 2008

Nick Hodge Microsoft Australia Professional Geek [email_address] Jorke Odolphi Microsoft Australia Web Infrastructure Evangelist [email_address]

This is not your father’s Microsoft

 

IIS Request Processing Server functionality is split into ~ 40 modules... Modules plug into a generic request pipeline… Modules extend server functionality through a public module API. Authorization ResolveCache UpdateCache … … … Monolithic implementation Install all or nothing … Extend server functionality only through ISAPI … Send Response Log Compress NTLM Basic Determine Handler CGI Static File ISAPI Authentication Anon SendResponse Authentication ExecuteHandler ASP.NET PHP

IIS 6.0 ASP.NET Processing Runtime limitations Only sees ASP.NET requests Feature duplication … … … … aspnet_isapi.dll Send Response Log Compress NTLM Basic Determine Handler CGI Static File ISAPI Authentication Anon Authentication Forms Windows Map Handler ASPX Trace …

IIS6 Application Framework support Common Gateway Interface (CGI) for CGI and PHP applications Benefits Very simple to implement and use – single-threaded execution Disadvantages Poor performance due to high process creation cost Creates and passes request data to a new CGI process Waits for CGI process to produce response Shuts down CGI process

Common Gateway Interface (CGI) for CGI and PHP applications

Benefits

Very simple to implement and use – single-threaded execution

Disadvantages

Poor performance due to high process creation cost

Creates and passes request data to a new CGI process

Waits for CGI process to produce response

Shuts down CGI process

IIS6 Application Framework support Internet Server Application Programming Interface (ISAPI) Benefit of ISAPI Can be extremely fast when written correctly Disadvantage of ISAPI Must be thread-safe (many PHP extensions are not!) Requires development in C++

Internet Server Application Programming Interface (ISAPI)

Benefit of ISAPI

Can be extremely fast when written correctly

Disadvantage of ISAPI

Must be thread-safe (many PHP extensions are not!)

Requires development in C++

PHP Setup

Per-site PHP configuration Configuring FastCGI process pool < fastCgi > < application fullPath =&quot;C:PHPphp-cgi.exe&quot; arguments =&quot;-d my.website=website1&quot;> < environmentVariables > < environmentVariable name =&quot;PHPRC&quot; value =&quot;C:WebSiteswebsite1&quot; /> </ environmentVariables > </ application > </ fastCgi > Combination of fullPath and arguments uniquely identify FastCGI process pool definition PHPRC environment variable contains path to the php.ini file

IIS Extensions Mod_rewrite support for URL rewriting

Mod_rewrite support for URL rewriting

SQLServer 2008 Express version with Management Studio Free (as in beer) download MySQL .NET drivers (data import/export) Open source: Microsoft SQLServer Driver for PHP

Express version with Management Studio

Free (as in beer) download

MySQL .NET drivers (data import/export)

Open source: Microsoft SQLServer Driver for PHP

Resources http://learn.iis.net http://port25.technet.com http://codeplex.com/ http://port25.technet.com/archive/2008/07/25/osp.aspx

http://learn.iis.net

http://port25.technet.com

http://codeplex.com/

http://port25.technet.com/archive/2008/07/25/osp.aspx

Add a comment

Related presentations

Related pages

PHP : The Official Microsoft IIS Site

Running PHP on IIS. Increase the performance of PHP ... Enable and manage PHP and FastCGI with PHP Manager for IIS7. More about PHP ... Use the Microsoft ...
Read more

PHP: Microsoft IIS 7.0 and later - Manual

Microsoft IIS 7.0 and later. This section contains instructions for manually setting up Internet Information Services (IIS) 7.0 and later to work with PHP ...
Read more

Microsoft Web Platform - Server, IIS, Internet Information ...

Get everything you need to start running and hosting web applications with IIS using the Microsoft Web Platform Installer. ... From ASP.NET to PHP, ...
Read more

Microsoft Web Platform - PHP on Windows

PHP on Windows. PHP now runs better than ever on Windows. Utilize the power of IIS 7.0 and the Windows Web App Gallery.
Read more

Microsoft Internet Information Server - Home : The ...

Learn, download, and discuss IIS7 and more on the official Microsoft IIS site for the IIS.NET development community.
Read more

Schritt 1: Installieren von IIS und PHP

Wenn Sie PHP manuell herunterladen und installieren möchten, ... Microsoft führt eine Onlineumfrage durch, um Ihre Meinung zur MSDN-Website zu erfahren.
Read more

PHP: Microsoft IIS - Manual - PHP: Hypertext Preprocessor

Microsoft IIS. This section contains PHP installation instructions specific to Microsoft Internet Information Services (IIS). Manually installing PHP on ...
Read more

Install and Configure MySQL for PHP Applications on IIS 7 ...

Install and Configure MySQL for PHP Applications on IIS 7 . By Ruslan Yakushev. February 14, 2008. Introduction. While Microsoft ® SQL Server ...
Read more

Running PHP and MS Access in IIS7

Running PHP and MS Access in IIS7. Windows Server > Management. ... I have a web site developed by PHP and Microsoft Access Database.
Read more