CakePhp 3 : server php not found

不羁岁月 提交于 2019-12-11 21:17:10

问题


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


回答1:


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.



来源:https://stackoverflow.com/questions/32647044/cakephp-3-server-php-not-found

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!