I'm testing DirectAdmin in Centos 6 and 7 LXC (Proxmox 4.1). DirectAdmin and Roundcube cannot connect to the mysql socket:
Error connecting to MySQL: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (13)
The file /var/lib/mysql/mysql.sock exists and I can connect to mysql in SSH. However there seems to be a problem when using localhost. I changed the config from Roundcube from localhost to 127.0.0.1 and it works.
Is there a workaround for using localhost instead?
Error connecting to MySQL: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (13)
Is there a workaround for using localhost instead?