2013-10-02 13:43
浏览 58

PGSQL未加载到IIS 5.3下的PHP 5.3 Windows中

I know there are other questions about problems with PGSQL not loading, but I haven't found a solution that works for me and directly addresses an IIS setup under Windows (obviously). Using PostgreSQL 8.4.

Since I am a complete novice in PHP (only trying to get MantisBT to run) I find this extremely hard to debug/research.

I've set the path to both PostgreSQL bin folder and the PHP folders (v5.3 subfolder first and the PHP root after that). I've checked that libpq.dll is present in all three of these folders and I've tried copying the libpq.dll from the PostgreSQL folder to both PHP folders. I've made sure php.ini contains


in both PHP folders (root as well as v5.3).

What more to check/try/examine?

图片转代码服务由CSDN问答提供 功能建议

我知道有关PGSQL无法加载的问题还有其他问题,但我还没有找到适合的解决方案 我直接解决了Windows下的IIS设置(显然)。 使用PostgreSQL 8.4。


我已经设置了PostgreSQL bin文件夹和PHP文件夹的路径(首先是v5.3子文件夹,之后是PHP根目录)。 我已经检查过所有这三个文件夹中都存在libpq.dll,我尝试将libpq.dll从PostgreSQL文件夹复制到两个PHP文件夹中。 我已经确定php.ini包含

  extension = php_pdo_pgsql.dll 
extension = php_pgsql.dll 



  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 邀请回答

1条回答 默认 最新

  • dongluo3962 2013-10-03 08:03

    Tried phpinfo() again, and it reports

    Loaded Configuration File = C:\Program Files (x86)\PHP\v5.3\php.ini

    which is correct and contains extension=php_pdo_pgsql.dll and extension=php_pgsql.dll. As for "the dll's are in the right place" (@Richard), I have problems making sure exactly what dll:s are needed and where they should be located, but I have in C:\Program Files (x86)\PHP\v5.3\ext\ both php_pdo_pgsql.dll (version and php_pgsql.dll (version

    I read about a dependency on libpq.dll and this is present in C:\Program Files (x86)\PHP\v5.3\. Early in my "debugging" I copied the new libpq.dll (version from PostgreSQL to that folder, having read somewhere that it might solve the problem. I now tried reverting to the old version ( that shipped with PHP, and VOILA!!!! Suddenly phpinfo() says it has loaded both pdo and non-pdo pgsql modules.

    MantisBT now loads the login screen at least. Whew!

    点赞 评论

相关推荐 更多相似问题