Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Configure PHP and PostgreSQL on Windows

Tags:

php

postgresql

I'm installing PHP, Apache and PostgreSQL Manually

PHP and Apache now is connected, but PostgreSQL is not connected to PHP.

i test by using phpinfo();

i also configure in php.ini like this :

extension=php_pgsql.dll
extension=php_pdo_pgsql.dll

But why it's not work.

Thanks

like image 320
Ahmad Avatar asked Oct 28 '25 09:10

Ahmad


1 Answers

This tutorial worked for me:

The PHP extension will look for libpq.dll which is found of your PostgreSQL installation. The simple fix is to add the path than contains that file to your environment PATH.

like image 101
Igor Hrcek Avatar answered Oct 31 '25 00:10

Igor Hrcek



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!