Hasith Magage
Hasith Magage

Reputation: 553

Error 400 : PHP 5.4 applications are prevented from being deployed to Google App Engine

This is my app.yaml file:

application: xxxxxxxxxxxxx
version: 1
runtime: php55
api_version: 1
threadsafe: true

handlers:

- url: /images
  static_dir: images

- url: /css
  static_dir: css

- url: /js
  static_dir: js

- url: /libraries
  static_dir: libraries

- url: /
  script: main.php

# Serve php scripts.
- url: /(.+\.php)$
  script: \1

This is the error I get:

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

Can somebody please tell me why I still get this error after changing runtime from php to php55 in app.yaml?

Upvotes: 3

Views: 1030

Answers (2)

Hasith Magage
Hasith Magage

Reputation: 553

PhpStorm plugin is still not compatible with deploying php55 apps. Deploying through Google App Engine Launcher works fine.

Upvotes: 2

Brian Kay Walker
Brian Kay Walker

Reputation: 121

You need to update your Google App Engine Launcher to 1.9.18 or higher. You can't use php55 with 1.9.17 (and I just updated to 1.9.20 and it is a bit different, uses your browser to log in).

Upvotes: 3

Related Questions