You are not logged in.

#1 2010-02-03 21:59:01

pradtf
Member
Registered: 2009-06-10
Posts: 134

[SOLVED] lighttpd + php + postgresql not working

i have both php-pgsql and postgresql-libs installed.
extension=pgsql.so is uncommented in /etc/php/php.ini

however, restarting lighttpd doesn't pick up pgsql.so and i haven't been able to use php to work with postgresql.

am i missing something?
it all used to work fine in the past from what i recall and quite nicely too.

Last edited by pradtf (2010-02-03 23:56:13)


in friendship,
prad

Offline

#2 2010-02-03 22:08:44

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,224
Website

Re: [SOLVED] lighttpd + php + postgresql not working

Need more information...

What isn't working exactly?  (ie, which part: lighttpd + php, or php + postgres?)
How are you testing it?
What error messages are you getting?

Offline

#3 2010-02-03 22:21:43

pradtf
Member
Registered: 2009-06-10
Posts: 134

Re: [SOLVED] lighttpd + php + postgresql not working

it can't find the pgsql.so library possibly.
so when i try pg_connect i get stuff like:
Call to undefined function pg_connect() in /data/www/bambi/ber/index.php on line 38


in friendship,
prad

Offline

#4 2010-02-03 22:53:35

.:B:.
Forum Fellow
Registered: 2006-11-26
Posts: 5,819
Website

Re: [SOLVED] lighttpd + php + postgresql not working

Did you try what was suggested here?


Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy

Offline

#5 2010-02-03 23:41:40

pradtf
Member
Registered: 2009-06-10
Posts: 134

Re: [SOLVED] lighttpd + php + postgresql not working

.:B:. wrote:

Did you try what was suggested here?

thx but since php.ini doesn't have a socket line for pgsql, i'm not sure what to do with it.
i wonder though from your thread whether we are having some sort of version incompatibility - i recall reading something like this elsewhere too.


in friendship,
prad

Offline

#6 2010-02-03 23:55:45

pradtf
Member
Registered: 2009-06-10
Posts: 134

Re: [SOLVED] lighttpd + php + postgresql not working

ok the problem has been solved.
i was working from my original php.ini file instead of the php.ini.new file.
i copied it over and uncommented the pgsql.so line and all is well - didn't even have to restart lighttpd.

thx to those who tried to help me.

Last edited by pradtf (2010-02-03 23:57:15)


in friendship,
prad

Offline

Board footer

Powered by FluxBB