To install PHP on Windows, you have several options, with Winget being the most modern and straightforward method:

Using Winget (Recommended for Windows 10/11)

  • Open Command Prompt or PowerShell as Administrator.

  • Run the following command to install PHP (e.g., PHP 8.4):

    winget install PHP.PHP.8.4
  • This downloads, extracts, and adds PHP to your system PATH, allowing you to run php -v in any terminal.

Using Pre-Packaged Bundles (Easiest for Beginners)

  • XAMPP or WAMP: These bundles include PHP, Apache, and MySQL. Download from:

    • https://www.apachefriends.org (XAMPP)

    • https://www.wampserver.com (WAMP)

  • Install, start the services, and test with a phpinfo() file.

Manual Installation (For Advanced Users)

  1. Go to https://windows.php.net/download/ and download the non-thread-safe ZIP version for your system (x64 or x86).

  2. Extract the files to a folder (e.g., C:\php).

  3. Add C:\php to your System Environment Variables > Path.

  4. Open a new Command Prompt and run:

    php -v

    to verify installation.

Tip: Use Winget for automatic updates and clean management. Use XAMPP/WAMP if you want a full local web server stack.

Did you get your version of PHP from? http://windows.php.net/download/ I've just downloaded the ZIP from there and it contained php-win.exe

Check you've not accidentally downloaded the php source

Answer from Jez Emery on Stack Overflow
🌐
PHP
php.net › downloads.php
PHP: Downloads
Check the supported versions page for more information on the support lifetime of each version of PHP.
🌐
Microsoft Learn
learn.microsoft.com › en-us › previous-versions › windows › it-pro › windows-server-2012-r2-and-2012 › hh994592(v=ws.11)
Step 1: Install IIS and PHP | Microsoft Learn
August 30, 2016 - To keep this procedure simple, ... in Step 2: Configure PHP Settings. Open your browser to Windows for PHP Download Page and download the PHP 5.3 non-thread-safe zip package....
Discussions

