+ All Categories
Home > Documents > Http:// PHP on Windows Laurent Bonnet Architecte Solutions d’Hébergement Division Plate-forme &...

Http:// PHP on Windows Laurent Bonnet Architecte Solutions d’Hébergement Division Plate-forme &...

Date post: 24-Dec-2015
Category:
Upload: ursula-alannah-kelley
View: 214 times
Download: 0 times
Share this document with a friend
Popular Tags:
23
http:// www.iis.net/php PHP on Windows Laurent Bonnet Architecte Solutions d’Hébergement Division Plate-forme & Ecosystème [email protected] http://blogs.msdn.com/laurenbo PHP on Windows Paris, 15/05/2008
Transcript
Page 1: Http:// PHP on Windows Laurent Bonnet Architecte Solutions d’Hébergement Division Plate-forme & Ecosystème laurenbo@microsoft.com .

http://www.iis.net/php

PHP on WindowsLaurent BonnetArchitecte Solutions d’HébergementDivision Plate-forme & Ecosystè[email protected] http://blogs.msdn.com/laurenbo

PHP on Windows

Paris, 15/05/2008

Page 2: Http:// PHP on Windows Laurent Bonnet Architecte Solutions d’Hébergement Division Plate-forme & Ecosystème laurenbo@microsoft.com .

Session Objectives And Takeaways

Session Objective(s): Determine the best approach for presenting Windows servers and IIS to PHP developers.Relate the technical and business advantages of hosting PHP applications on Windows.Integrate IIS features with PHP applications and show Expression Web 2.0 as a design tool

After this session you will know our story for PHP developers.

Page 3: Http:// PHP on Windows Laurent Bonnet Architecte Solutions d’Hébergement Division Plate-forme & Ecosystème laurenbo@microsoft.com .

Microsoft Strategy for PHP

Key Takeaways:

Fundamental shift @ Microsoft around PHP

PHP initiatives from Microsoft

Publicize content in the right channels

Page 4: Http:// PHP on Windows Laurent Bonnet Architecte Solutions d’Hébergement Division Plate-forme & Ecosystème laurenbo@microsoft.com .

<html> <head> <title> PHP Hello World Example</title> </head> <body> <?php echo “Hello World!”; ?> </body></html>

An example of a simple PHP script which sends the text "Hello World" to the browser:

Overview of PHP PHP is a general-

purpose scripting language

PHP is primarily used as a server-side scripting language to create Web applications, but can also be used for command line scripting and for desktop applications

PHP is Open Source and cross-platform

What is it? PHP succeeds an older

product PHP/FI, which was created by Rasmus Lerdorf in 1995

PHP 4.0 was first released in May 2000 (currently the most popular major release)

PHP 5.0 was released in July 2004 and the release of PHP 6.0 alpha is anticipated early in 2008

When did it start? PHP powers the majority

of scripted sites on the Internet (source: Netcraft)

There are roughly the same number of PHP sites on the Web as ASP and ASP.NET combined (source: Netcraft)

PHP use is very strong amongst VAR/SI web developers, and in particular, small VAR/SIs

Where is it? Easy to pick-up and

understand, especially without a programming background

Low cost of entry, including shared hosting that usually includes database storage

Huge ecosystem, including applications, tools & documentation

Why is it used?

Page 5: Http:// PHP on Windows Laurent Bonnet Architecte Solutions d’Hébergement Division Plate-forme & Ecosystème laurenbo@microsoft.com .

Key Questions for new Strategy

How will the new strategy be different? How will risks be mitigated? How to ensure the solution is effective and does not impede

progress due to the complexity? How to monitor progress of the new strategy? How will it be successful?

Strategy Guidelines

Lowest barrier to entry – Leverage PHP developers existing skills Formal Process – Clear definitions of objectives, goals & metrics Pragmatic – Messaging is simple, straightforward and easy to

communicate Track growth – Visible progress with targeted metrics Long-term Plan – Shift perception, build trust & establish platform

PHP

MySQL

Apache

Linux

Previous efforts to excite PHP Developers

Investment to learn a new language

+Additional costs

associated with a new backend

+Learning new

environment for hosting application

+Further costs

associated with OS

Difficult Discussions

Better Way to work with PHP devs

Page 6: Http:// PHP on Windows Laurent Bonnet Architecte Solutions d’Hébergement Division Plate-forme & Ecosystème laurenbo@microsoft.com .

Long term approach to work with PHP communities

• PHP on Windows is the primary message that should be delivered (no mention of ASP.NET and continuing use of MySQL is fine)

• Silverlight is also a great technology to showcase (without pushing.NET)

Shift Perceptions

• PHP on Windows

• SilverlightNow

• SQL Server Driver

• Expression Web

Near Term

• Improving with ASP.NET

Long Term

The lowest barrier to entry into Microsoft’s Web Platform involves leveraging the existing skill set of PHP developers. PHP on Windows is the key primary message that should be used with many customers using PHP.

It’s important to note that while deploying a PHP application on Windows is a great, it’s only the beginning. There are compelling value added Windows specific features that PHP developers can use.

