LoginSignup
4
4

More than 5 years have passed since last update.

PHPonGAE環境で突然アップロードできなくなった場合の対処方法

Posted at

環境

Google App Engine for PHP

問題

アップロードしようと、こんなエラーが発生する

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

PHP5.5でやれとのことらしい。

解決方法

PHP5.5を利用しても構わない場合

app.yaml
runtime: php

app.yaml
runtime: php55

実行時のコマンドのruntimeもphp55に

shell
/usr/bin/python /usr/local/google_appengine/appcfg.py --oauth2 -R --runtime=php55 update /Users/konata/PhpstormProjects/myProject/

PHPStormでアップロードしている人は、PHPStormが設定しているGAEアップロード用のコマンドに「--runtime=php」が含まれてしまっているので、
直近は、PHPStormのGAEアップロード機能は使えない思う
なので、上記のコマンドをTerminal等から実行し、アップロードしてください。

PHP5.5を利用できない場合

以下URLからGoogleにGAEでPHP5.5より前の環境を利用したい旨を申請する。
http://goo.gl/qjKEuk.

参考

4
4
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
4