des
(Dominik)
November 7, 2017, 10:38am
1
NethServer Version: 7.4.1708
Module: nethserver-postgresql
Hello Nethserver tribe. I need to install PostgreSQL server but can anyone tell me which version would be installed via nethserver-postgresql module ?
yum info nethserver-postgresql doesn’t tell much… but yum info postgresql tells me version 9.2
I know how to install i.e 9.4-9.6 but will it work in our environment ? Or i should tweak it somehow?
i have allready read this
Hello,
I installed postgresql-9.4 and phpPgAdmin from the epel repo, and both work fine. But the services list in the web gui always states that postgres is stopped. Presumably there is a mismatch between the nethserver-postgresql package which refers to the old version 8.4 and the actually installed version 9.4.
Can anybody tell where in the system the status information of services is taken from or what has to be adjusted so that postgesql is correctly shown as enabled?
Thanks.
@giacomo did something with Mattermost, take a look at:
des
(Dominik)
November 28, 2017, 12:28pm
3
Ok, i finally manage to install PostgreSQL in default 9.2 version, but i cannot connect to that server from the phpPgAdmin page
What i have done:
install nethserver-postgresql
install nethserver-phppgadmin from @stephdl repository
enabled PostgreSQL on firewall
added in pg_hba.conf
#IPv4 local connection
host all all 0.0.0.0/0 trust
changed in postgresql.conf
listen_addresses = ‘localhost’ →listen_addresses = ‘*’
in config.inc.php changed
$conf[‘servers’][0][‘host’] = ‘localhost’ →$conf[‘servers’][0][‘host’] = ‘IP ADDRESS’
$conf[‘extra_login_security’] = true →$conf[‘extra_login_security’] = false
And finally i was able to connect via phpPgAdmin
1 Like
stephdl
(Stéphane de Labrusse)
November 28, 2017, 12:44pm
4
Don’t understand, just tried and it works out of the box, the user is admin
and the password is in /var/lib/nethserver/secrets/pgadmin
why did you need to fully open phppgadmin and PostgreSQL ?
From a point of view of security, I’m not sure it is good
des
(Dominik)
November 28, 2017, 12:47pm
5
i was trying to connect with user “postgres” - default user - maybe this was my mistake…
des
(Dominik)
November 28, 2017, 12:53pm
6
I was blind somehow - i did not see at your manual the user name : “admin”
… damn I am tired … need another holidays
2 Likes
des
(Dominik)
November 29, 2017, 8:59am
7
Thank you @stephdl and @mrmarkuz for guiding me in setting up PostgreSQL on NS7.
Now I will try to revert those settings that I have made and I will see how it works.
1 Like
alefattorini
(Alessio Fattorini)
November 30, 2017, 2:19pm
8
You should write a new #howto it would be very helpful
2 Likes
des
(Dominik)
November 30, 2017, 5:55pm
9
Good idea … I will get all my notes and write it down here …