CakePhp 3:找不到服务器php [英] CakePhp 3 : server php not found

查看:73
本文介绍了CakePhp 3:找不到服务器php的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试cakephp v3进行测试,因此我已经用composer安装cake,并且无法按照教程的要求启动服务器。



当我在app文件夹中执行 bin / cake服务器时,得到以下响应:

  bin / cake:第39行:exec:找不到php 

我尝试使用./

有关信息,我在计算机上擦拭了垃圾,对bin的授权是rwxr-xr-x。



有什么解决方法的想法吗?



感谢您的帮助

解决方案

您可能需要将PHP目录添加到路径中。在命令行上(例如,在批处理文件中),如下所示:

  SET PATH =%PATH%; C :\yourwamp\path\php 

如果有疑问,则该目录包含php.exe。


i'm trying cakephp v3 for a test, so i have install cake with composer, and i can't launch the server as requested by the tutorial.

When i do bin/cake server in the app folder, i get this response:

bin/cake: line 39: exec: php not found

I tried with ./bin/cake but it's the same.

For information, i have wamp on my computer and the authorization for bin are rwxr-xr-x.

Any idea on how fix it?

Thanks for your help

解决方案

You may need to add the PHP directory to your path. On the command line (e.g. in a batch file), it would look like this:

SET PATH=%PATH%;C:\your\wamp\path\php

if in doubt, it's the directory containing the php.exe.

这篇关于CakePhp 3:找不到服务器php的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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