PHP Xampp Path Environment Variable Windows 10/11

To add PHP xampp environment variables in windows 11/10; Through this tutorial, i am going to show you how to set/add php xampp path in windows 10/11 environment variables.

Add XAMPP PHP to Environment Variables in Windows 10/11

Use the below given steps to set php xampp environment variables windows 10 / 11:

  • 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

Click on your windows search bar and search Environment Variables; as shown below image:

Step 2 – Environment Setting

Next, 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 image:

Step 4 – Add PHP Xampp Path

Add PHP xampp path in environment setting; as shown below image:

Step 5 – Restart Windows 10/11

Restart your windows 10/11 system.

Step 6 – Check PHP Version

Run the following command on command prompt to check php version:

php -v

Recommended PHP Tutorials

Leave a Comment