Apache的PHP 5.3 PostgreSQL驱动无法加载 [英] Apache php 5.3 postgreSQL driver could not be loaded

查看:144
本文介绍了Apache的PHP 5.3 PostgreSQL驱动无法加载的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经设置了XAMPP安装在Windows Server 2008 R2中包括:

I have set up a XAMPP installation on a windows server 2008 R2 that includes:


  • 的Apache 2

  • PHP 5.3.x

  • MySQL的(反正不使用)

然后,我已经安装了PostgreSQL 9.x的我在php.ini文件中相应注释掉了pgsql的PDO的dll,但是当我尝试连接到pgsql时,我得到驱动程序无法加载'。我坚持,因为我无法跨越修正得出的结论是在互联网上,我曾尝试加入pgsql的安装(bin和lib迪尔斯)到PATH environement系统的路径,但问题仍然存在。我也重新启动系统多次更改任何配置,以确保被保存后和应用,但仍然相同的结果。

Then I have installed PostGreSQL 9.x. I have uncommented the pgsql pdo dlls in the php.ini file accordingly but when I try to connect to pgsql I get 'driver could not be loaded'. I am stuck as I couldn't come across a fix to that on the internet, I have tried adding the path of the pgsql installation (bin and lib dirs) to the PATH environement system but the problem persists. I have also rebooted the system many times after changing any configuration to ensure it is saved and applied but still same outcome.

我已经阅读了nonclear交谈,这可能会涉及到版本,但未能进一步发现任何东西。

I have read in a nonclear conversation that this might be related to the versions but couldn't find anything further.

如果您已经成功地执行后,我会greateful如果你能为我提供一些见解。 (我愿意接受任何替代品,除了降级到以前的软件版本)。

If you have succeeded in performing the latter I would be greateful if you could provide me with some insight. (I am open to any alternatives except downgrading to older software versions).

非常感谢您的时间

推荐答案

通过手动安装的Apache2和PHP而不是通过XAMPP(或wampp)去修正。看来这些都是越野车,当涉及到最新的PHP版本和pgsql的PDO驱动。

Fixed by manually installing apache2 and php instead of going through xampp (or wampp). It seems those are buggy when it comes to the latest php version and pgsql pdo driver.

这篇关于Apache的PHP 5.3 PostgreSQL驱动无法加载的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