Page 7: Http:// PHP on Windows Laurent Bonnet Architecte Solutions d’Hébergement Division Plate-forme & Ecosystème laurenbo@microsoft.com .

List of current PHP Related Initiatives

PHP Related Initiatives

Description Primary Impact

PHP on Windows FastCGI component is part of the collaboration between Microsoft and Zend to improve performance and stability of PHP on the Windows platform

Increases Windows Server adoption

Server Core The Server Core installation option of the Microsoft Windows Server 2008 operating system coupled with the availability of IIS7, provides a powerful Web server on top of a minimal footprint operating system

Increases Windows Server adoption

SQL Server Driver Enables reliable, scalable integration with SQL Server for PHP applications deployed on the Windows platform

Increases SQL Server adoption

PHP Support in Expression Web

The next version of Expression Web will include PHP support Improves image and satisfaction

PHP with Microsoft AJAX Library

A small set of PHP files to support the use of the Microsoft AJAX Library with PHP web applications.

Improves image

Phalanger* Phalanger is a PHP language compiler for the .NET Framework and has been a community driven project.

Improves image at the academic levelA community project like this can help students

1

2

3

4

5

6

*Community project that’s not driven by Microsoft

Page 8: Http:// PHP on Windows Laurent Bonnet Architecte Solutions d’Hébergement Division Plate-forme & Ecosystème laurenbo@microsoft.com .

On October 30th, 2006, Microsoft and Zend announced a multi-year collaboration to improve the performance and stability of PHP on Windows. This was a significant event that indicated Microsoft’s shifting approach with PHP. The FastCGI extension is available as a download for IIS 6.0 and IIS7 will not require a download since the module is included.

FastCGI – PHP on Windows1

Benefits Risks

-PHP being deployed on Windows instead of Linux-Huge ecosystem of apps potentially being available on Windows-Making it easier for PHP developers to take advantage of the Microsoft Web platform

-Making PHP easier to adopt for new developers-Increasing the use of PHP in Windows only environments-Affecting the adoption of ASP.NET

Primary Target Audience: Any customer using PHP that has Windows in its IT environment

Guidance: The main value proposition of PHP on Windows is streamlining operations in mixed IT environments. Server Core is a great option that any PHP customer should know about as well. Once the application has been deployed on Windows (PHP/MySQL/IIS/Windows), discussions regarding SQL Server are more feasible and can be done more effectively.Conveying PHP on Windows should not be used in situations where the customer does not have Windows in its environment. Although continuous improvements are being made, it’s not ready for all customers using PHP.

Page 9: Http:// PHP on Windows Laurent Bonnet Architecte Solutions d’Hébergement Division Plate-forme & Ecosystème laurenbo@microsoft.com .

Windows 2008 Server Core

The new Server Core installation option of Windows Server 2008 allows for installation of server roles with only the necessary components and subsystems without a graphical user interface. This option provides a highly available server that requires fewer updates and less servicing.

Benefits Risks

-A minimal footprint, low-maintenance web server that can host PHP applications-Providing an option that will resonate with PHP hosters and developers

-PHP being perceived as better than ASP.NET-Confusion arising from existing customers-Customers thinking PHP is the only language that will be supported by Server Core

Primary Target Audience: Any customer using PHP in a Windows Environment (Same as PHP on Windows)

Guidance : Discussing Server Core to a customer using PHP will be coupled with FastCGI and IIS7. Once the application has been deployed on Windows, discussions regarding additional investments like SQL Server are feasible and can be done more effectively.

For the time being, without .NET support in the Server Core option, it is important to broadcast the availability of Server Core very carefully.

2

Page 10: Http:// PHP on Windows Laurent Bonnet Architecte Solutions d’Hébergement Division Plate-forme & Ecosystème laurenbo@microsoft.com .

SQL Server Driver for PHP

On October 9th, 2007, the first CTP of the SQL Server Driver for PHP was released. It is designed to enable reliable, scalable integration with SQL Server for PHP applications deployed on the Windows platform.

Benefits Risks

-Increases the adoption of SQL Server-Increases the use of the Microsoft platform-Makes it even easier to persuade PHP developers to use other Microsoft technologies

-Increases the use of PHP in the enterprise space

Primary Target Audience: Any customers using PHP and considering SQL Server (An initiative called “Project Willow” is reaching out to the the most popular PHP apps to add support for SQL Server 2005)

Guidance : The efforts with the SQL driver for PHP have just started. Overall, it has received very positive response from the community and feedback is being solicited accordingly. Although the primary database used with PHP is MySQL, a SQL Server 2005 driver from Microsoft will provide a better alternative on Windows.Project Willow is a program to engage with the top PHP community applications in order to add or optimize support for Windows and SQL Server. Current efforts have been focused on optimizing Windows support. This project provides an opportunity to build relationships in the community and will be a key initiative in gaining feedback regarding the efforts around PHP.

3

Page 11: Http:// PHP on Windows Laurent Bonnet Architecte Solutions d’Hébergement Division Plate-forme & Ecosystème laurenbo@microsoft.com .

Expression Studio & Web 2.0: Available todayExpression Web 2.0 is the first Microsoft tool to offer PHP support.

