installphp.info


← Back to home page

Install PHP 8.2 on Windows 11

Warning! This version of PHP is outdated.

PHP 8.2 reached end of active support on 31 Dec 2024. As of today, PHP 8.2 is only receiving security related updates through 31 Dec 2026, at which point it will be considered end-of-life and receive no further updates. It's strongly recommended to upgrade to the latest version of PHP before then.

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