简体   繁体   English

yiic-无法识别php.exe命令

[英]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.

相关问题 php.exe无法识别为外部或内部命令 - php.exe is not recognized as an external or internal command php.exe无法识别:创建webapp - php.exe is not recognized:create webapp '“php.exe”'无法识别为内部或外部命令,可运行程序或批处理文件 - '“php.exe”' is not recognized as an internal or external command, operable program or batch file 'php.exe' 不是内部或外部命令,也不是可运行的程序或批处理文件 - ‘php.exe’ is not recognized as an internal or external command, operable program or batch file 更改了Windows PATH但仍然无法识别'php.exe'错误消息 - Changed Windows PATH but still getting 'php.exe is not recognized ' errormessage 当我在 Windows 上运行 composer 时,我收到一个错误“php.exe”不是内部或外部命令、可运行程序或批处理文件。 - When I run composer on Windows, I get an error of 'php.exe' is not recognized as an internal or external command, operable program or batch file.' Azure Webjobs和php.exe - Azure Webjobs and php.exe 我认为我的路径是正确的,但仍然给出相同的错误“ php.exe”,无法识别 - i think my path is correct but still gives the same error 'php.exe' not recognized PHP yiic命令的Cron作业 - Cron job for PHP yiic command 直接使用php.exe运行PHP脚本 - Running PHP scripts directly with php.exe
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM