installphp.info


← Back to home page

Install PHP 7.0 on Windows 10

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

PHP 7.0 reached end of life on 03 Dec 2018 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.

Installing PHP 7.0 on Windows 10

Prerequisites

  • Windows 10 operating system
  • Administrative access to your computer
  • Stable internet connection
  • Web server software (e.g., Apache or IIS) installed (optional)

Installation

  1. Download PHP 7.0 from the official PHP website (php.net)
  2. Extract the downloaded ZIP file to a directory (e.g., C:\php7)
  3. Add the PHP directory to your system's PATH environment variable
  4. Rename php.ini-development to php.ini in the PHP directory
  5. Open php.ini and make necessary configurations (e.g., enable required extensions)
  6. If using a web server, configure it to work with PHP
  7. Restart your computer to ensure all changes take effect

Verification

  1. Open Command Prompt
  2. Type php -v and press Enter
  3. Verify that the output shows PHP version 7.0.x
  4. Create a PHP file (e.g., test.php) with the following content:
    <?php phpinfo(); ?>
  5. Save the file and run it through your web server or PHP's built-in server
  6. Check if the PHP info page displays correctly, showing version 7.0.x