installphp.info


← Back to home page

Install PHP 8.2 on Server 2019

This version of PHP is actively supported.

Good news! PHP 8.2 is being actively supported through 31 Dec 2024. After that point, it's advisable to upgrade to the latest version, since the PHP team will only offer security-related support until 31 Dec 2026, at which point PHP 8.2 will be considered "end-of-life".

Installing PHP 8.2 on Server 2019

Prerequisites

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

Installation

  1. Download PHP 8.2 for Windows from the official PHP website
  2. Extract the downloaded ZIP file to a directory (e.g., C:\PHP)
  3. Rename the php.ini-production file to php.ini
  4. Open IIS Manager and navigate to your website
  5. Double-click on "Handler Mappings"
  6. Click "Add Module Mapping" in the Actions pane
  7. Set the following values:
    • Request path: *.php
    • Module: FastCgiModule
    • Executable: C:\PHP\php-cgi.exe
    • Name: PHP_via_FastCGI
  8. Click OK and accept the prompt to create a FastCGI application
  9. Restart the IIS service

Verification

  1. Create a new file named phpinfo.php in your website's root directory
  2. Add the following content to the file:
    <?php phpinfo(); ?>
  3. Open a web browser and navigate to http://your-server-ip/phpinfo.php
  4. If PHP is installed correctly, you should see the PHP information page
  5. Verify that the PHP version displayed is 8.2.x