简体   繁体   中英

When I try to deploy my PHP application to Google App Engine, why am I suddenly getting a 400 error?

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM