Installing Php Windows

  1. Php 7 Windows
  2. Installing Php Windows Server 2012 R2
  1. Note: PHP is installed and running on a Standard Windows installation by default. If your server was created with a Minimum installation, you will need to install PHP by following the steps in this article.
  2. Install and Configure MySQL for PHP Applications on IIS 7. This article provides guidance for installing MySQL manually. Install MySQL Server on Windows Server.
  3. How to Install and Configure PHP 5 to Run with Apache on Windows by Christopher Heng, thesitewizard.com Many web developers want to run Apache and PHP on their own computer since it allows them to easily test their scripts and programs before they put them 'live' on the Internet.

Apr 04, 2016  In this tutorial, you’ll learn how you can make your own WAMP server by installing Apache, PHP and MySQL server manually on Windows 10. Learn to install Apache, PHP and MYSQL on Windows 10 Machine step by step. The Windows Installer version can get a complete PHP environment up and running, but the installation of extensions can be confusing. By default, no extensions are installed, and this can adversely affect the usefulness of the PHP installation. Install PHP7 and Composer on Windows 10 PHP7 is a general purpose scripting language well suited for web development. Composer is the defacto package manager for PHP7.

Unlock the full course today

Join today to access over 13,000 courses taught by industry experts or purchase this course individually.

  • Course details

    This course describes how to install and configure Apache HTTP Server, MySQL database server, and PHP, known collectively as the AMP stack, on a local development computer. David Gassner covers different installation approaches, including installing the components separately on Windows, macOS, and Linux and installing the prepackaged WampServer and MAMP bundles. Plus, learn how to troubleshoot port conflicts and other AMP-related issues.

    Skills covered in this course

    Related courses

  • Welcome

    - [Instructor] The most recent version of PHP, as of the time of this recording, is PHP 7.1. You can get the binaries for PHP for Microsoft Windows from this webpage at windows.php.net/download. There are multiple packages available. There are versions for 32 and 64 bit Windows, and there are versions that are marked as thread safe and non-thread safe. When you're working with Apache, you should always use the thread safe downloads, and you should use the version for your copy of Windows. I'm working with 64 bit Windows, so I'm using this package marked as VC14 x64 Thread Safe. And I've already downloaded that as a zip to my desktop. Just as with Apache, you need to make sure that you've installed the Windows C++ redistributable version 14 for Visual Studio 15. Now, I already checked that when I installed Apache, so I know it's in place. So my next step then is to extract my PHP files. The PHP files don't have a top level folder, so I'm going to extract the zip file and create a top…

  • Practice while you learn with exercise files

    Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
    Download the exercise files for this course. Get started with a free trial today.
  • Download courses and learn on the go

    Watch courses on your mobile device without an internet connection. Download courses using your iOS or Android LinkedIn Learning app.

    Download on the App StoreGet it on Google Play
    Watch this course anytime, anywhere. Get started with a free trial today.

Course Contents

Php 7 Windows

-->

by Tali Smith

The fastest and easiest way to install PHP on Internet Information Services (IIS) is by using the Microsoft® Web Platform Installer (Web PI). Web PI completely automates setting up IIS, FastCGI, and the latest version of PHP from the php.net Web site. With Web PI, you can navigate to the 'Web Platform' tab and select 'PHP' under 'Framework and Runtimes' customize link. Alternately, use the instructions that follow as guidance for installing PHP with Windows® Installer or using a compressed (Zip) file installation.

Windows

Installing Php Windows Server 2012 R2

There are two builds for each PHP version: one is thread-safe, and one is not (referred to as the non-thread-safe [NTS] version). The thread-safe version is designed for environments where the Web server core can keep the PHP engine in memory, running multiple treads of execution for different Web requests simultaneously. The architecture of IIS and the FastCGI extension provide an isolation model that keeps requests separate, removing the need for a thread-safe version. The NTS version does not have any of the code that allows PHP to manage multiple threads. As a result, there is a performance improvement on IIS when using the NTS version when compared to the tread-safe version because the NTS version avoids unnecessary thread-safety checks (FastCGI ensures a single-threaded execution environment).

Install PHP

There are two main ways to install PHP on a Windows®-based computer: download the Windows Installer or use the Windows Zip file from the PHP Web site. Either method will get PHP working, but both have some extra steps that are needed to make PHP work well.

Windows Installer

The Windows Installer version can get a complete PHP environment up and running, but the installation of extensions can be confusing. By default, no extensions are installed, and this can adversely affect the usefulness of the PHP installation. Alternately, all of the extensions can be installed; this results in an unstable system because some of the extensions can conflict with others. It is generally easier to use the Zip file installation.

