简体   繁体   English

如何在Google Cloud Platform上的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. 我在Google Cloud Platform的App Engine中创建了一个应用程序。 It uses PHP 5.5 by default. 默认情况下,它使用PHP 5.5。 I can see it in app.yaml: 我可以在app.yaml中看到它:

runtime: php55
api_version: 1

How can I change to php 7.2? 如何更改为php 7.2? I haven't found any information in google documentation on that. 我尚未在Google文档中找到任何有关此的信息。

PHP 7.2 is currently Beta in App Engine Standard. PHP 7.2当前是App Engine Standard中的Beta。 So use the directive 所以使用指令

runtime: php72

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM