问题描述
使用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
但是我得到了错误
错误请求的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的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!