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


- 如何使用 Google API 在团队云端硬盘中创建文件夹? 2022-01-01
- 如何从数据库中获取数据以在 laravel 中查看页面? 2022-01-01
- Laravel 5:Model.php 中的 MassAssignmentException 2021-01-01
- openssl_digest vs hash vs hash_hmac?盐与盐的区别HMAC? 2022-01-01
- 使用 GD 和 libjpeg 支持编译 PHP 2022-01-01
- 覆盖 Magento 社区模块控制器的问题 2022-01-01
- Oracle 即时客户端 DYLD_LIBRARY_PATH 错误 2022-01-01
- PHP foreach() 与数组中的数组? 2022-01-01
- PHP - if 语句中的倒序 2021-01-01
- 如何在 Symfony2 中正确使用 webSockets 2021-01-01