palais descongrèsTunis8 et 9 février2012
PHP / APACHE & MICROSOFTYahmadi Hafedh – DPE Microsoft Tunisie
Agenda1. PHP for Windows     Qu’est ce que PHP ?     Que peut Faire PHP ?     Windows IIS avec PHP.     Demo2. Web Ser...
Introduction11           PHP     For Windows           Titre
Qu’est ce que PHP?   What is PHP?                        History of PHP      PHP stands for "PHP                Created ...
PHP is used by 77.2% of all the websites whose server-side programming language we know.  PHP          77.2%              ...
PHP Language Basics   The Script Tags                     The Script Tags (cont.)       All PHP code is contained in     ...
Que peut Faire PHP ? 1.   Sites Web et applications   Cest lutilisation la plus      Web (script côté serveur)   tradition...
PHP on Linux and Windows(Portability OS, WebServer, OOP Protocol, BD)                               ,    Code Portability ...
DEMO  Donwload PHPonWindows&SQLServerTrainingKit                    fromhttp://www.microsoft.com/download/en/details.aspx?...
PHP For WindowsDurant des decencies Apache Foundation etMicrosoft dominent les servers web shares21                   Web ...
Internet Information Server    IIS 3.0 in option in Windows NT    4.0    IIS 5.0 was included in Windows    2000 in both s...
APACHE Overview   Free web server.   Often combined with Linux, MySQL, and PHP to   make the LAMP stack.   First released ...
IIS 6 Overview   IIS 6.0 – A Solid Foundation           Proven Scalability and Stability      Shipped with Windows      ...
IIS 7 Overview IIS7      Overview       Features                        Benefits                                Create    ...
PHP For Windows31         IIS Features   in details         Titre
Questions“Which of the two platforms (IIS and Apache)                                                  “Is IIS or Apache m...
Security   IIS 7.0 Security                    IIS / Security Development       Minimal Surface Area           Lifecycle ...
Management  IIS 7.0 Manageability      Centralized Web Farm       Configuration      Streamlined and Focused       Admin...
Performance / Scalability   IIS 7.0                      Enterprise Level Performance   Performance/Scalability         ...
Reliability / Modularity   IIS 7.0 Reliability                 IIS 7.0 Modularity       Proven and Trusted Platform     ...
Innovation             IIS 7.0 Innovation                IIS 7.0 Admin Pack                URL Rewrite Module           ...
Troubleshooting   IIS 7.0 Troubleshooting              Failed Request Tracing       Detailed Error Messages            ...
Application Support   IIS 7.0 Application Support                Built-in FastCGI support for       Extensible, modular ...
TCO  IIS 7.0 - Cost of                      Less Expensive  Ownership                               Administrator Resourc...
PHP Applications   IIS 7.0 and PHP Support                    Host on Minimal / Headless       Consolidate .NET and PHP ...
Summary  IIS 7.0 has:                           This leads to a Web      A Modular and Extensible          Platform that ...
PHP For Windows41         Case    Study + demo         Titre
Windows Azure Platform + PHP51          PHP     ON The Cloud          Titre
Introducing the Windows Azure Platform
Types of Clouds                                                                            You manage                 Priv...
Types of Clouds  Private         Infrastructure     Platform(On-Premise)       (as a Service)   (as a Service)
Windows Azure for Application Developers    SDK            Portal                   Hosted                                ...
Windows Azure Compute Roles    Role           Code   Configuration
Web vs. Worker RoleWeb Role               Worker RoleIIS Host               System Host           Your Code           Your...
Sample Application Architecturehttp://yourapp.cloudapp.net
Running PHP in WindowsSDK for PHP @ http://phpazure.codeplex.com  How to Do It                                           ...
This is all you need! HelloCloudPHP   ServiceDefinition.csdef                                             Make sure you   ...
PHP with SQL Azure  SQL Server Driver for PHP @   http://sqlsrvphp.codeplex.com/  Supports PHP access to SQL Azure  Fea...
Lastly, Microsoft can help your company!  BizSpark                                         WebsiteSpark     www.bizspark....
MERCIE1   ND    Titre
Upcoming SlideShare
Loading in …5
×

Php apache vs iis By Hafedh Yahmadi

2,449 views

