Roundcube Community Forum

 

[solved] mySQL Socket problem

Started by quwax, January 20, 2018, 09:56:25 PM

Previous topic - Next topic

quwax

Hello,
this didn't happen with php 5.x, but after upgarding to php7.2 I have this wired problem:
the mysql socket is set correctly in the php.ini file (as before):
pdo_mysql.default_socket = /private/var/mysql/mysql.sock
mysql.default_socket = /private/var/mysql/mysql.sock
mysqli.default_socket = /private/var/mysql/mysql.sock
and I can access the installer, but I neither can login to the mailserver nor can I send.
With IMAP I get a connection refused error, which doesn't reflect in the server logs
with smtp I get a socket error.
My temporary solution is to create a symbolic link in the temp folder:
ln -s /var/mysql/mysql.sock mysql.sock
then everything works as expected. Of course after every restart the symbolic link is gone ;-)
Wordpress has no issues, so it must be an imap/smtp thing.
Where can I look for the wrong socket path?
thanks

quwax

Found the culprit, the pdo and mysqli socket was also set in the php.ini file with an empty path ... setting the correct path fixed it :-)

To explain, I'm using the entropy php7.2 installation on MacOS 10.11
The manual said the mysql path is set in 99-liip-developer.ini, but only for mysql and not the other ones, which are set in the php.ini file :-D