简体   繁体   English

PDO Sqlsrv 未显示在 phpinfo 中 - Centos 7 PHP 7

[英]PDO Sqlsrv not showing in phpinfo - Centos 7 PHP 7

We installed the php_pdo_sqlsrv extension for centos 7, following the recommendations in:我们按照以下建议为 centos 7 安装了 php_pdo_sqlsrv 扩展:

https://www.microsoft.com/en-us/sql-server/developer-get-started/php/rhel/ https://www.microsoft.com/en-us/sql-server/developer-get-started/php/rhel/

We tested the connection via PDO directly from the command prompt, and everything works perfectly.我们直接在命令提示符下通过 PDO 测试了连接,一切正常。

When running phpinfo the extension is not recognized, resulting in errors when running the same scripts in the browser:运行 phpinfo 时无法识别扩展,导致在浏览器中运行相同脚本时出错:

模块

通过控制台测试连接

导航器中的模块

PHP 信息

信息扩展

Has anyone else had this same problem?有没有其他人遇到过同样的问题?

请删除php-fpm扩展并重新安装

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

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