You are not logged in.
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
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?
Are you familiar with our Forum Rules, and How To Ask Questions The Smart Way?
BlueHackers // fscanary // resticctl
Offline
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
Did you try what was suggested here?
Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy
Offline
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
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