6.0.0-beta1
9/3/25

[#13250] PostgreSQL use with Sockets not possible if custom Port is used
Summary PostgreSQL use with Sockets not possible if custom Port is used
Queue Horde Framework Packages
Queue Version Git master
Type Enhancement
State Resolved
Priority 1. Low
Owners jan (at) horde (dot) org
Requester oldshatterhand (at) gmx-topmail (dot) de
Created 06/05/2014 (4108 days ago)
Due
Updated 06/11/2014 (4102 days ago)
Assigned
Resolved 06/11/2014 (4102 days ago)
Milestone
Patch No

History
06/11/2014 08:21:20 AM Jan Schneider Assigned to Jan Schneider
State ⇒ Resolved
 
06/11/2014 08:18:21 AM Git Commit Comment #4 Reply to this comment
Changes have been made in Git (master):

commit 51efe6c38694382a242fa137b91253a9f44af456
Author: Jan Schneider <jan@horde.org>
Date:   Wed Jun 11 10:16:34 2014 +0200

     [jan] Allow to specify port for PostgreSQL socket connections 
(Request #13250).

  framework/Core/lib/Horde/Config.php |    5 ++++-
  framework/Core/package.xml          |    4 ++--
  2 files changed, 6 insertions(+), 3 deletions(-)

http://github.com/horde/horde/commit/51efe6c38694382a242fa137b91253a9f44af456
06/11/2014 08:14:20 AM Jan Schneider Version ⇒ Git master
Queue ⇒ Horde Framework Packages
Type ⇒ Enhancement
State ⇒ Accepted
Priority ⇒ 1. Low
 
06/10/2014 08:52:03 PM oldshatterhand (at) gmx-topmail (dot) de Comment #3 Reply to this comment
This is a limitation of how PHP's PDO API connects.
Thanks for your Reply.
While waiting for it I found a solution for the Problem.

I inserted
"$conf['sql']['port'] = portnumber;"

manually into the conf.php atfer

"$conf['sql']['socket'] = 'socketpath';"

Now it works without any problems and horde uses the socket as it should.

So I'd like to change this bug report into a feature request:

Addming a "Port" Field, that fills the "$conf['sql']['port'] " in 
config.php, to the Config UI for PgSQL (with Socket) would make the 
configuration much more comfortable and easy to understand for users 
that also have the I had.






06/10/2014 11:48:45 AM Jan Schneider Comment #2
State ⇒ Not A Bug
Reply to this comment
This is a limitation of how PHP's PDO API connects.
06/05/2014 03:57:19 PM oldshatterhand (at) gmx-topmail (dot) de Comment #1
Priority ⇒ 1. Low
Type ⇒ Bug
Summary ⇒ PostgreSQL use with Sockets not possible if custom Port is used
Queue ⇒ Horde Groupware Webmail Edition
Milestone ⇒
Patch ⇒ No
State ⇒ Unconfirmed
Reply to this comment
If you try to run Horde with a specific PostgreSQL setup it is not possible.

Assume the following setup:

PostgreSQL is running on a custom port for TCP connections.
Horde should connect to the PostgreSQL DB using unix sockets.

Now PostgreSQL always includes the Port Number in the Socket filename.

In Horde you can, if using PgSQL, specify only the path where the 
socket file is. If you try to type the direct path to the file there 
it assumes that this file is a directory and searches for a 
subdirectory with that name and a socket file inside.

Now Horde alway searches just for a socket file with the default port. 
(".s.PGSQL.5432").
If the socket file has an other name (through a custom TCP port) this 
results in a fatal error.

I think either to give the possibility to specify the socket filepath 
instead of a directory path or adding a field for a custom port in the 
socket config-view  should resolve this problem.

Saved Queries