[Pkg-roundcube-maintainers] Bug#988264: roundcube-core: Configure script does not set unix socket mysql connection and manually setting it breaks the script

Guilhem Moulin guilhem at debian.org
Sun May 9 16:08:27 BST 2021


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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-roundcube-maintainers/attachments/20210509/d70f1a85/attachment.sig>


More information about the Pkg-roundcube-maintainers mailing list