简体   繁体   English

php.exe无法识别为外部或内部命令

[英]php.exe is not recognized as an external or internal command

I am trying for create a new project in yii.When I execute the command "yiic webapp c:\\wamp\\www\\testyii" shows the below error 我正在尝试在yii中创建一个新项目。执行命令"yiic webapp c:\\wamp\\www\\testyii"显示以下错误

"php.exe is not recognized as an internal or external command". “无法将php.exe识别为内部或外部命令”。

My environment variable path is "%path%;C:\\wamp\\bin\\php\\php5.4.16" . 我的环境变量路径为"%path%;C:\\wamp\\bin\\php\\php5.4.16"

How do I solve this issue ? 我该如何解决这个问题?

set environment variable path like follow.... 设置环境变量路径,如下所示。

path =>...;C:\Projects\wamp\php;C:\Projects\wamp\yii\yiiframework;

and also include the YII framework path in your path variable 并在路径变量中包含YII框架路径

更改文件路径,例如:

"%PHP_COMMAND%" == "" set PHP_COMMAND=E:\xampp\php\php.exe

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 '“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 上运行 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.' yiic-无法识别php.exe命令 - yiic - php.exe is not recognized command php.exe无法识别:创建webapp - php.exe is not recognized:create webapp php无法识别为内部或外部命令 - php is not recognized as an internal or external command PHP 在命令提示符中未被识别为内部或外部命令 - PHP is not recognized as an internal or external command in command prompt 'php'在终端中不被识别为内部或外部命令 - 'php' is not recognized as an internal or external command in terminal php 未被识别为使用 xampp 的内部或外部命令 - php is not recognized as an internal or external command using xampp PHP:'java'不被识别为内部或外部命令 - PHP: 'java' is not recognized as an internal or external command
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM