Database extensions -> red

Having trouble installing serendipity?
Post Reply
cntlzw
Posts: 3
Joined: Mon Oct 22, 2007 6:26 pm

Database extensions -> red

Post by cntlzw »

Hi folks,

everything green on the first screen, but database extension stays red. Postgresql is up and running located in /usr/local/pgsql. I set up a user account and database, but it looks like my database is not in the search path. Sorry, I am not a php-Coder looking at the code doesn't help me much, gives me headaches instead ;-)
Searched forum but didn't find a solution.

Thanks in advance!
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Database extensions -> red

Post by garvinhicking »

Hi!

Your PHP is missing the DB extension. You must recompile PHP with pgsql/mysql/... support to be able to use any DB with PHP.

You might need to ask your server provider to do that, if you don'T know how to compile PHP.

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
cntlzw
Posts: 3
Joined: Mon Oct 22, 2007 6:26 pm

Post by cntlzw »

Hi garvinhicking,

there is pgsql.so in /usr/lib/php5/20051025/pgsql.so. I added the following entrys in php.ini

pgsql.allow_persistent = On
pgsql.auto_reset_persistent = Off
pgsql.max_persistent = -1
pgsql.max_links = -1
pgsql.ignore_notice = 0
; Unless pgsql.ignore_notice=0, module cannot log notice message.
pgsql.log_notice = 0
extension=pgsql.so

So it looks like I already have support.
cntlzw
Posts: 3
Joined: Mon Oct 22, 2007 6:26 pm

Post by cntlzw »

Ok, its up and running.

Well, quite embarrasing for me but I forgot to restart apache after installing the php5 postgresql extension. Shame on me ;-)

But thanks for the quick reply!
Post Reply