PHP5, Apache2 and Postgres under Windows XP

Questions about the MySQL, PostgreSQL, and most other databases, as well as using it with PHP can be asked here.

Moderator: General Moderators

Post Reply
gregambrose
Forum Newbie
Posts: 12
Joined: Thu Aug 07, 2003 11:01 pm
Location: Sydney, Australia

PHP5, Apache2 and Postgres under Windows XP

Post by gregambrose »

My development pc and laptop run PHP5 Apache2 and MySQL without problem. I've been asked to do some work with Postgresql but can't find any way of getting PHP5 and Postgresql to work under Windows. Does anyone know how to do this?
User avatar
The Phoenix
Forum Contributor
Posts: 294
Joined: Fri Oct 06, 2006 8:12 pm

Post by The Phoenix »

Get postgresql for windows, then get the php zip install for windows. Inside that zip, you'll find php_pgsql.dll , which needs to go in the extensions directory.

Uncomment php_pgsql.dll in the php.ini, restart, start postgresql, and you should be golden.
Post Reply