Providing PHP support is a critical need for many designers and should also help shift the image of Microsoft in the PHP community.

Benefits Risks

-Provides a great opportunity to show Web designers that primarily use PHP the benefit of xWeb-Improves the image of Microsoft within the PHP community-Makes it easier to persuade Web designers the benefit of using ASP.NET

-Introducing a tool that supports PHP in Microsoft-only environments-Improves the credibility of PHP

Primary Target Audience: Web Designers that use PHP (e.g. customers using PHP with Dreamweaver)

Guidance : In the near term, Web Designers are the primary audience segment for showing PHP support in Expression Web. If the designer primarily uses PHP and begins using Expression Web as its designer tool, there is an opportunity to show how ASP.NET can help them develop their vision more effectively.Expression Web can be shown to PHP Web developers, but must be positioned as a designer tool to manage their expectations.

4

Page 12: Http:// PHP on Windows Laurent Bonnet Architecte Solutions d’Hébergement Division Plate-forme & Ecosystème laurenbo@microsoft.com .

Hosting PHP on Windows

Page 13: Http:// PHP on Windows Laurent Bonnet Architecte Solutions d’Hébergement Division Plate-forme & Ecosystème laurenbo@microsoft.com .

Options for Hosting PHP

CGI ISAPIFastCGIInvokes a process for each request.

Advantages Easy to Configure Stable Execution

Disadvantages Slow due to I/O Overhead of Process Creation

Loaded as extension in process.

Advantages Better Performance

Disadvantages Many PHP Applications are not Thread-Safe

Extension to CGI allowing reuse of a process.

Advantages Easy to Configure Faster than CGI More stable than PHP on ISAPI

Page 14: Http:// PHP on Windows Laurent Bonnet Architecte Solutions d’Hébergement Division Plate-forme & Ecosystème laurenbo@microsoft.com .

IIS 7.0

Page 15: Http:// PHP on Windows Laurent Bonnet Architecte Solutions d’Hébergement Division Plate-forme & Ecosystème laurenbo@microsoft.com .

Configuring PHP on Windows

demo

Page 16: Http:// PHP on Windows Laurent Bonnet Architecte Solutions d’Hébergement Division Plate-forme & Ecosystème laurenbo@microsoft.com .

FastCGI process pool for PHP4

php.exe

FastCGI Handler Architecture

Read Configuration

Authenticate

Authorize

Map Request

Handle Request

Send Response

Log Request

FastCGI handler

ASP.NET

Static

Request queue

FastCGI process pool for PHP5

php-cgi.exe

FastCGI protocol over named pipes or TCP

IIS Worker Process

Page 17: Http:// PHP on Windows Laurent Bonnet Architecte Solutions d’Hébergement Division Plate-forme & Ecosystème laurenbo@microsoft.com .

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

Page 18: Http:// PHP on Windows Laurent Bonnet Architecte Solutions d’Hébergement Division Plate-forme & Ecosystème laurenbo@microsoft.com .

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 from Windows Server 2003.

Delivered as part of IIS7. Users must install the CGI feature in IIS to enable 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

Page 19: Http:// PHP on Windows Laurent Bonnet Architecte Solutions d’Hébergement Division Plate-forme & Ecosystème laurenbo@microsoft.com .

Advantages of PHP on IIS7

PHP users who deployed to Apache in the past will be more comfortable with IIS7 than IIS6 due to the new configuration system and modular architecture.

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

Page 20: Http:// PHP on Windows Laurent Bonnet Architecte Solutions d’Hébergement Division Plate-forme & Ecosystème laurenbo@microsoft.com .

Taking Advantage of IIS7

demo

Page 21: Http:// PHP on Windows Laurent Bonnet Architecte Solutions d’Hébergement Division Plate-forme & Ecosystème laurenbo@microsoft.com .

SQL Server 2005 Driver for PHP

Goal: Provide robust, scalable, and reliable SQL Server connectivity for PHP developers targeting the Windows platform

Create a PHP API, not a Microsoft API for PHP

Simple things take very little codeAvoid many ways to do the same thingPHP Developers can apply existing data patterns

Enterprise “abilities” to PHP/SQL Server Devs.

ReliabilityScalabilityMaintainability

Page 22: Http:// PHP on Windows Laurent Bonnet Architecte Solutions d’Hébergement Division Plate-forme & Ecosystème laurenbo@microsoft.com .

Academy | Evangelism

Links & ResourcesIIS Evangelism Site http://www.iis.net

PHP on Windows Evangelism Site http://www.iis.net/php

Hosting Guidance http://learn.iis.net

PHP Index – France http://www.phpindex.com

Forum IIS et PHP http://forums.iis.net/1102.aspx

Laurent BonnetArchitecte Solutions d’HébergementDivision Plate-forme & Ecosystè[email protected] http://blogs.msdn.com/laurenbo

Page 23: Http:// PHP on Windows Laurent Bonnet Architecte Solutions d’Hébergement Division Plate-forme & Ecosystème laurenbo@microsoft.com .

Academy | Evangelism

Do you have any final questions?


Recommended