Bad mysql-sock value in lsphp53 build for EL7

khnm

New Member
#1
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.
 

khnm

New Member
#3
Hello Pong,

Thank you for the clarification. Unfortunately I don't have access to the customer server at the moment to test this configuration.

However, the PHP binary and so's in the lsphp53 package were built with a nonsensical value for mysql-sock. I can't imagine a case where this would be intentional; it looks like someone forgot to backtick a command in a build script. Regardless of recommended configuration for CloudLinux, this seems like it should be fixed in the lsphp53 RPM; wouldn't you agree? The other lsphp5x packages don't have this problem.

Is the lsphp53 package no longer supported or updated by LiteSpeed Technologies? If that's the case, apologies for reporting a bug in an EOL package.
 
Top