Zip File Installation

To use the Zip file installation, follow the instructions in Using FastCGI to Host PHP Applications on IIS 7.0 and Above. The Zip file installation installs many of the extensions that are available for the Windows Installer version; however, none of the extensions are enabled until their entries in the Php.ini file are set up.

  1. Download the latest non-thread-safe Zip file package with binaries of PHP. Under Windows Binaries, click on the most current PHP non-thread-safe Zip package to download the PHP files.
  2. Unpack the files to a directory of your choice (for example, C:PHP) on your IIS server.
  3. Rename the Php.ini-recommended to php.ini.
  4. Open the Php.ini file in a text editor, then uncomment and modify settings as follows:

    • Set fastcgi.impersonate = 1.
      FastCGI under IIS supports the ability to impersonate security tokens of the calling client. This allows IIS to define the security context that the request runs under.
    • Set cgi.fix_pathinfo = 0
      The cgi.fix_pathinfo provides PATH_INFO/PATH_TRANSLATED support for Common Gateway Interface (CGI). Setting this to 1 will cause PHP CGI to fix its paths to conform to the specification.
    • Set cgi.force_redirect = 0.
    • Set open_basedir to point to a folder or network path where the content of the Web site(s) is located.
    • Set extension_dir to point to a location where PHP extensions reside. For PHP 5.2.X, this is typically extension_dir = './ext'.
    • Set error_log='C:php_errors.log'
      This can help with troubleshooting.
    • Enable the required PHP extension by un-commenting corresponding lines. More information follows in the section, Extensions.


      Figure 1 Windows extensions

  5. Click on Start, Settings, Control Panel, and then double-click on the System icon (using the class view).
  6. Click on the Advanced system settings link in the left column.
  7. From the System Properties window, click on the Advanced tab, and then click on the Environment Variables button at the bottom.
  8. Select the Path variable from the System Variables section, and then click on Edit. Add: c:php Windows xp home edition ulcpc hp iso to usb. to your system path.


    Figure 2: Edit System Variable

  9. Click OK until you have exited the System Properties window.
  10. Start IIS Manager by clicking on Start, Programs, Administrative Tools, and then Internet Information Services (IIS) Manager.
  11. From the IIS Manager, click on the hostname of your server in the Connections panel on the left.
  12. Double-click on the Handler Mappings icon.


    Figure 3: Internet Information Services (IIS) Manager

    Add hp scanjet g3010. Find support and troubleshooting info including software, drivers, and manuals for your HP Scanjet G3010 Photo Scanner. Download the latest driver, firmware, and software for your HP Scanjet G3010 Photo Scanner.This is HP's official website to download drivers free of cost for your HP Computing and Printing products for Windows and Mac operating system.

  13. From the Handler MappingsActions panel, click on Add Module Mapping.


    Figure 4: Handler Mappings

  14. Type the following information into the appropriate text boxes, and then click OK.

    • Request path: *.php
    • Module : FastCGImodule
    • Executable: C:phpphp-cgi.exe
    • Name: FastCGI


    Figure 5: Add Script Map

  15. Click OK, and then c lick Yes.
  16. In the left panel, click on your server's hostname, and then double-click on the Default Document icon.
  17. From the Actions panel on the right, click Add.
  18. Enter index.php as the new default document name, and then click OK.
  19. Enter default.php as the new default document name, and then click OK.
  20. In the left panel, click on your server's hostname.
  21. In the Actions panel on the right, click Restart.
  22. Create a new text document, and save it as c:inetpubwwwrootphpinfo.php with the following content:

  23. You should now see the PHP information page at http://localhost/phpinfo.php.


    Figure 6: PHP information page

Extensions

It is important to determine which extensions are needed by the applications that will be running and then to limit the installed extensions to only those. For a typical open-source application installation, for example, the following extensions are installed:

  • Database Extensions — Most open-source applications that use MySQL for a database engine use either the php_mysql or the php_mysqli extensions. For new development work, either of these extensions work well, or consider using the PDO versions of the MySQL driver (PDO is a PHP extension providing aUsing FastCGI to Host PHP Applications on IIS 7.0 and Above' by Ruslan Yakushev, published on December 5, 2007.

    See also

    • PHP on Windows Training Kit.
    • Installing PHP on Windows Server 2008.
    • PHP on IIS7.
    • Deploying IIS 7.5 + FASTCGI + PHP on Server Core.