当我尝试将我的PHP应用程序部署到Google App Engine时,为什么我突然收到400错误? [英] When I try to deploy my PHP application to Google App Engine, why am I suddenly getting a 400 error?

查看:70
本文介绍了当我尝试将我的PHP应用程序部署到Google App Engine时,为什么我突然收到400错误?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

运行部署命令:

  appcfg.py更新./appengine-project 
  

错误400:---开始服务器输出---
PHP 5.4应用程序无法部署到Google App
任何SDK版本的引擎,包括旧版本的引擎。如果您需要
继续部署PHP 5.4应用程序以获得兼容性原因
,则可以通过访问http://goo.gl/qjKEuk请求将您的应用程序列入PHP 5.4
的白名单。
--- end server output ---

我在本地运行PHP 5.5。

解决方案

此Google网上论坛帖子在这里让我整理出来。

在我的 app.yaml 文件中,我只需要改变这一行:

 运行时:php 

到:

 运行时:php55 

之后,部署成功。 / p>

Running the deploy command:

appcfg.py update ./appengine-project

I started seeing this error:

Error 400: --- begin server output ---
PHP 5.4 applications are prevented from being deployed to Google App
Engine from any version of the SDK, including older ones. If you need
to continue to deploy PHP 5.4 applications for compatibility reasons, 
you can request that your application be whitelisted for PHP 5.4
deployment by visiting http://goo.gl/qjKEuk.
--- end server output ---

I am running PHP 5.5 locally. And I deployed my application just a couple days ago without issue.

解决方案

This Google Groups post here got me sorted out.

In my app.yaml file, I just needed to change this line:

runtime: php

to:

runtime: php55

After that, the deploy succeeded.

这篇关于当我尝试将我的PHP应用程序部署到Google App Engine时,为什么我突然收到400错误?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