[SOLVED!] Install HELP: database extensions

Having trouble installing serendipity?
Post Reply
babenj
Regular
Posts: 7
Joined: Wed Mar 07, 2007 7:38 pm

[SOLVED!] Install HELP: database extensions

Post by babenj »

Hello everyone,

I'd like apologize in advance if this question has been asked and answered before. I have exhausted my limited time in searching for some answers. I have a new installation and did my best to ensure sure that the Serendipity install requirements (php, database, perms, etc) are met.

The Serendipity installation shows an error in the database extensions and can't proceed with the installation

Here's the URL:

http://....

My configuration:
postgresql-server-7.4.16-1 on a RHEL 4 server
php 4.3.9

I created a database 'serendipity' and granted the user full privilege with "gran all to...". I dont have any ideas what else to check or if I missed any install steps which I carefully followed.

Any help is greatly appreciated!

Best regards,
bbj
Last edited by babenj on Sat Mar 10, 2007 1:15 pm, edited 2 times in total.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Install HELP: database extensions

Post by garvinhicking »

Hi!

You must compile your php with "--with-pgsql" to make PHP able to have a database extension. If you use a packaged PHP, try to install a php-pgsql package, or php-postgres?

HTH,
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/
babenj
Regular
Posts: 7
Joined: Wed Mar 07, 2007 7:38 pm

Re: Install HELP: database extensions

Post by babenj »

Hi Garvin,

Thank you for your quick reply! I was missing the php-pgsql-4.3.9-3.24 package in my RHEL 4 installation. I downloaded and installed the package, restarted the 'httpd' service, re ran the Serendipity installation and I was good to go!

Interestingly, I was going to update my post when I came across your reply. Your suggestion would've worked perfectly.

Thank you Garvin!

garvinhicking wrote:Hi!

You must compile your php with "--with-pgsql" to make PHP able to have a database extension. If you use a packaged PHP, try to install a php-pgsql package, or php-postgres?

HTH,
Garvin
babenj
Regular
Posts: 7
Joined: Wed Mar 07, 2007 7:38 pm

Another question

Post by babenj »

Hi Gavin,

I can not specify the 'database type' in the simple or expert install mode. Should this be populated automagically from the previous pre-install report?
babenj
Regular
Posts: 7
Joined: Wed Mar 07, 2007 7:38 pm

installation

Post by babenj »

Hi Gavin,

My install, whether in simple or expert mode, keeps returning back to the pre-installation report page after completing all the fields and then clicking on "complete installation".

What else am I missing or what should I check?

Thanks!
babenj
Regular
Posts: 7
Joined: Wed Mar 07, 2007 7:38 pm

OK i'm making progress

Post by babenj »

While debugging an earlier install problem in the config_local.inc.php, I managed to screw up that file. Good thing I made a backup of the original config_local file. Now, the installation properly detects PostgreSQL as my database.

But now I can not connect to the database :cry:

From command line, i'm able to connect to database using 'psql serendipity'

I'm able to grant privileges while connected to database.

What else am I missing?

Thanks in advance for your help.

BBJ
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: OK i'm making progress

Post by garvinhicking »

Hi!

You might need to configure your postgres master.conf file to allow connections from the psql client, which uses socket connections or something like that. It might be that currently your www-user is not allowed to access pgsql.

Sadly I don't use pgsql, so I can't help you much more with that :(

Best 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/
babenj
Regular
Posts: 7
Joined: Wed Mar 07, 2007 7:38 pm

Re: OK i'm making progress

Post by babenj »

Hello Gavin!

You have given me the critical clue regarding my problem: database tcp connection configuration.

I'm not familiar with postgresql database either but I have experience with other databases (IBM Informix, SQL Server, and MySQL). And in each database, you must configure host files to accept tcp connections. That was my problem, but I didn't know how to do it in postgresql.

I few minutes of googling yielded a positive link, which ultimately solved my problem. Here's the link: http://tinyurl.com/3ya8ao

Now my Serendipity BLOG space is up!!!

I'll find some time to contribute a tech how-to on how to install Serendipity on Redhat Enterprise Linux - AS v 4 with PostgreSQL with all of the config changes I made to get Serendipity installed, configured, and working -- as a token of my sincere appreciation for all your (and others) efforts.

Thanks again Gavin!

garvinhicking wrote: Hi!

You might need to configure your postgres master.conf file to allow connections from the psql client, which uses socket connections or something like that. It might be that currently your www-user is not allowed to access pgsql.

Sadly I don't use pgsql, so I can't help you much more with that :(

Best regards,
Garvin
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: OK i'm making progress

Post by garvinhicking »

Hi!

Great to hear that it worked, and thanks for your wish to contribute to the s9y documentation. That would be most welcome :)

Best 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/
Post Reply