Published on

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
2,449
On SlideShare
0
From Embeds
0
Number of Embeds
3
Actions
Shares
0
Downloads
16
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Php apache vs iis By Hafedh Yahmadi

  1. 1. palais descongrèsTunis8 et 9 février2012
  2. 2. PHP / APACHE & MICROSOFTYahmadi Hafedh – DPE Microsoft Tunisie
  3. 3. Agenda1. PHP for Windows  Qu’est ce que PHP ?  Que peut Faire PHP ?  Windows IIS avec PHP.  Demo2. Web Server (IIS & Apache)3. IIS features in details4. Case Study + demo5. PHP on the Cloud6. Conclusion
  4. 4. Introduction11 PHP For Windows Titre
  5. 5. Qu’est ce que PHP? What is PHP? History of PHP  PHP stands for "PHP  Created by Rasmus Lerdorf in Hypertext Preprocessor” 1995 for tracking access to  An embedded scripting his resume language for HTML like ASP  Originally a set of Perl scripts or JSP known as the “Personal  A language that combines Home Page” tools elements of Perl, C, and Java  Rewritten in C with database functionality
  6. 6. PHP is used by 77.2% of all the websites whose server-side programming language we know. PHP 77.2% This Table shows the percentages of ASP.NET 21.7% websites using various versions of PHP. Java 4.1% Version 5 94% ColdFusion 1.2% Version 4 06% Perl 1.0% Ruby 0.6% Version 3 Less than 0.1% Python 0.3% Version 6 Less than 0.1% W3Techs.com, 6 Dec 2011 W3Techs.com, 6 Dec 2011
  7. 7. PHP Language Basics The Script Tags The Script Tags (cont.)  All PHP code is contained in  <script language=“PHP"> one of several script tags: // Some code here </script>  <? // Some code  ASP-style tags ?>  Introduced in 3.0;  <?php <% // Some code here // Some code here ?> %>
  8. 8. Que peut Faire PHP ? 1. Sites Web et applications Cest lutilisation la plus Web (script côté serveur) traditionnelle. 2. Scripts en ligne de Ecrire des scripts PHP et commande lexécuter en ligne de 3. Ecrire Applications à commande (Cron) interface graphique PHP-GTK (GUI)
  9. 9. PHP on Linux and Windows(Portability OS, WebServer, OOP Protocol, BD) , Code Portability Code Portability  The obvious: don’t use Unix or Windows specific functions  if( ereg("WIN", PHP_OS) )  Create a reusable module for file { system differences, for example: $ApachePath = • if( PHP_OS == "Linux" ) “C:/Program Files/Apache { Group/Apache”; $ConfigPath = "/var/www/conf"; $ConfigPath = $DataPath = ”$ApachePath/htdocs/conf"; "/var/www/data"; $DataPath = } "$ApachePath/htdocs/data"; }
  10. 10. DEMO Donwload PHPonWindows&SQLServerTrainingKit fromhttp://www.microsoft.com/download/en/details.aspx?id=8887 PHP Installer from : http://Windows.php.net
  11. 11. PHP For WindowsDurant des decencies Apache Foundation etMicrosoft dominent les servers web shares21 Web Server (IIS & Apache) Titre
  12. 12. Internet Information Server IIS 3.0 in option in Windows NT 4.0 IIS 5.0 was included in Windows 2000 in both server and Desktop IIS 5.1 part of XP Windows Server 2003 includes the new IIS 6.0 Windows Server 2008 (R2) includes IIS7.5
  13. 13. APACHE Overview Free web server. Often combined with Linux, MySQL, and PHP to make the LAMP stack. First released in 1995. Modular architecture. Built using an open source development model. Commercial friendly open-source license. Current stable Version is 2.2.22 which was released in 31 January 2012
  14. 14. IIS 6 Overview IIS 6.0 – A Solid Foundation  Proven Scalability and Stability  Shipped with Windows  Used by many major sites Server 2003 and companies such as MySpace.com, Match.com,  Proven Security US Bank, USA Today,  Significant reduction in Allstate, Continental Airlines attack surface compared and others.  Significant increase in to previous releases reliability of hosted web sites compared to IIS 5.0.  A solid trusted foundation for IIS 7.0
  15. 15. IIS 7 Overview IIS7 Overview Features Benefits Create Reduced Attack Modular and Extensible Streamlined Surface Servers Integrated with .NET Improved Security Easier to Manage Extend/Modify Agile Administration Fast Diagnostics IIS Features Built in Request Tracing
  16. 16. PHP For Windows31 IIS Features in details Titre
  17. 17. Questions“Which of the two platforms (IIS and Apache) “Is IIS or Apache more innovative?” is more secure?” “Which is easier to manage?” “Is IIS or Apache easier to troubleshoot?” “Is Apache or IIS easier to manage?” “Does Apache support more applications?” “Which web server is more reliable?” “Does IIS or Apache have the lower TCO?” “Is Apache the best platform for PHP “Which is more modular, IIS or Apache?” Applications?”
  18. 18. Security IIS 7.0 Security IIS / Security Development  Minimal Surface Area Lifecycle  Automatic Site / Application Automatic Update Patching Sandboxing  Anonymous User Account Security Tracking – Secunia Changes  URL Authorization  Built in Request Filtering  Integrated Active Directory Authorization
  19. 19. Management IIS 7.0 Manageability  Centralized Web Farm Configuration  Streamlined and Focused Administration Tool  Remote Administration Tool  Command Line Administration  Rapid Troubleshooting and Limited Downtime
  20. 20. Performance / Scalability IIS 7.0  Enterprise Level Performance Performance/Scalability  “Match.com runs IIS 7.0 with 30 million page views daily.”  Leaner Web Servers  “PlentyOffFish.com gets 1.2  Server Core billion page views a month.” “WS2008 and IIS 7.0 allow  Static and Dynamic  www.microsoft.com to Compression process 122 million more  Output Caching requests at the same CPU Improvements level – compared to IIS 6.0”  “MySpace.com runs IIS 7.0 with 23 billion page views a month.”
  21. 21. Reliability / Modularity IIS 7.0 Reliability IIS 7.0 Modularity  Proven and Trusted Platform  Server functionality is split  54% of the Fortune 1000 into 40 modules rely on IIS 7.0  Only 10 modules installed  Rapid diagnostics tools to by default troubleshoot any concerns  Modules and a Generic quickly Pipeline  Failed Request Tracing  Extensibility  Runtime State and Control API.
  22. 22. Innovation IIS 7.0 Innovation  IIS 7.0 Admin Pack  URL Rewrite Module (Technical Preview)  PowerShell Provider for IIS  Remote Manager – IIS 7 UI for Down-level Clients  Web Playlists
  23. 23. Troubleshooting IIS 7.0 Troubleshooting  Failed Request Tracing  Detailed Error Messages  Allows for custom  Verbose Error Messages failure criteria per URL  Persist Failure Log Files  Suggests Causes and Solutions beyond process lifetime  Common Usages  Details include configuration sections  Request take too in question, modules in long use, page, etc.  Request Error (completes but with error code)
  24. 24. Application Support IIS 7.0 Application Support  Built-in FastCGI support for  Extensible, modular architecture Open Source frameworks – add, remove or replace any built-in module such as PHP and Ruby.  Enhanced ASP .NET integration  Strong integration with other including unified configuration, Enterprise Products such as HTTP runtime and SharePoint administration tools  Caching support (kernel and  Extensive Support for user) for all types of dynamic Streaming Media content
  25. 25. TCO IIS 7.0 - Cost of  Less Expensive Ownership Administrator Resources  Rapid Troubleshooting and to Maintain Minimized Downtime  Delegated Control to Minimized Surface Area  Site Owners  Isolation and Sandboxing  Strong Microsoft  Scalable Multi-Tenant Hosting Support Resources
  26. 26. PHP Applications IIS 7.0 and PHP Support  Host on Minimal / Headless  Consolidate .NET and PHP Server with Server Core applications on a single server  Consolidate Web and Other Server  Powerful Media Serving Management Frameworks to a  Microsoft Supported Solution single platform  Better Web Platform Management
  27. 27. Summary IIS 7.0 has: This leads to a Web  A Modular and Extensible Platform that is: Architecture  Deep integration with .NET  Streamlined Applications  Easy to extend  Improved Security  To Manage  Agile Administration  Quick to Troubleshoot  Built in Troubleshooting Tools such as Request Tracing  Highly Secure
  28. 28. PHP For Windows41 Case Study + demo Titre
  29. 29. Windows Azure Platform + PHP51 PHP ON The Cloud Titre
  30. 30. Introducing the Windows Azure Platform
  31. 31. Types of Clouds You manage Private Infrastructure Platform (On-Premise) (as a Service) (as a Service) You manage Applications Applications Applications Runtimes Runtimes Runtimes Security & Integration Security & Integration Security & IntegrationYou manage Managed by vendor Databases Databases Databases Servers Servers Servers Managed by vendo Virtualization Virtualization Virtualization Server HW Server HW Server HW Storage Storage Storage Networking Networking Networking
  32. 32. Types of Clouds Private Infrastructure Platform(On-Premise) (as a Service) (as a Service)
  33. 33. Windows Azure for Application Developers SDK Portal Hosted Service Storage Develop Deploy Run
  34. 34. Windows Azure Compute Roles Role Code Configuration
  35. 35. Web vs. Worker RoleWeb Role Worker RoleIIS Host System Host Your Code Your Code
  36. 36. Sample Application Architecturehttp://yourapp.cloudapp.net
  37. 37. Running PHP in WindowsSDK for PHP @ http://phpazure.codeplex.com  How to Do It PHP Balancer  Host in Web role (like .NET) Load Web Role VI P Instance 1  Supply PHP runtime  Point to runtime via FastCGI PHP configuration in Web Role Instance 2  Web.config  Web.roleconfig
  38. 38. This is all you need! HelloCloudPHP ServiceDefinition.csdef Make sure you ServiceConfiguration.cscfg change your php.ini WebRole to use relative paths! web.roleconfig web.config php index.php <your php application> etc...
  39. 39. PHP with SQL Azure  SQL Server Driver for PHP @ http://sqlsrvphp.codeplex.com/  Supports PHP access to SQL Azure  Features  Choose between SQL Server and SQL Azure by changing connection string  Use from on-premises or in Windows Azure
  40. 40. Lastly, Microsoft can help your company! BizSpark WebsiteSpark  www.bizspark.com  www.websitespark.com  For startups  For companies that build web sites and  Less than 3 years old applications for their customers  Less than USD 1M in annual revenue  Less than 10 employees  Must make software product or service  You get a bunch of free stuff (software,  You get a bunch of free stuff (software, support, visibility) support, visibility)  No Windows Azure usage  Free Windows Azure usage (up to a unfortunately… certain limit)
  41. 41. MERCIE1 ND Titre

×