This is a discussion on PHP 5 & Postgres on Windows within the alt.comp.lang.php forums, part of the PHP Programming Forums category; I am trying something new - and failing so far. I can get PHP and MySQL working on Apache 2 on ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
I am trying something new - and failing so far.
I can get PHP and MySQL working on Apache 2 on an XP machine. Try postgres - using phpPgAdmin as the initial application - not trying to test with my own code. I get an error - Your PHP installation does not support PostgreSQL. You need to recompile PHP using the --with-pgsql configure option. Now I installed the latest windows "complete" version of PHP, and uncommented the pgsql.dll line in the config. No joy. Any ideas where I am going wrong? |
|
|||
|
Does phpinfo() list the module? Assume Apache's been restarted and the
..ini changes were made to the .ini file listed in phpinfo.... Bruce Greef wrote: > I am trying something new - and failing so far. > > I can get PHP and MySQL working on Apache 2 on an XP machine. > > Try postgres - using phpPgAdmin as the initial application - not trying to test > with my own code. > > I get an error - > > Your PHP installation does not support PostgreSQL. You need to recompile PHP > using the --with-pgsql configure option. > > Now I installed the latest windows "complete" version of PHP, and uncommented > the pgsql.dll line in the config. No joy. > > Any ideas where I am going wrong? |
|
|||
|
petersprc@gmail.com wrote:
> Does phpinfo() list the module? Assume Apache's been restarted and the > .ini changes were made to the .ini file listed in phpinfo.... No - Yes and yes. Although the pgsql.dll file is included in the package in the \ext directory, mysql loads its dll in the PHP root directory. Moving that to the ./ext directory breaks MySQL but Postgres appears in the phpinfo() modules. Solution is a kludge at present - If I move the pgsql.dll file to the php root, and leave the php.ini directive as -- extension_dir = "./". Both work with this configuration... Thanks for the help. > > Bruce Greef wrote: > >>I am trying something new - and failing so far. >> >>I can get PHP and MySQL working on Apache 2 on an XP machine. >> >>Try postgres - using phpPgAdmin as the initial application - not trying to test >>with my own code. >> >>I get an error - >> >>Your PHP installation does not support PostgreSQL. You need to recompile PHP >>using the --with-pgsql configure option. >> >>Now I installed the latest windows "complete" version of PHP, and uncommented >>the pgsql.dll line in the config. No joy. >> >>Any ideas where I am going wrong? > > |
![]() |
| Thread Tools | |
| Display Modes | |
|
|