Google app engine php executable path not found

廉价感情. 提交于 2020-01-10 04:09:26

问题


Followed the steps given on the official google app engine page for installing the sdk for php->

https://developers.google.com/appengine/docs/php/gettingstarted/helloworld

but I get this error in my browser on opening localhost.

The path specified with the --php_executable_path flag () does not exist.

How to set it ? Installed on Ubuntu.


回答1:


When starting dev appserver via the script one can pass in --php_executable_path pointing to the location of your php executable. The reason for the error is that it was unable to find php looking in the path and such. See documentation for example.

$ google_appengine/dev_appserver.py --php_executable_path=/opt/local/bin/php-cgi54 path/to/your/app



回答2:


Install php5-cgi:

sudo apt-get install php5-cgi

Run app:

dev_appserver.py --php_executable_path=/usr/bin/php-cgi path/to/your/app



回答3:


UPDATE: On linux use sudo apt-get install php-cgi dev_appserver.py --php_executable_path=/usr/bin/php-cgi app.yaml



来源:https://stackoverflow.com/questions/20618871/google-app-engine-php-executable-path-not-found

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