[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Phpgroupware-users] PostgreSQL non-default port
From: |
Brian Johnson |
Subject: |
Re: [Phpgroupware-users] PostgreSQL non-default port |
Date: |
Wed, 04 Feb 2004 19:20:43 +0000 |
Looks like you needs to edit the function connect in
phpgwapi/inc/class.db_pgsql.inc.php
If you feel energetic, find and modify all the code to make the port a
parameter in the header.inc.php file (I thought it used to be). Don't forget
to also modify the header.inc.php creation screen if you do this
Look for this section:
if (! $this->Link_ID)
{
$cstr = 'dbname=' . $Database
. $this->ifadd($Host, 'host=')
. $this->ifadd($Port, 'port=')
. $this->ifadd($User, 'user=')
. $this->ifadd("'".$Password."'",
'password=');
if
($GLOBALS['phpgw_info']['server']['db_persistent'])
{
$this->address@hidden($cstr);
}
else
{
$this->address@hidden($cstr);
}
Jorge Izquierdo (address@hidden) wrote:
>
>
> Hi everybody, I have a simple question but I don´t know if it wil be a
> simple answer for it. I have my phpgroupware 0.9.14.007 running with a
> postgresql. Everythings works but I must change the port where my
> database is listening, where should I configure my phpgroupware to tell
> it the new port where my database is listening??? Please, don´t tell me
> phpgroupware cannot query a postgresql database on a port different from
> the standard.
>
> Thanks for your help
>
> JOrge
>
>
>
>
> _______________________________________________
> Phpgroupware-users mailing list
> address@hidden
> http://mail.gnu.org/mailman/listinfo/phpgroupware-users
>