PHP On Windows Server 2008 AAR
PHP On Windows Server 2008 AAR
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
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>
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
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
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.
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.
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.
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.
php-cgi.exe
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.