gpt4 book ai didi

php - GAE - php5.5 - PHP 运行时不可用

转载 作者:行者123 更新时间:2023-12-03 02:40:49 25 4
gpt4 key购买 nike

我尝试在本地运行 helloworld gae php 程序,但启动服务器时出现错误。

我的环境:

linux mint mate 17 php5.5 php-cgi5.5 python2.7.6 gae_php_1 .9.17

尝试在本地启动 gae 中的 Web 服务器时收到的错误信息:

INFO     2015-02-08 16:17:32,197 api_server.py:172] Starting API server at: http://localhost:54892
INFO 2015-02-08 16:17:32,201 dispatcher.py:186] Starting module "default" running at: http://localhost:8080
INFO 2015-02-08 16:17:32,202 admin_server.py:118] Starting admin server at: http://localhost:8000
ERROR 2015-02-08 16:17:33,204 php_runtime.py:227] The PHP runtime is not available
Traceback (most recent call last):
File "/mnt/star/program/gae/gae_php_1.9.17/google/appengine/tools/devappserver2/php_runtime.py", line 223, in new_instance
self._runtime_config_getter().application_root)
File "/mnt/star/program/gae/gae_php_1.9.17/google/appengine/tools/devappserver2/php_runtime.py", line 148, in _check_environment
'flag (%s) does not exist.' % php_executable_path)
_PHPBinaryError: The path specified with the --php_executable_path flag () does not exist.

有什么建议吗?

最佳答案

看起来您没有传递--php_executable_path(它显示为空字符串,这是默认值)。运行:

dev_appserver.py --php_executable_path=/usr/bin/php-cgi yourapp

因此可能更适合您。

关于php - GAE - php5.5 - PHP 运行时不可用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28396300/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com