I had my ISP try to upgrade our dedicated Litespeed server to php7. It is running one Cs Cart install 4.3.8
When they updated the libraries the store reported the following error;
[STDERR] PHP Warning: mysqli::__construct(): (HY000/2002): No such file or directory in /usr/local/lsws/DEFAULT/html/app/Tygh/Backend/Database/Mysqli.php on line 40
Does anyone know why this would be? Line 40 of that file is connecting to the database;
$this->conn = new \mysqli($host, $user, $passwd, $database, $port);
Same issue. Your server is configured with multiple PHP versions installed. When you use the ezApache switcher, it will use that VERSION. You still need to insure that the VERSION has mysqli support compiled in. But it would be VERY non-standard for it not to have.