Reputation: 173
Currently, PHP runtime on Google App Engine is available for every developer. However, it is PHP version 5.5.xx. Even though Google Cloud team have introduced a ManagedVMs, which allows developer to flexibly set up and customize runtime environment. Anyway, there is no evidence of customizable PHP in ManageVMs. The only way for now is moving to Compute Engine or Container Engine instead.
I want to figure out the Google Cloud team's road map about the future of PHP in Google App Engine where allow developer to focus on building the scalable application in more fast, more secure, more advanced syntax such as PHP7.
Upvotes: 6
Views: 5155
Reputation: 6841
You can run PHP 7 on Google App Engine flexible environment. The PHP support is still early (beta) and the documentation and samples are still being developed. Alternatively, you can use a custom runtime on the flexible environment and run your own dockerfile of your choosing.
Upvotes: 3
Reputation: 717
I've got PHP7 for Google App Engine up and running quite quickly. Follow this tutorial and see the Git
https://cloud.google.com/appengine/docs/flexible/php/quickstart https://github.com/GoogleCloudPlatform/getting-started-php
Basically it's a composer.json file where you specify your PHP version and a app.yaml file
runtime: php
env: flex
runtime_config:
document_root: public
Google App Engine creates a Docker container(s) from your project and deploys them to the Flexible Environment on GAE.
Upvotes: 2