在GCP App Engine上安装PHP扩展

问题描述 投票:0回答:1

我一直在搜索如何在Google Cloud的App Engine上向我的PHP运行时添加自定义扩展名sqlsrv。>>

[浏览完App Engine的文档后,我发现有预安装的模块和其他一些可以激活的模块(https://cloud.google.com/appengine/docs/standard/php/runtime#enabled_extensions]

但是,由于sqlsrv_connect扩展名不可用,并且我的代码库高度依赖它,因此我似乎找不到连接SQL Server实例的方法。https://www.php.net/manual/en/function.sqlsrv-connect.php

有人可以指导我如何在我的App Engine标准环境中启用此扩展程序吗?

error: Uncaught Error: Call to undefined function sqlsrv_connect()

我一直在研究如何在Google Cloud的App Engine上的PHP运行时中添加自定义extensionsqlsrv。浏览完App Engine上的文档后,我发现预先安装了...

php sql-server google-app-engine google-cloud-platform php-5.6
1个回答
0
投票

[我认为最好的方法是创建自己的自定义运行时,并使用Dockerfile在App Engine Flex上应用程序文件夹的根目录下创建deploy the Custom Runtime

© www.soinside.com 2019 - 2024. All rights reserved.