Wampserver: problems to load php_pdo_pgsql and php_pgsql modules

后端 未结 3 1614
悲哀的现实
悲哀的现实 2021-01-13 03:10

Wampserver has a problem when loading php_pdo_pgsql and php_pgsql modules. After searching on several forums the solution is to download from http://www.bmedon.net/download.

相关标签:
3条回答
  • 2021-01-13 03:53
    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.

    0 讨论(0)
  • 2021-01-13 03:57

    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

    0 讨论(0)
  • 2021-01-13 04:07

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

    0 讨论(0)
提交回复
热议问题