installphp.info


← Back to home page

Install PHP 7.3 on Server 2019

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

PHP 7.3 reached end of life on 06 Dec 2021 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.

PHP 7.3 Installation 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.3 from the official PHP website
  2. Extract the downloaded ZIP file to C:\PHP7.3
  3. Rename php.ini-production to php.ini
  4. Edit php.ini and set appropriate values for your environment
  5. Open IIS Manager and navigate to the server node
  6. Open Handler Mappings
  7. Click "Add Module Mapping" in the Actions pane
  8. Set the following values:
    • Request path: *.php
    • Module: FastCgiModule
    • Executable: C:\PHP7.3\php-cgi.exe
    • Name: PHP 7.3
  9. Click OK and then click Yes to create a FastCGI application
  10. Restart the IIS service

Verification

  1. Create a new file named phpinfo.php in your web root directory
  2. Add the following content 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 shown is 7.3.x
  6. Review the loaded modules and configuration settings