0% found this document useful (0 votes)
11 views21 pages

PHP On Windows Server 2008 AAR

Uploaded by

Susi Rahmawati
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
11 views21 pages

PHP On Windows Server 2008 AAR

Uploaded by

Susi Rahmawati
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 21

Arfan Arlanda

Microsoft MVP
Session Objective(s):
Determine the best approach for evangelizing
Windows to PHP developers.
Relate the technical and business advantages
of hosting PHP applications on Windows.
Integrate IIS and ASP.NET features with PHP
applications
After this session you will know our story for
PHP developers.
Key Takeaways

Fundamental shift with PHP

PHP initiatives to better engage

Publicize content in the right channels

Read the complete strategy at http://dpe/php


What is it? When did it start? Where is it? Why is it used?
PHP is a general-purpose PHP succeeds an older PHP powers the majority of Easy to pick-up and
scripting language product PHP/FI, which was scripted sites on the Internet understand, especially without a
PHP is primarily used as a created by Rasmus Lerdorf in (source: Netcraft) programming background
server-side scripting language 1995 There are roughly the same Low cost of entry, including
to create Web applications, but PHP 4.0 was first released in number of PHP sites on the shared hosting that usually
can also be used for command May 2000 (currently the most Web as ASP and ASP.NET includes database storage
line scripting and for desktop popular major release) combined (source: Netcraft) Huge ecosystem, including
applications PHP 5.0 was released in July PHP use is very strong applications, tools &
PHP is Open Source and 2004 and the release of PHP amongst VAR/SI web documentation
cross-platform 6.0 alpha is anticipated early in developers, and in particular,
2008 small VAR/SIs

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

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

6/7/2010 Microsoft Confidential


Previous efforts to engage with PHP Developers

Investment to learn
PHP a new language
+
Additional costs
MySQL associated with a
new backend
+
Learning new
environment for
Apache hosting application
+
Further costs
Linux associated with OS

Difficult
Discussions
Key Questions for new Strategy Strategy Guidelines

 How will the new strategy be different?  Lowest barrier to entry – Leverage PHP developers existing skills
 How will risks be mitigated?  Formal Process – Clear definitions of objectives, goals & metrics
 How to ensure the solution is effective and does not impede  Pragmatic – Messaging is simple, straightforward and easy to
progress due to the complexity? communicate
 How to monitor progress of the new strategy?  Track growth – Visible progress with targeted metrics
 How will it be successful?  Long-term Plan – Shift perception, build trust & establish platform

6/7/2010 Microsoft Confidential


The lowest barrier to entry into
• SQL
Microsoft’s Web Platform involves • PHP on Near Server Long Improving
leveraging the existing skill set of Now Windows Driver with
• Silverlight Term • Expression Term ASP.NET
PHP developers. PHP on Web

Windows is the key primary


message that should be used with
many customers using PHP.

• PHP on Windows is the Build Trust • Establish Windows as the


primary message that should best platform for PHP
be delivered (no mention of development
ASP.NET and continuing use • Once deployed on the
of MySQL is fine) • SQL Server driver is a great
Windows platform, providing
way to forge relationships and
• Silverlight is also a great ways to leverage ASP.NET to
establish trust in the
technology to showcase improve existing PHP
community
(without pushing.NET) applications is more plausible
• Expression Web is Microsoft’s
first tool providing PHP
support
Shift Establish
Perceptions Platform
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.
6/7/2010 Microsoft Confidential
PHP Related Description Primary Impact
Initiatives
PHP on Windows FastCGI component is part of the collaboration between Microsoft and Increases Windows Server adoption
1 Zend to improve performance and stability of PHP on the Windows
platform

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

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

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

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

Phalanger* Phalanger is a PHP language compiler for the .NET Framework and Improves image at the academic level
6 has been a community driven project. A community project like this can help students

*Community project that’s not driven by Microsoft

6/7/2010 Microsoft Confidential


1

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.

Benefits Risks

-PHP being deployed on Windows instead of Linux -Making PHP easier to adopt for new developers
-Huge ecosystem of apps potentially being -Increasing the use of PHP in Windows only
available on Windows environments
-Making it easier for PHP developers to take -Affecting the adoption of ASP.NET
advantage of the Microsoft Web platform

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.

6/7/2010 Microsoft Confidential


2

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 -PHP being perceived as better than ASP.NET
that can host PHP applications -Confusion arising from existing customers
-Providing an option that will resonate with PHP -Customers thinking PHP is the only language that
hosters and developers 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.

6/7/2010 Microsoft Confidential


3

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 PHP in the enterprise space
-Increases the use of the Microsoft platform
-Makes it even easier to persuade PHP developers
to use other Microsoft technologies

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.

6/7/2010 Microsoft Confidential


4

The next version of Expression Web will be 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 -Introducing a tool that supports PHP in Microsoft-
designers that primarily use PHP the benefit of only environments
xWeb -Improves the credibility of PHP
-Improves the image of Microsoft within the PHP
community
-Makes it easier to persuade Web designers the
benefit of using ASP.NET
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. Otherwise, the developer may consider the product far inferior to alternatives, since it’s currently missing
significant development features like debugging.

6/7/2010 Microsoft Confidential


Invokes a process for Extension to CGI Loaded as extension
each request. allowing reuse of a in process.
process.

Advantages Advantages Advantages


Easy to Configure Easy to Configure Better Performance
Stable Execution Faster than CGI
More stable than
Disadvantages PHP on ISAPI Disadvantages
Slow due to I/O Many PHP
Overhead of Applications are
Process Creation not Thread-Safe
FastCGI process pool for
PHP5
FastCGI protocol
over named pipes
or TCP

php-cgi.exe

FastCGI process pool for


PHP4

Request
queue

php.exe
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
FastCGI in IIS6 FastCGI in IIS7
Available today on Download Available with Windows Server
Center 2008 and Vista SP1
Delivered as a separate download Delivered as part of IIS7. Users
from Windows Server 2003. must install the CGI feature in IIS
to enable FastCGI.
ISAPI extension Native IIS7 module
Resources, forums, and reference Product help documentation, as
material available on IIS.NET 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
Modular
XML-based Remote
architecture for
configuration management
reduced attack
system capability
surface

Integration with Ability to extend


Advanced
WMS and Media IIS7 using
diagnostics
Pack managed code

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.
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 code
Avoid many ways to do the same thing
PHP Developers can apply existing data patterns
Enterprise “abilities” to PHP/SQL Server Devs.
Reliability
Scalability
Maintainability
Breakout Sessions/Chalk Talks
DEVCT301 - LAMP Compete - the Developers Perspective
DEV358 - Enhancing Web Applications Through Advanced IIS7
Customization
SVR305 - Apache vs. IIS Head-to-Head: IIS 7.0 is changing it all
SVR349 - Deploying and Managing a Customized Web Server on
Server Core
Hands-on Labs
DEVHOL368 - Extending IIS 7.0 with Custom Handlers
DEVHOL369 - Introducing IIS 7.0 for ASP.NET Developers
Your input is important!
Two ways to access Online Evaluation Forms:
CommNet stations located throughout
conference venues
From any wired or wireless connection to:
https://www.MyTechReady.com
For more information please refer to your Pocket Guide
© 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.

You might also like