From aa187611126cf77c604c19116315b454a198cf2f Mon Sep 17 00:00:00 2001 From: Manu Lestrelin Date: Mon, 2 Jun 2025 11:58:33 +0200 Subject: [PATCH 1/2] fix Unix socket syntax --- .../configuration_database/linux_database_configuration.rst | 2 +- .../configuration_server/config_sample_php_parameters.rst | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/admin_manual/configuration_database/linux_database_configuration.rst b/admin_manual/configuration_database/linux_database_configuration.rst index 0cef1e0441b..18ff7d2f63d 100644 --- a/admin_manual/configuration_database/linux_database_configuration.rst +++ b/admin_manual/configuration_database/linux_database_configuration.rst @@ -247,7 +247,7 @@ this: "dbname" => "nextcloud", "dbuser" => "username", "dbpassword" => "", - "dbhost" => "/var/run/postgresql", + "dbhost" => "localhost:/var/run/postgresql", "dbtableprefix" => "oc_", .. note:: The host actually points to the socket that is used to connect to the database. Using localhost here will not work if postgreSQL is configured to use peer authentication. Also note that no password is specified, because this authentication method doesn't use a password. diff --git a/admin_manual/configuration_server/config_sample_php_parameters.rst b/admin_manual/configuration_server/config_sample_php_parameters.rst index 190ca0449db..4a61b83d098 100644 --- a/admin_manual/configuration_server/config_sample_php_parameters.rst +++ b/admin_manual/configuration_server/config_sample_php_parameters.rst @@ -336,7 +336,7 @@ Your host server name, for example ``localhost``, ``hostname``, ``hostname.example.com``, or the IP address. To specify a port use ``hostname:####``, for IPv6 addresses use the URI notation ``[ip]:port``. -To specify a Unix socket use ``/path/to/directory/containing/socket``, e.g. ``/run/postgresql/``. +To specify a Unix socket use ``localhost:/path/to/directory/containing/socket`` or ``:/path/to/directory/containing/socket``, e.g. ``localhost:/run/postgresql/``. dbname ^^^^^^ From 30fead689e5256dc9c523884e7096729c933bc52 Mon Sep 17 00:00:00 2001 From: Manu Lestrelin Date: Tue, 17 Jun 2025 16:16:07 +0200 Subject: [PATCH 2/2] Revert admin_manual/configuration_database/linux_database_configuration.rst to e3c9632ed --- .../configuration_database/linux_database_configuration.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/admin_manual/configuration_database/linux_database_configuration.rst b/admin_manual/configuration_database/linux_database_configuration.rst index 18ff7d2f63d..0cef1e0441b 100644 --- a/admin_manual/configuration_database/linux_database_configuration.rst +++ b/admin_manual/configuration_database/linux_database_configuration.rst @@ -247,7 +247,7 @@ this: "dbname" => "nextcloud", "dbuser" => "username", "dbpassword" => "", - "dbhost" => "localhost:/var/run/postgresql", + "dbhost" => "/var/run/postgresql", "dbtableprefix" => "oc_", .. note:: The host actually points to the socket that is used to connect to the database. Using localhost here will not work if postgreSQL is configured to use peer authentication. Also note that no password is specified, because this authentication method doesn't use a password.