Friday, September 5, 2025
HomeLanguagesPHP Environment Variables Windows 10/11 Xampp

PHP Environment Variables Windows 10/11 Xampp

Set PHP environment variables windows 11/10 xampp; Through this tutorial, you will learn how to set or add PHP environment variables in windows 11/10 xampp.

How to Set PHP Path in Environment Variables Windows 11|10 Xampp

Follow the following steps and set php environment variables windows 10|11 xampp:

  • Step 1 – Open Windows 11/10 Environment Setting
  • Step 2 – Edit Environment Setting
  • Step 3 – Edit System Environment Variable Path
  • Step 4 – Add PHP Path
  • Step 5 – Restart Windows 11|10
  • Step 6 – Open Command Prompt and Check PHP Version

Step 1 – Open Windows 11/10 Environment Setting

First of all, visit your system bottom search bar and search Environment Variables; as shown below picture:

Step 2 – Environment Setting

Then Click on the environment variable setting; as shown below picture:

Step 3 – Edit System Environment Variable Path

Edit system environment variable path; as shown below picture:

Step 4 – Add PHP Xampp Path

Add/set PHP xampp path in environment setting; as shown below picture:

Note that; we have installed xampp in D directory.

Step 5 – Restart Windows 11|10

Restart your windows 11|10 system.

Step 6 – Open Command Prompt and Check PHP Version

Now, open your command prompt and run the following command to check php version:

php -v

Recommended PHP Tutorials

RELATED ARTICLES

Most Popular

Dominic
32265 POSTS0 COMMENTS
Milvus
81 POSTS0 COMMENTS
Nango Kala
6634 POSTS0 COMMENTS
Nicole Veronica
11801 POSTS0 COMMENTS
Nokonwaba Nkukhwana
11863 POSTS0 COMMENTS
Shaida Kate Naidoo
6752 POSTS0 COMMENTS
Ted Musemwa
7025 POSTS0 COMMENTS
Thapelo Manthata
6701 POSTS0 COMMENTS
Umr Jansen
6718 POSTS0 COMMENTS