我正试图将旧的Wordpress 3.7博客迁移到在完全修补的Windows Server 2012 R2版本上运行PHP 5.6.20的新的Web服务器。sqlsrv PHP扩展未正确加载或可供PHP使用
当我去/可湿性粉剂管理员/我得到以下错误:
Extension Not Loaded The sqlsrv PHP extension is not loaded properly or available for PHP to use.
Check your phpinfo Make sure it is loaded in your php ini file Turn on display_errors and display_startup_errors so you can detect issues with loading the module.
当我看着phpinfo()函数,我看到:
sqlsrv
sqlsrv support enabled
Directive Local Value Master Value
sqlsrv.ClientBufferMaxKBSize 10240 10240
sqlsrv.LogSeverity 0 0
sqlsrv.LogSubsystems 0 0
sqlsrv.WarningsReturnAsErrors On On
当我在PHP管理器中查看IIS显示php_sqlsrv.dll as Enabled
我记下的phpinfo()以下的值配置命令:
CSCRIPT/NOLOGO configure.js “--enable-快照生成”, “--enable-调试包”“ - “--with-pdo-mssql”“--without-pi3web”“--with-pdo-zts”“--disable-isapi”“--disable-nsapi”--without -mssql“ oci = c:\ php-sdk \ oracle \ x86 \ instantclient_12_1 \ sdk,shared“”--with-oci8-12c = c:\ php-sdk \ oracle \ x86 \ instantclient_12_1 \ sdk,shared“”--with- “--with-mcrypt = static”“--without-analyzer”“--enable-object-out-dir = ../obj /”“--enable-com-dotnet = shared” -with-pgo
我不确定是否有任何东西处理它或我如何改变这个价值?
的重要组成部分,是'--without-PDO,MSSQL ' - 你需要重新编译你的PHP。另外..为什么在Windows服务器上运行PHP?你甚至不能使用'php-fpm',你会受到网络服务器性能的限制。如果您有选择,请在* nix上运行它(我知道改变基础结构并非总是可行,所以我正在发表评论)。 – Mjh