1 / 23

PHP on Windows

PHP on Windows. PHP on Windows. Laurent Bonnet Architecte Solutions d’Hébergement Division Plate- forme & Ecosystème laurenbo@microsoft.com http://blogs.msdn.com/laurenbo. Paris, 15/05/2008. Session Objectives And Takeaways. Session Objective(s):

Download Presentation

PHP on Windows

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. PHP on Windows PHP on Windows • Laurent Bonnet • Architecte Solutions d’Hébergement • Division Plate-forme & Ecosystème laurenbo@microsoft.com http://blogs.msdn.com/laurenbo Paris, 15/05/2008

  2. 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.

  3. Microsoft Strategy for PHP Key Takeaways: • Fundamental shift @ Microsoft around PHP • PHP initiatives from Microsoft • Publicize content in the right channels

  4. Overview of PHP • When did it start? • Why is it used? • Where is it? • What is it? • 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 succeeds an older product PHP/FI, which was created by RasmusLerdorf 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 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 • 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 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>

  5. Better Way to work with PHP devs Previous efforts to excite PHP Developers PHP Investment to learn a new language + Additional costs associated with a new backend MySQL + Learning new environment for hosting application Apache + Further costs associated with OS Linux Difficult Discussions Strategy Guidelines 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? • 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

  6. Long term approach to work with PHP communities 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. List of current PHP Related Initiatives 1 2 3 4 5 6 *Community project that’s not driven by Microsoft

  8. FastCGI – PHP on Windows 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. 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. Windows 2008 Server Core 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. 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.

  10. SQL Server Driver for PHP 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. 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.

  11. Expression Studio & Web 2.0: Available today 4 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. 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.

  12. Hosting PHP on Windows

  13. Options for Hosting PHP CGI FastCGI ISAPI Invokes a process for each request. Advantages Easy to Configure Stable Execution Disadvantages Slow due to I/O Overhead of Process Creation Extension to CGI allowing reuse of a process. Advantages Easy to Configure Faster than CGI More stable than PHP on ISAPI Loaded as extension in process. Advantages Better Performance Disadvantages Many PHP Applications are not Thread-Safe

  14. IIS 7.0

  15. Configuring PHP on Windows demo

  16. FastCGI Handler Architecture FastCGI process pool for PHP5 • IIS Worker Process FastCGI protocol over named pipes or TCP php-cgi.exe FastCGI process pool for PHP4 Request queue php.exe

  17. 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=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

  18. FastCGI in IIS6 and IIS7

  19. 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.

  20. Taking Advantage of IIS7 demo

  21. 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 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. Links & Resources • Laurent Bonnet • Architecte Solutions d’Hébergement • Division Plate-forme & Ecosystème laurenbo@microsoft.com http://blogs.msdn.com/laurenbo

  23. Do you have any final questions?

More Related