installphp.info


← Back to home page

Install PHP 8.2 on Windows 11

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 Windows 11

Prerequisites

  • Windows 11 operating system
  • Administrative access to your computer
  • Stable internet connection
  • Web server (e.g., Apache, Nginx) installed (optional)

Installation

  1. Visit the official PHP website: https://windows.php.net/download/
  2. Download the PHP 8.2 ZIP package for Windows (x64 Non Thread Safe)
  3. Extract the ZIP file to a folder (e.g., C:\php)
  4. Rename the extracted folder to 'php'
  5. Add the PHP folder path to the Windows PATH environment variable:
    • Open System Properties
    • Click on "Environment Variables"
    • Under "System variables", find and edit "Path"
    • Click "New" and add the PHP folder path (e.g., C:\php)
    • Click "OK" to save changes
  6. Copy php.ini-development to php.ini in the PHP folder
  7. Open php.ini and uncomment necessary extensions by removing the semicolon (;) at the beginning of the line

Verification

  1. Open Command Prompt
  2. Type php -v and press Enter
  3. You should see the PHP version information, confirming successful installation
  4. To test PHP processing, create a file named info.php with the following content:
    <?php phpinfo(); ?>
  5. Save the file in your web server's document root
  6. Open a web browser and navigate to http://localhost/info.php
  7. If you see the PHP information page, the installation is complete and working correctly