installphp.info


← Back to home page

Install PHP 8.3 on Server 2022

This version of PHP is actively supported.

Good news! PHP 8.3 is being actively supported through 31 Dec 2025. 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 2027, at which point PHP 8.3 will be considered "end-of-life".

Installing PHP 8.3 on Server 2022

Prerequisites

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

Installation

  1. Download PHP 8.3 for Windows from the official PHP website
  2. Extract the downloaded ZIP file to a directory (e.g., C:\PHP8.3)
  3. Rename php.ini-production to php.ini in the PHP directory
  4. Edit php.ini and uncomment necessary extensions
  5. Add the PHP directory to the system PATH environment variable
  6. Install the necessary Visual C++ Redistributable packages
  7. Configure IIS to handle PHP requests:
    • Open IIS Manager
    • Select "Handler Mappings"
    • Add a new module mapping for PHP
  8. Restart the IIS service

Verification

  1. Open a command prompt and type php -v to check the installed PHP version
  2. Create a test PHP file (e.g., info.php) with the following content:
    <?php phpinfo(); ?>
  3. Place the file in the IIS web root directory
  4. Open a web browser and navigate to http://localhost/info.php
  5. Verify that the PHP info page is displayed correctly