I intalled correctly PostgreSQL and is running ok, as I can access the DB via the admin tool.
I’m trying to configure PHP 5.2.13 to load postgres extension, but failed so far, I don’t get any information in PHP error log or Apache error log. So far I’ve done:
- Include PostgreSQL bin on windows path
- Copy php_pgsql.dll from my php/ext folder into system32 folder (also tryied other folders in the system path)
- Include the lines extension=php_pgsql.dll in php.ini and/or LoadFile “C:/Program Files/PostgreSQL/9.0/bin/libpq.dll” in httpd.conf, both together and separately, all of the combinations resulting in Apache unable to restart without any log message.
I followed these instructions and others from php.net, but failed so char.
Any ideas or help?
Thank you
php_pgsql.dll have to be in the ext folder of your PHP installation.
After you put the file there and enabled in in php.ini (the way you did) you have to restart the web server. After that you have to see PostreSQL extension in your phpinfo()