On Sun, 09 May 2021 at 11:39:16 -0300, Kurt Fitzner wrote:
> After running dpkg-reconfigure roundcube-core I find that
> /etc/dbconfig-common/roundcube.conf remains unchanged, with the relevant
> bits as follows:
> 
> # dbc_dbserver: database host.
> #    leave unset to use localhost (or a more efficient local method
> #    if it exists).
> dbc_dbserver='localhost'
> 
> # dbc_dbport: remote database port
> #    leave unset to use the default.  only applicable if you are
> #    using a remote database.
> dbc_dbport='3306'
> […] 
>
> Expected behavior: Both debian-db.php and
> /etc/dbconfig-common/roundcube.conf should reflect the selected Unix Socket
> method of connection.
> 
> Actual behavior: Both files retain "localhost" as the server and "3306" as
> the port.

What makes you think roundcube (and dbconfig) doesn't use the default
UNIX socket with that configuration?  Again the ‘localhost’ hostname is
treated specially, see mysql(1).

If you're not convinced try to remove the mysqld socket path (or change
it to something else) to something else and watch Roundcube fail to
connect.  Or set ‘skip-networking’ and see Roundcube, dbconfig, and even
`mysql -h localhost -P 3306` ignore INADDR_LOOPBACK:3306.

-- 
Guilhem.

Attachment: signature.asc
Description: PGP signature

Reply via email to