OS:
CloudLinux release 7.3 (Yury Malyshev)
LSWS:
5.1.13
PHP:
lsphp53 LSAPI with the following RPM's installed:
lsphp53-5.3.29-1.el7.centos.x86_64
lsphp53-pdo-5.3.29-1.el7.centos.x86_64
lsphp53-mysqlnd-5.3.29-1.el7.centos.x86_64
phpinfo() call shows configure command to include '--with-mysql-sock=/usr/lib64/mysql/mysql_config'.
As a result, mysqli connection attempts fail as follows
Warning: mysqli::mysqli(): [2002] No such file or directory (trying to connect via unix:///usr/lib64/mysql/mysql_config) in [...]
Issue can be worked around by setting mysql.default_socket, mysqli.default_socket, pdo_mysql.default_socket in /usr/local/lsws/lsphp53/etc/php.ini
Hope this is helpful.
CloudLinux release 7.3 (Yury Malyshev)
LSWS:
5.1.13
PHP:
lsphp53 LSAPI with the following RPM's installed:
lsphp53-5.3.29-1.el7.centos.x86_64
lsphp53-pdo-5.3.29-1.el7.centos.x86_64
lsphp53-mysqlnd-5.3.29-1.el7.centos.x86_64
phpinfo() call shows configure command to include '--with-mysql-sock=/usr/lib64/mysql/mysql_config'.
As a result, mysqli connection attempts fail as follows
Warning: mysqli::mysqli(): [2002] No such file or directory (trying to connect via unix:///usr/lib64/mysql/mysql_config) in [...]
Issue can be worked around by setting mysql.default_socket, mysqli.default_socket, pdo_mysql.default_socket in /usr/local/lsws/lsphp53/etc/php.ini
Hope this is helpful.