Installing TestLink 1.9.5 - Connection to DB failed

Ask community to help.

Moderators: Amaradana, TurboPT, TL Developers

Post Reply
billwellington
TestLink user
Posts: 2
Joined: Sun Dec 09, 2012 10:32 am

Installing TestLink 1.9.5 - Connection to DB failed

Post by billwellington »

I am trying to install TestLink 1.9.5 on a RHEL 6 server running PHP 5.3.3 and PostgreSQL 8.4.13

I fill out the info at http://172.16.60.185/install/installDbInput.php? and am promptly bounced to http://172.16.60.185/install/installNewDB.php where I get the message
TestLink setup will now attempt to setup the database:

Creating connection to Database Server:Failed!
Please check the database login details and try again.
Database Error Message: Database connection failed
The error logs at /var/testlink/logs/userlog0.log have the following to say

Code: Select all

[>>][50f752f245f01028117922][DEFAULT][/install/installNewDB.php][13/Jan/17 01:25:06]
	[13/Jan/17 01:25:06][WARNING][<nosession>][GUI]
		E_WARNING
pg_connect(): Unable to connect to PostgreSQL server: could not connect to server: Permission denied
	Is the server running on host "127.0.0.1" and accepting
	TCP/IP connections on port 5432? - in /var/www/html/third_party/adodb/drivers/adodb-postgres64.inc.php - Line 697
[<<][50f752f245f01028117922][DEFAULT][/install/installNewDB.php][13/Jan/17 01:25:06][13/Jan/17 01:25:06][took 0.061105 secs]
I am able to log into postgres using the username and password for this user from the command line utility (psql) and I can do all sorts of wonderful things in there... But for some reason that I don't have my head around TestLink can't find the database server.

At this point I don't know where to look... I have installed modules for apache and php, and postgres and php.

What more do I need?
fman
Member of TestLink Community
Posts: 3123
Joined: Tue Nov 15, 2005 7:19 am

Re: Installing TestLink 1.9.5 - Connection to DB failed

Post by fman »

testing connectiong with psql is not the same that trying to connect via PHP.
Absolutely is a good indication, but you do not know if it using same method that ADODB PHP.
You have to google for
pg_connect(): Unable to connect to PostgreSQL server: could not connect to server: Permission denied
Is the server running on host "127.0.0.1" and accepting
TCP/IP connections on port 5432? - in /var/www/html/third_party/adodb/drivers/adodb-postgres64.inc.php
billwellington
TestLink user
Posts: 2
Joined: Sun Dec 09, 2012 10:32 am

Re: Installing TestLink 1.9.5 - Connection to DB failed

Post by billwellington »

I have SELinux disabled and am still unable to make this work.
GunnarD

Re: Installing TestLink 1.9.5 - Connection to DB failed

Post by GunnarD »

Did u give dbuser@localhost permission to connect?
Post Reply