Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

WAMP: "'php' is not recognized as an internal or external command operable program or batch file" although adding PATH

Tags:

php

cmd

wamp

when I run PHP in CMD I get this error msg:

'php' is not recognized as an internal or external command operable program or batch file

the path was already added and I followed this tutorial:

http://perials.com/install-composer-on-windows-and-wamp/

C:\Program Files (x86)\Lenovo\FusionEngine;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Lenovo\Motion Control\;C:\Program Files (x86)\Common Files\lenovo\easyplussdk\bin;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\; C:\wamp\bin\php\php5.5.12; C:\wamp\www; C:\wamp\www\AKP\examples\AdWords\Auth;C:\Program Files (x86)\Skype\Phone\;C:\ProgramData\ComposerSetup\bin

enter image description here

I created the file suggested in this post: Installing Composer globally for laravel usage?

and nothing.

Most of the posts I ran into solved the problem with adding the path - which doesn't solve mine.

I am currently using WAMP on Windows 10.

What can be the problem?

like image 944
Imnotapotato Avatar asked Mar 16 '16 10:03

Imnotapotato


1 Answers

PHP is not included in your PATH. Right click you're 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.

like image 82
Rashi Goyal Avatar answered Oct 14 '22 23:10

Rashi Goyal