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
相关文章