Unix socket not working, Ubuntu 18.04, nextcloud 13, Nginx, postgresql10, php7.2

here are the directions I followed which outline how to specify the socket:

it says that you should do this:

to specify a Unix socket use localhost:/path/to/socket

under the database configuration I specified the socket:


which can be found with the following command:

sudo find / -type s

here is the error I get when trying to install nextcloud:

EDIT: leaving this here and posting the solution.
instead of using:


I simply used:


hope this helps somebody, I actually figured this out buy looking at the database configuration page instead of the installation page: https://docs.nextcloud.com/server/12/admin_manual/configuration_database/linux_database_configuration.html

For MySQL / MariaDB I use the port number like

‘dbhost’ => ‘localhost:3306’,

Is there an advantage to use the socket?

See here:

1 Like