How to change php version (runtime) in App Engine on Google Cloud Platform?

3.1k views Asked by At

I created an application in App Engine on Google Cloud Platform. It uses PHP 5.5 by default. I can see it in app.yaml:

runtime: php55
api_version: 1

How can I change to php 7.2? I haven't found any information in google documentation on that.

1

There are 1 answers

0
YaguraStation On BEST ANSWER

PHP 7.2 is currently Beta in App Engine Standard. So use the directive

runtime: php72

See: https://cloud.google.com/appengine/docs/standard/php7/runtime