Download presentation
Presentation is loading. Please wait.
Published byUrsula Alannah Kelley Modified over 9 years ago
1
http://www.iis.net/php PHP on Windows Laurent Bonnet Architecte Solutions d’Hébergement Division Plate-forme & Ecosystème laurenbo@microsoft.com http://blogs.msdn.com/laurenbo PHP on Windows Paris, 15/05/2008
2
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.
3
Key Takeaways: Fundamental shift @ Microsoft around PHP PHP initiatives from Microsoft Publicize content in the right channels
4
PHP Hello World Example <?php echo “Hello World!”; ?> PHP Hello World Example <?php echo “Hello World!”; ?> An example of a simple PHP script which sends the text "Hello World" to the browser: 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 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 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 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 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?
5
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 + Additional costs associated with a new backend + Learning new environment for hosting application + Learning new environment for hosting application + Further costs associated with OS + Further costs associated with OS Difficult Discussions
6
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 SQL Server driver is a great way to forge relationships and establish trust in the community Expression Web is Microsoft’s first tool providing PHP support Build Trust Establish Windows as the best platform for PHP development Once deployed on the Windows platform, providing ways to leverage ASP.NET to improve existing PHP applications is more plausible Establish Platform PHP on Windows Silverlight Now 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.
7
PHP Related Initiatives DescriptionPrimary 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 supportImproves 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 level A community project like this can help students 1 1 2 2 3 3 4 4 5 5 6 6 *Community project that’s not driven by Microsoft
8
On October 30 th, 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. 1 1 BenefitsRisks -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.
9
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. BenefitsRisks -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 2
10
On October 9 th, 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. BenefitsRisks -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 3
11
Expression 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. BenefitsRisks -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 4
13
Invokes 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
16
FastCGI process pool for PHP4 php.exe Request queue FastCGI process pool for PHP5 php-cgi.exe FastCGI protocol over named pipes or TCP
17
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/phphttp://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
18
FastCGI in IIS6FastCGI 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 extensionNative IIS7 module Resources, forums, and reference material available on IIS.NET Product help documentation, as well as resources on IIS.NET. Configured via fcgiext.iniConfigured via the new XML-based configuration system in IIS7. Fully supported by Microsoft Supports PHP and other FastCGI frameworks
19
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
21
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
22
Academy | Evangelism Links & Resources IIS Evangelism Sitehttp://www.iis.net PHP on Windows Evangelism Sitehttp://www.iis.net/php Hosting Guidancehttp://learn.iis.net PHP Index – Francehttp://www.phpindex.com Forum IIS et PHPhttp://forums.iis.net/1102.aspx Laurent Bonnet Architecte Solutions d’Hébergement Division Plate-forme & Ecosystème laurenbo@microsoft.com http://blogs.msdn.com/laurenbo
23
Academy | Evangelism Do you have any final questions?
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.