How can I install php on Windows - Stack Overflow
I want to install PHP on Windows 10 Pro, I've tried both downloading PHP 7.1 and 7.0.14 from the official website, but for some reason I can't find php.exe in the folder I download (there seems to ... More on stackoverflow.com
🌐 stackoverflow.com
PHP installation on windows - Stack Overflow
This post should be on the front page of windows.php.net. Nice work! 2014-05-15T07:36:46.877Z+00:00 ... Excellent! I didn't realize it, but the PHP Manager was installed already on my Windows Server 2012 by the Web Platform Installer when I chose to install PHP. More on stackoverflow.com
🌐 stackoverflow.com
how to install php in windows 11
This browser is no longer supported · Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support More on learn.microsoft.com
🌐 learn.microsoft.com
1
1
how to install ExifTool for php on windows 10?
Looks like you need to get the PHP wrapper if you want to use ExifTool with PHP but it's still in production so may not work fully. https://github.com/romainneutron/PHPExiftool More on reddit.com
🌐 r/PHPhelp
2
1
March 2, 2021
🌐
Edureka
edureka.co › blog › how-to-install-php-on-windows
How to Install PHP on Windows | Step by Step guide | Edureka
December 18, 2023 - Open control panel and search for ‘variable’. After that click on ‘Edit the system environment variables’. After that click on ‘Environment Variables…’ after that select ‘Path’ from system variables, after selecting ‘Path’ click on ‘Edit…’, Now we need to add a path hence we click on ‘New’ and then add ‘C:PHP7’. Once you’ve added the path you are done with the installation process.
🌐
PHP
windows.php.net › download
PHP For Windows: Binaries and sources Releases
PHP 7 provides full 64-bit support. The x64 builds of PHP 7 support native 64-bit integers, LFS, 64-bit memory_limit and much more. x64 builds are recommended (almost all Windows installations support x64).
🌐
Envato Tuts+
code.tutsplus.com › home › php › php scripts
How to Install PHP on Windows | Envato Tuts+
July 16, 2020 - You’ll find .zip files available for both x86 and x64 systems, so make sure to download the correct one as per your Windows OS architecture. Also, you’ll have to choose either to download the non-thread-safe or thread-safe version of PHP. If you’re planning to run PHP as an Apache module, the thread-safe version is recommended. However, if you want to run PHP as a CGI module, you can choose either of them! Next, you need to extract the .zip file in the directory where you want to install PHP.
Find elsewhere
🌐
Medium
medium.com › @m.c.zawadzki › php-set-up-tutorial-55c828f16781
PHP — Set up tutorial. Guide to PHP Installation on Windows… | by Michał Zawadzki | Medium
November 22, 2024 - The following PHP installation methods will be discussed: ... So let’s get started! In the case of the Windows operating system, I will focus on presenting probably the two most commonly used methods for installing PHP: manual installation and installation via XAMPP.
🌐
GeeksforGeeks
geeksforgeeks.org › php › how-to-install-php-in-windows-10
How to install PHP in Windows 10? - GeeksforGeeks
September 9, 2024 - Step 11: After opening System, Variable New window appears, and click on "Environment Variables..." Step 12: Now go to the "System variables" Path option and double click on Path. Step 13: Next screen will open and click on the "New" button. Step 14: After New Paste the address we copy from program files to new and click on Enter button. Step 15: Now Click on the OK button. Step 16: Click on the OK button. Step 17: Click on OK for saving changes. Step 18: Now your PHP is installed on your computer.
🌐
MonoVM
monovm.com › 🪟 windows 🪟 › how to install php on windows 10
How To Install PHP on Windows 10
October 6, 2025 - If you don't have a web server installed, you can download and install one from the official Apache or Microsoft website. To configure PHP on Windows 10 for optimal performance, you need to adjust the PHP.ini file settings.
🌐
Rackspace
docs.rackspace.com › docs › install-php-on-windows-server-2012-and-later
Install PHP on Windows Server 2012 and Later
This article describes how to install, test, and configure PHP on Microsoft® Windows Server® 2012 and later. The article uses the Microsoft Web Platform Installer (WebPI) for installation and does not cover installing PHP from the source. Prerequisites Before installing PHP on Windows Server ...
🌐
SitePoint
sitepoint.com › blog › installation › how to install php on windows 10 and 11 (with apache & mysql)
How to Install PHP on Windows 10 and 11 (with Apache & MySQL)
November 6, 2024 - The guide provides detailed steps for installing Apache and PHP directly on Windows, including downloading and extracting files, configuring php.ini, adding PHP to the PATH environment variable, configuring PHP as an Apache module, and testing a PHP file.
🌐
Tek Eye
tekeye.uk › windows › install-php-on-windows
Install PHP on Windows with Web Platform Installer | Tek Eye
Running PHP on Windows is a useful way of testing PHP apps locally before deploying them to a web server. How do you install PHP on Windows? This article shows you probably the quickest way to install PHP Windows, PHP can be installed on Windows using Microsoft's Web Platform Installer (WebPI).
Top answer
1 of 10
29

First: go to www.php.net and click on downloads, or go directly to
http://www.php.net/downloads.php
http://windows.php.net/download

Choose the latest PHP x.y.z (Current stable) For IIS, download the non-threadsafe zip file

  1. Extract the downloaded zip file to c:\PHP

  2. Download PHP-Manager for IIS 7 (that's an IIS-controlpanel-extension, also works for IIS 8) from https://github.com/phpmanager/phpmanager/releases‎ (make sure you choose the right bitness (32 vs. 64)

  3. Open the IIS management console (inetmgr.exe)

  4. Double-click PHP-Manager and click on "register new PHP installation"
    (note to self: never remove the PHP directory, otherwise "rien ne va plus")

  5. Choose php-cgi.exe and click ok
  6. Click on "Configure error reporting". Check "Development machine" and click apply, then click "back to main page"
  7. Go to C:\inetpub\wwwroot and create a new textfile called "phpinfo" and put this content into it :

<?php phpinfo(); // Show all information, defaults to INFO_ALL ?>

Create a new file called hello.php in c:\inetpub\wwroot with this content
<?php echo "Hello World !" ; ?>

10. open cmd.exe and execute "iisreset"

  1. Use your browser of choice, and navigate to those pages:
    http://localhost/phpinfo.php
    http://localhost/helloworld.php

Now IIS is (should be) serving PHP.

2 of 10
4

As far as I can see there are no MSI installers for PHP 5.4.x available from http://windows.php.net/

Additionally, since PHP 5.3 there are no MSI installers available that work together with the binaries from apache.org and you have to use the binaries from http://www.apachelounge.com/

🌐
Oreate AI
oreateai.com › blog › how-do-i-install-php-on-windows › 82722b3918488c86dd76b6ddf16def6c
How Do I Install PHP on Windows - Oreate AI Blog
January 7, 2026 - Head over to the official PHP website (php.net) and navigate to the Downloads section. Here, you’ll see different versions available for various operating systems. For Windows users, choose either the Thread Safe or Non-Thread Safe version ...
🌐
W3Schools
w3schools.com › php › php_install.asp
PHP Installation
Just create some .php files, place them in your web directory, and the server will automatically parse them for you. You do not need to compile anything or install any extra tools.
🌐
PHP.Watch
php.watch › articles › winget-install-php
How to install PHP on Windows using Winget • PHP.Watch
December 26, 2024 - Using the CLI winget tool, it is now possible to install PHP along with dependencies with a single command. This article explains how to search, download, install, update, and remove Windows PHP binaries using winget.
🌐
Microsoft Learn
learn.microsoft.com › en-us › answers › questions › 1185069 › how-to-install-php-in-windows-11
how to install php in windows 11 - Microsoft Q&A
Windows for business | Windows Client for IT Pros | User experience | Other · Sign in to follow · 0 comments No comments Report a concern · I have the same question I have the same question 1 {count} vote · Sign in to comment · Add comment · Sort by: Most helpful · Most helpful Newest Oldest · Olaf Helper • · 47,616 Reputation points · 2023-02-28T13:21:12.3566667+00:00 · See https://www.sitepoint.com/how-to-install-php-on-windows/ 0 comments No comments Report a concern ·