MySQL errors

If you are receiving MySQL errors, make sure to check PHPInfo for the MySQL section (Apache):

MYSQL_LIBS:

-L/usr/lib64/mysql -lmysqlclient


To solve the issue, compile LSPHP with:

--with-mysql=/usr --with-libdir=lib64 --with-mysqli=/usr/bin/mysql_config


If you still have issues or questions, feel free to visit the official PHP documentation on MYSQL or view their mysqli extension documentation at http://us2.php.net/manual/en/book.mysqli.php

Otherwise, you can contact us by opening a support ticket or use our live chat feature for 24/7 support.

  • 22 Users Found This Useful
Was this answer helpful?

Also Read

How to Restart LiteSpeed

If you need to restart LiteSpeed for whatever reason, use the following command:...

LSCache Cron Job for cPanel

The easiest way to see what the LSCache cron job running for your cPanel control panel is through...

How to Install LiteSpeed

Many control panels like cPanel will come with an auto Installer for LiteSpeed. However, if you...

How to Check Your License

If you want to check your LiteSpeed license, simply log into the LiteSpeed Web console then go to...

How to Uninstall LiteSpeed

If, for some reason, you need to uninstall LiteSpeed, run the following command into your console...