在Google App Engine中升级PHP [英] Upgrading PHP in Google App Engine

查看:96
本文介绍了在Google App Engine中升级PHP的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用PHP 5.5 不再受到积极支持,并且安全支持将在几个月后终止认为升级可能是个好主意.我使用GAE,我认为这就像更改一样简单

With PHP 5.5 no longer being actively supported and security support ending in a few months I thought it might be a good idea to upgrade. I use GAE and I thought this would be as simple as changing

runtime: php55

在应用程序的app.yaml文件中

runtime: php56

但是我得到了错误

更新模块[默认] ...-错误:(gcloud.preview.app.deploy)服务器用代码[400]响应:

Updating module [default]...-ERROR: (gcloud.preview.app.deploy) Server responded with code [400]:

错误请求的HTTP状态异常400.

Bad Request Unexpected HTTP status 400.

无效的运行时或当前用户无权使用它.

Invalid runtime or the current user is not authorized to use it.

我已经搜索过Google的文档,但似乎无法弄清楚如何指定其他版本的PHP.

I have searched Google's documentation, but I can't seem to figure out how to specify another version of PHP.

推荐答案

当前仅支持PHP 5.5.

Only PHP 5.5 is supported currently.

如果要使用5.6或更高版本,请考虑托管VM(具有自定义运行时).

If you want to use 5.6 or above, consider Managed VMs (with a custom runtime).

值得一提的是,托管虚拟机当前避免了不同的野兽",并且不具有与AppEngine相同的功能,支持或特性.

Worth noting that Managed VMs are currently avert different "beast" and do not have the same features, support or characteristics as AppEngine.

https://cloud.google.com/appengine/docs/managed-vms /

这篇关于在Google App Engine中升级PHP的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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