View ProjeQtOr On SourceForge.net
ProjeQtOr - Project Management Tool
Support us on Capterra
OIN - Open Invention Network
ProjeQtOr free project management software - Connection to db via Unix Socket? - ProjeQtOr
 
 

Connection to db via Unix Socket?

More
12 Jul 2015 00:11 #1 by VERNCon
Hi,

Is it possible to connect via unix socket to PGSQL, from Projeqtor?

Cheers,
Verncon.

Please Log in or Create an account to join the conversation.

More
12 Jul 2015 13:22 #2 by VERNCon
Got it sorted, all is OK.

Please Log in or Create an account to join the conversation.

More
12 Jul 2015 14:35 #3 by babynus
Hi, VERNCon

If you found a trick, please share with the community, it could help someone.
Thanks in advance.

Babynus
Administrator of ProjeQtOr web site

Please Log in or Create an account to join the conversation.

More
12 Jul 2015 18:49 #4 by VERNCon
Hi,
It was much simpler than I expected....
In the parameters.php file, at $paramDbHost value, all I needed to do was enter the Unix Sockets directory for the connection.
In my case (Fedora with PGSQL), I entered "/var/run/postgresql/" and re-started the httpd Service.

You need to have the database listening on the appropriate Unix Sockets - the default for PGSQL is /var/run/postgresql/ and /tmp.

The code used in this software is obviously much "nicer" than others, as I did the "usual" and I replaced the / 's with %2f, but then it complained that it could not parse the value.
I tried the straight text string including the forward-slash, it happily accepted it and the database connection came straight up. You still need to correctly edit the pg_hba.conf file correctly to control the access.

Cheers,
Verncon.
The following user(s) said Thank You: babynus

Please Log in or Create an account to join the conversation.

Moderators: babynusprotion
Time to create page: 0.030 seconds

Cookies settings

×

Functional Cookies

Ce site utilise des cookies pour assurer son bon fonctionnement et ne peuvent pas être désactivés de nos systèmes. Nous ne les utilisons pas à des fins publicitaires. Si ces cookies sont bloqués, certaines parties du site ne pourront pas fonctionner.

Session

Please login to see yours activities!

Other cookies

Ce site web utilise un certain nombre de cookies pour gérer, par exemple, les sessions utilisateurs.