Create a phpinfo() page under the site having problem, switch between Apache and LiteSpeed compare phpinfo() output.
I think LiteSpeed PHP is missing mysql modules, so cannot connect to MySQL. usually can be fixed by updating php.ini used by lsphp, assuming the mysql modules has been built in...