How to Set PHP Globally on Windows (Add PHP to PATH Environment Variable)

Опубликовано: 26 Июнь 2026
на канале: Prompt Studio
13
0

How to Set PHP Globally on Windows (Add PHP to PATH Environment Variable)

In this video, I’ll show you how to set PHP globally on Windows by adding PHP to the system PATH environment variable.

What you'll learn:

✅ Find your PHP installation directory
✅ Add PHP to Windows Environment Variables
✅ Verify PHP installation using Command Prompt
✅ Fix "php is not recognized as an internal or external command" error

After completing this setup, you'll be able to run:

```bash
php -v
```

from any location in Command Prompt, PowerShell, VS Code Terminal, or Windows Terminal.

This tutorial works with PHP installations from XAMPP, WAMP, Laragon, and standalone PHP setups.

#PHP #Windows #Programming #WebDevelopment #XAMPP #Laragon #WAMP #PHPDeveloper #Coding #DeveloperTips #WindowsTutorial #LearnPHP #EnvironmentVariables #PATHVariable #TechTutorial

php windows
set php globally windows
add php to path windows
php environment variables
php command not recognized
xampp php path
wamp php path
laragon php path
php setup windows
php tutorial
php for beginners
windows command prompt
php cli setup
web development
learn php
php path variable
windows php tutorial
php installation windows
developer tools
coding tutorial