[英]yiic - php.exe is not recognized command
I search for a lot of question here and in google also but still didnt get my answer. 我在这里和Google中搜索了很多问题,但仍然没有得到我的答案。
i try as you can see in image, i dont know where's the error 我尝试如您在图像中看到的,我不知道错误在哪里
My PHP
path as shown in image below, 我的
PHP
路径如下图所示,
Any help please 任何帮助请
Is the path to PHP's directory in your PATH
? PATH
是否有PHP目录的PATH
? If not you should add this. 如果没有,您应该添加它。
In your case I believe the path you need to append will be D:\\xampp\\php\\
. 在您的情况下,我相信您需要添加的路径将是
D:\\xampp\\php\\
。
To update your PATH
on Windows 7/8 you can simply right-click 'Computer', hit 'Properties', then 'Change Settings'. 要在Windows 7/8上更新
PATH
,您只需右键单击“计算机”,单击“属性”,然后单击“更改设置”。 In the 'Advanced' tab there is an 'Environment Variables button'. 在“高级”选项卡中,有一个“环境变量”按钮。 Scroll the 'System Variables' until you get to
Path
and simply append the path like so: 滚动“系统变量”,直到到达“
Path
然后像这样简单地添加路径:
;D:\xampp\php\
.. onto the end of the path. ..到路径的尽头。 OK out of everything and reopen
cmd
, your command should now work. 一切正常,然后重新打开
cmd
,您的命令现在应该可以使用了。
I also faced the same problem.
Error :- Path of the file is not set properly.
Step 1: Go to CMD.
Step 2: Then reach to your desired folder .For Ex:- cd c:/xampp/htdocs/yii/framework
Step 3: In CMD -> path C:\xampp\htdocs\yii\framework ; C:\xampp\php
Step 4: In CMD -> path
Step 5: Now Execute your desired command for yii in cmd -> yiic webapp yii_test
Work Done!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.