Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setup for Postgres #9889

Closed
fbaeuerle opened this issue Jul 25, 2014 · 6 comments
Closed

Setup for Postgres #9889

fbaeuerle opened this issue Jul 25, 2014 · 6 comments

Comments

@fbaeuerle
Copy link

The setup with PostgreSQL is "kind of" broken.
owncloud does not allow an empty database host, if the field is left empty, the value will be replaced by "localhost". This is not a good thing, because empty host means "use unix socket" to Postgres.

I could fix the setup by editing the line 41 in private/setup/abstractdatabase.php

Indeed it is a big Problem if one does not want to setup postgres to listen on tcp connections.

@PVince81
Copy link
Contributor

I think a socket setting was added to MySQL recently, so the same could probably be done for Postgres.

@strk
Copy link

strk commented Apr 24, 2016

I suggest renaming the issue title to be more specific about the unix socket support.

@RobinMcCorkell
Copy link
Member

As per the documentation this is supported by passing the path to the Postgres socket directory

@strk
Copy link

strk commented Apr 25, 2016

Specifying "/var/run/postgresql" triggers an Internal Server Error here.
Note that the filename is stiill dependent on port, .s.PGSQL.5433 in my case.
Can it be the code hard-codes the socket name to the default port ?

@strk
Copy link

strk commented Apr 25, 2016

Ok, /var/run/postgresql:5433 works

@lock
Copy link

lock bot commented Aug 4, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Aug 4, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

6 participants