doupeng8494 2014-08-13 14:11
浏览 38
已采纳

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

I am trying to use the new gcloud app engine commands (https://developers.google.com/cloud/sdk/gcloud-app) 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/php_runtime.py", line 224, in new_instance self._runtime_config_getter().application_root) File "/home/arthur/google-cloud-sdk/platform/google_appengine/google/appengine/tools/devappserver2/php_runtime.py", 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 dev_appserver.py directly I don't have an issue.

  • 写回答

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 dev_appserver.py to run your PHP modules and use the --php_executable_path flag to point to your installed PHP runtime.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥15 基于卷积神经网络的声纹识别
  • ¥15 Python中的request,如何使用ssr节点,通过代理requests网页。本人在泰国,需要用大陆ip才能玩网页游戏,合法合规。
  • ¥100 为什么这个恒流源电路不能恒流?
  • ¥15 有偿求跨组件数据流路径图
  • ¥15 写一个方法checkPerson,入参实体类Person,出参布尔值
  • ¥15 我想咨询一下路面纹理三维点云数据处理的一些问题,上传的坐标文件里是怎么对无序点进行编号的,以及xy坐标在处理的时候是进行整体模型分片处理的吗
  • ¥15 CSAPPattacklab
  • ¥15 一直显示正在等待HID—ISP
  • ¥15 Python turtle 画图
  • ¥15 stm32开发clion时遇到的编译问题