简体   繁体   English

当我尝试将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?

Running the deploy command: 运行deploy命令:

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. 我在本地运行PHP 5.5。 And I deployed my application just a couple days ago without issue. 我只是几天前就部署了我的应用程序,没有出现任何问题。

This Google Groups post here got me sorted out. 这篇Google网上论坛的帖子让我理清了。

In my app.yaml file, I just needed to change this line: 在我的app.yaml文件中,我只需要更改以下行:

runtime: php

to: 至:

runtime: php55

After that, the deploy succeeded. 之后,部署成功。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 为什么我尝试删除帖子时出现此错误? - Why am i getting this error when i try to delete a post? 如何将我的PHP应用程序部署到Google App Engine? - How to deploy my PHP application to Google App Engine? 从Angular2应用发布到PHP时为什么会出现404错误? - Why am I getting a 404 error when I post from an Angular2 app to PHP? 尝试访问CodeIgniter应用程序时为什么会出现404错误? - Why am I getting a 404 error when I attemp to access my CodeIgniter app? 为什么我的代码出现PHP致命错误? - Why am I getting a PHP Fatal error with my code? 为什么我收到HTTP 400错误请求错误? - Why am I getting a HTTP 400 bad request error? 为什么当我尝试在 php 文件中使用 curl 时会被禁止 - why am i getting Forbidden when i try to use curl in php file 为什么我在使用 ajax 时收到 400(错误请求)错误? - why am i getting a 400 (bad request) error when using ajax? 为什么当我的php网页位于在线Web服务器上时,却无法发送会话Cookie错误? - why am i getting the cannot send session cookie error on my php webpage when it is in an online webserver? 使用Android Volley发布到我的php时,为什么会出现foreach错误? - why am I getting foreach error when posting with Android Volley to my php?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM