PHP 5 & Postgres on Windows

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 ...


Go Back   Usenet Forums > PHP Programming Forums > alt.comp.lang.php

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 10-21-2006
Bruce Greef
 
Posts: n/a
Default PHP 5 & Postgres on Windows

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?
Reply With Quote
  #2 (permalink)  
Old 10-21-2006
petersprc@gmail.com
 
Posts: n/a
Default Re: PHP 5 & Postgres on Windows

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?


Reply With Quote
  #3 (permalink)  
Old 10-22-2006
Bruce Greef
 
Posts: n/a
Default Re: PHP 5 & Postgres on Windows

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?

>
>

Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 09:05 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0