Search code examples
phpgoogle-app-enginegoogle-cloud-platformversiongoogle-app-engine-php

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


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.


Solution

  • 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