php.exe is not recognized:create webapp(php.exe 无法识别:创建 webapp)
问题描述
我正在尝试新安装的 yii 框架,并尝试通过命令行编译我的第一个 web 应用程序.当我运行 yiic webapp ../testdrive
时,我在控制台中收到此错误:
I am toying with my new install of yii framework, and trying to compile my first webapp through the command line. when I run yiic webapp ../testdrive
i receive this error in my console:
"php.exe" is not recognized as an internal or external command, operable program or batch file
我需要编辑我的 php.ini 文件吗?
Do I need to edit my php.ini file?
我目前在 Windows 7 上的 WAMP 网络服务器上运行
I am currently running on WAMP Webserver on Windows 7
推荐答案
你需要在你的 php.exe
中的 `yiiframeworkyiic.bat
You need to add complete path in your php.exe
in `yiiframeworkyiic.bat
例如在我的情况下是如果
for example in my case it is if
"%PHP_COMMAND%" == "" 设置 PHP_COMMAND=C:wampinphpphp5.3.8php.exe
这篇关于php.exe 无法识别:创建 webapp的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:php.exe 无法识别:创建 webapp


基础教程推荐
- Doctrine 2 - 在多对多关系中记录更改 2022-01-01
- 如何在 XAMPP 上启用 mysqli? 2021-01-01
- HTTP 与 FTP 上传 2021-01-01
- 找不到类“AppHttpControllersDB",我也无法使用新模型 2022-01-01
- 如何在 Symfony 和 Doctrine 中实现多对多和一对多? 2022-01-01
- 使用 PDO 转义列名 2021-01-01
- 在 yii2 中迁移时出现异常“找不到驱动程序" 2022-01-01
- PHP 守护进程/worker 环境 2022-01-01
- phpmyadmin 错误“#1062 - 密钥 1 的重复条目‘1’" 2022-01-01
- 在 CakePHP 2.0 中使用 Html Helper 时未定义的变量 2021-01-01