简体   繁体   中英

Php can't find PostgreSQL library allthough it exists in the specified folder

I try to install postgresql server in combination with Xampp's components.

First i installed PostgreSQL with his installer.

Then i've changed in the php.ini

extension=php_pgsql.dll

as next i wanted to restart my apache server but i get the error:

PHP Startup: Unable to load dynamic library "C:\\xampp\\php\\ext\\php_pgsql.dll". The specified module couldn't be found.

But there exists the file C:\\xampp\\php\\ext\\php_pgsql.dll in the right location...

Any ideas, how i can fix this problem?

Thank you very much

On a Windows server, configured with Apache, adding the following line to httpd.conf to load libpq.dll can solve the problem:

LoadFile "C:/Program Files/PostgreSQL/8.4/bin/libpq.dll"

使用适当版本的php_pgsql.dll - 为您当前的php解析器编译的版本。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM