Reputation: 1
I have installed Symphony 2 and everything is working. But when I have tried to execute the CMD command php app/console
to create a new bundle for my project, I got this error :
Run command : C:\Bitnami\wampstack-5.5.26-0\apache2\htdocs\Symfony> php app/console
Error : 'php' n?est pas reconnu en tant que commande interne ou externe, un programme exécutable ou un fichier de commandes"
Although, I have added the PHP directory to my System PATH like this :
C:\Bitnami\wampstack-5.5.26-0\php
(This php folder contains the php.exe)
and I tried "php -v" in my console but it doesn't work and I got the same error.
Also, I have checked If I have a folder called "app" which contains "console" in my Symfony project. I found it.
But the problem still resists. I have tried many times but in vain so really any would be appreciated.
Upvotes: 0
Views: 2143
Reputation: 55
1.Did you try to Run as Administrator Cmd? Also, from what i know(but i may be wrong) Symfony 3.0 is php bin/console not php app/console. However if php -v doesn't work in your project it is rather path case.
Upvotes: 0
Reputation: 4764
If the php -v
doesn't run correctly it's clearly the PATH issue.
If you are in Windows OS you can use the Rapid Environment Editor software for work with PATH windows variable easily.
For Sure that modification is good you must reboot your OS.
You can verify your PATH with this command for find php : echo %PATH%
Upvotes: 1