When I run php -v
I get 'php' is not recognized as an internal or external command, operable program or batch file.
. Problem is that I set an environment variable, so im not sure what else could be wrong. I have WAMP installed and have three php versions on it 8.0.26
, 8.1.13
and 8.2.0
.
Environment variable path:
C:\wamp64\bin\php\php8.0.26
This is where I added the variable:
https://gyazo.com/7453dd9bb6dd4b44927c8a33916fd0dc
Result of echo %Path%
C:\Users\[MyName]>echo %Path%
C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Program Files\Microsoft SQL Server\130\Tools\Binn\;C:\Program Files\dotnet\;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\170\Tools\Binn\;C:\Program Files (x86)\Microsoft SQL Server\150\Tools\Binn\;C:\Program Files\Microsoft SQL Server\150\Tools\Binn\;C:\Program Files\Microsoft SQL Server\150\DTS\Binn\;C:\Program Files (x86)\Microsoft SQL Server\150\DTS\Binn\;C:\Program Files\Azure Data Studio\bin;C:\Program Files\nodejs\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files (x86)\dotnet\;C:\ProgramData\ComposerSetup\bin;C:\Program Files\Docker\Docker\resources\bin;C:\ProgramData\DockerDesktop\version-bin;C:\Program Files\Git\cmd;C:\Program Files\PowerShell\7\;C:\wamp64\bin\php\php8.0.26;C:\Users\[MyName]\AppData\Local\Microsoft\WindowsApps;C:\Users\[MyName]\AppData\Local\Programs\Microsoft VS Code\bin;C:\Users\[MyName]\.dotnet\tools;C:\Program Files\Azure Data Studio\bin;C:\Users\[MyName]\AppData\Roaming\npm;C:\Program Files\heroku\bin;C:\Users\[MyName]\AppData\Roaming\Composer\vendor\bin;C:\Users\[MyName]\AppData\Local\GitHubDesktop\bin;
result of dir C:\wamp64\bin\php\php8.0.26
C:\Users\[MyName]>dir C:\wamp64\bin\php\php8.0.26
The system cannot find the path specified.