installphp.info


← Back to home page

Install PHP 7.0 on Server 2019

Warning! This PHP version is end-of-life!

PHP 7.0 reached end of life on 03 Dec 2018 and is no longer being updated. It's strongly recommended to upgrade to the latest version as soon as possible. You can read the official PHP migration guide here.

Installing PHP 7.0 on Server 2019

Prerequisites

  • Windows Server 2019 installed and updated
  • Administrative access to the server
  • Internet connection for downloading PHP
  • IIS (Internet Information Services) role installed

Installation

  1. Download PHP 7.0 from the official PHP website
  2. Extract the downloaded ZIP file to C:\PHP7
  3. Rename php.ini-production to php.ini
  4. Open IIS Manager
  5. Install CGI feature if not already installed
  6. Add handler mapping for PHP in IIS
  7. Configure FastCGI settings for PHP
  8. Add C:\PHP7 to system PATH
  9. Restart IIS

Verification

  1. Create a new file named phpinfo.php in your web root directory
  2. Add the following code to phpinfo.php:
    <?php phpinfo(); ?>
  3. Open a web browser and navigate to http://localhost/phpinfo.php
  4. Verify that the PHP information page is displayed
  5. Check that the PHP version is 7.0.x
  6. Confirm that the necessary extensions are loaded