Jump to content

PostgreSQL 8.3 , PHP on Windows


Recommended Posts

Hi,

 

 

I have PHP working on Apache web server on Windows.

 

I installed Postrgre for windows and can access it and create databases from pgAdminIII and command line.

 

The problem : PHP is not able to access Postgre server.

Error msg: Uncaught exception 'ADODB_Exception' with message 'postgres7 error: [-1: Missing extension for postgres] in CONNECT(localhost, '*****', '****', v01)

 

Steps I've taken:

1. Enabled php_pgsql.dll file in php.ini file (by removing semi colon)

2. Downloaded php_pgsql.dll file and placed it on ext dir

(that is the dir lcoation for extensions in php.ini)

 

I am not able to determine what could be the issue.

 

Any help is greatly appreciated.

 

Thanks,

Vik

Link to comment
https://forums.phpfreaks.com/topic/124493-postgresql-83-php-on-windows/
Share on other sites

Make sure the extension has been loaded by running phpinfo() -  scroll down the page and look for a PostrGreSQL subheadng.

 

Also ensure the extension you have downloaded is of the same build as the version of PHP you have installed. Extensions for PHP5.2.5 will not work with PHP5.2.6.

 

I'd recommend you go to php.net and downloaded the zipped binaries package, extract the contents of the zip over your existing installation.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.