Wampserver: problems to load php_pdo_pgsql and php_pgsql modules

大城市里の小女人 提交于 2019-12-01 06:06:10
Olivier RICCA

You have to load libpq.dll that comes with php, in the httpd.conf like this:

LoadFile "c:/wamp/bin/php/php5.4.3/libpq.dll"

It worked for me

Just copy the libpq.dll from your php directory to the apache bin directory.

  1. Install PostgreSQL

  2. Edit php.ini, uncomment “extension=php_pgsql.dll”. Check both the php.ini in the PHP folder and Apache folder

  3. Edit environment variables, add PostgreSQL /bin and /lib directories to Path. This solves the issue of php_pgsql.dll not loading due to it not being able to resolve dependencies.

  4. Done. PHP should now be able to communicate with PostgreSQL.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!