2014-08-13 14:11
浏览 38

在Linux上运行时,“gcloud preview app”的PHP运行时问题

I am trying to use the new gcloud app engine commands ( on a debian linux machine.

My app has a PHP module and when I try to run:

gcloud preview app run .

I get the following error:

ERROR: The PHP runtime is not available Traceback (most recent call last): File "/home/arthur/google-cloud-sdk/platform/google_appengine/google/appengine/tools/devappserver2/", line 224, in new_instance self._runtime_config_getter().application_root) File "/home/arthur/google-cloud-sdk/platform/google_appengine/google/appengine/tools/devappserver2/", line 149, in _check_environment 'flag (%s) does not exist.' % php_executable_path) _PHPBinaryError: The path specified with the --php_executable_path flag () does not exist.

The problem is the gcloud preview app command does not recognize the --php_executable_path flag. So currently there is no way to use this command on Linux.

Please note that if I use directly I don't have an issue.

图片转代码服务由CSDN问答提供 功能建议

我正在尝试使用新的gcloud app引擎命令( \ n




错误:PHP运行时不可用Traceback(最近一次调用 last):File “/ home / arthur / google-cloud-sdk / platform / google_appengine / google / appengine / tools / devappserver2 /“, 第224行,在new_instance self._runtime_config_getter()。application_root)文件”/ home / arthur /google-cloud-sdk/platform/google_appengine/google/appengine/tools/devappserver2/",n第149行,在_check_environment '标志(%s)中不存在。 %php_executable_path) _PHPBinaryError:使用--php_executable_path标志()指定的路径不存在。

问题是gcloud预览应用程序命令无法识别 -php_executable_path标志。 目前在Linux上无法使用此命令。

请注意,如果我直接使用,则没有问题。< / p>

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 邀请回答

2条回答 默认 最新

  • doucao1888 2014-08-14 20:01

    The PHP executable is not distributed with the SDK on Linux, so you need to install it yourself. However, gcloud currently does not allow you to configure the location of where to find the php runtime. We are going to be releasing updates to gcloud in the near future specifically to address PHP compatibility (and this will certainly be covered). In the mean time, you can use to run your PHP modules and use the --php_executable_path flag to point to your installed PHP runtime.

    点赞 评论
  • donglu1472 2014-08-13 17:57
    1. The php-cgi executable should exist in the google-cloud-sdk/bin/bootstrapping/ directory, where google-cloud-sdk is your installation directory, is that file there?

    2. Make sure you have PHP component of the Cloud SDK installed, if you do gcloud components list, is App Engine SDK for Python and PHP listed as installed, under Individual Components?

    点赞 评论

相关推荐 更多相似问题