无法识别php.exe:创建webapp [英] php.exe is not recognized:create webapp

查看:115
本文介绍了无法识别php.exe:创建webapp的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在玩我的新安装的yii框架,并试图通过命令行编译我的第一个webapp。当我运行 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 Webserver上运行

I am currently running on WAMP Webserver on Windows 7

推荐答案

您需要在您的 php.exe 中添加完整路径``yii \framework\yiic.bat

You need to add complete path in your php.exe in `yii\framework\yiic.bat

例如在我的例子中是

%PHP_COMMAND%== set PHP_COMMAND = C:\wamp\bin\php\php5.3.8\ pp.exe

这篇关于无法识别php.exe:创建webapp的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