当我尝试将我的PHP应用程序部署到Google App Engine时,为什么我突然出现了400个错误?

前端之家收集整理的这篇文章主要介绍了当我尝试将我的PHP应用程序部署到Google App Engine时,为什么我突然出现了400个错误?前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
运行deploy命令:
appcfg.py update ./appengine-project

我开始看到这个错误

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 ---

我在本地运行PHP 5.5.而且我几天前就部署了我的应用程序,没有问题.

This Google Groups post here让我整理出来

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

runtime: PHP

至:

runtime: PHP55

之后,部署成功了.

原文链接:https://www.f2er.com/php/139939.html

猜你在找的PHP相关文章