I want to develop using a framework called Symfony but I do not have a Mac and I don't want to dual boot with Debian.
I tried virtual hosts via Virtual Box but it doesn't work. So I decided to stay on Windows.
So when the tutorial tells me to do
php lib/vendor/symfony/data/bin/check_configuration.php
i do in the windows cmd :
php lib\vendor\symfony\data\bin\check_configuration.php
and it tells me:
'php' is not recognized as an internal or external command
I use UwAmp (php 5.2.12 + mysql + apache) which is stored in
E:\logiciels\UwAmp\
inside I have bunch of files, but I guess that is important:
E:\logiciels\UwAmp\apache\php_5.2.11
How to make the cmd PHP in the windows cmd work properly?
If you have already installed Wampserver or Xamp, but you still get this error “PHP is not recognized as an internal or external command” in Command prompt or windows power shell, composer, etc. Try below method to solve this error. Just copy your php location on your Wamp or Xamp. On your Windows Start Menu, ‘search for Enviorment variables’
'php' is not recognized as an internal or external command I use UwAmp (php 5.2.12 + mysql + apache) which is stored in E:\logiciels\UwAmp\ inside I have bunch of files, but I guess that is important: E:\logiciels\UwAmp\apache\php_5.2.11 How to make the cmd PHP in the windows cmd work properly? phpwindowscmd Share Improve this question
Before executing php command through command line interface you need to add php directory to windows system variables path using a semicolon. Click on Start Menu => Right click on My Computer and select properties.
Step 1: Click on Start menu from windows Operating System and search for Environment Variables and then click on Environment Variables System variables – If we add a path in system variables then other system users also use the PHP though command line.
You need to add the path where the binary resides in to the PATH variable. You can do this on XP and Win 7 under the System -> User settings -> User variables
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With