Error :- php is not recognised as an internal or external command
27,418
PHP is not included in your PATH. Right click your My Computer, then Properties, Advanced System Settings, Environment Variables and then find PATH variable, add your PHP installation dir there. Close your previously launched CMDs, re-launch it, it should work now.
Author by
user1049769
Updated on July 09, 2022Comments
-
user1049769 almost 2 years
So this is my path I have:
C:\wamp\bin\php\php5.4.3
And my php.exe file is in that folder... I have tried to put:
C:\wamp\bin\php\php5.4.3;
C:\wamp\bin\php\php5.4.3\php.exe
C:\wamp\bin\php
C:\wamp\bin\php;
But none of is not working. I have no idea why its not working... Thanks
-
user1049769 over 11 yearsI added a new variable called php with the path: C:\wamp\bin\php\php5.4.3\
-
Vahid Farahmand over 11 yearsNo, double click PATH variable, then go to end of the line, insert ; (semi-colon) then paste C:\wamp\bin\php\php5.4.3
-
user1049769 over 11 yearsI tried did that also and still no luck... This is what it just before i paste, SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;C:\Program Files\TortoiseGit\bin;C:\Program Files (x86)\QuickTime\QTSystem\;C:\Program Files (x86)\Windows Live\Shared;C:\wamp\bin\php\php5.4.3
-
Vahid Farahmand over 11 years1) Close your CMDs, re-launch them. 2) Go to C:\wamp\bin\php\php5.4.3 folder, check if you find php.exe there. If not, try to locate php.exe file first, and put that path, not C:\wamp\bin\php\php5.4.3
-
user1049769 over 11 yearsI can find the php.exe file inside the C:\wamp\bin\php\php5.4.3 folder...
-
Vahid Farahmand over 11 yearsdid you tried to close and re-launch cmd windows? I mean command prompt windows.
-
user1049769 over 11 years