This is a common error that you can come across while creating a new yii application using 'yiic' command tool. If you get this error, follow the below steps and your error will be fixed.
You just need to add complete path of your php.exe in yii/framework/yiic.bat
yiic.bat is the MS-DOS batch file.
For example in my case, it will be
if "%PHP_COMMAND%" == "" set PHP_COMMAND=C:\xampp\php\php.exe
This solution will work only for yii.
If you want to make it for all i.e make it possible to run php.exe in any command line instance, then you will have to add path of php.exe in your PATH environment variables.
You just need to add complete path of your php.exe in yii/framework/yiic.bat
yiic.bat is the MS-DOS batch file.
For example in my case, it will be
if "%PHP_COMMAND%" == "" set PHP_COMMAND=C:\xampp\php\php.exe
This solution will work only for yii.
If you want to make it for all i.e make it possible to run php.exe in any command line instance, then you will have to add path of php.exe in your PATH environment variables.
No comments:
Post a Comment