Find answers to your questions

Documentation

MySQL errors

  • 22

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.

Related Articles

CloudLinux PHP Selector CloudLinux requires the following to be installed: PHP Selector LVE Manager CageFS Now on the LiteSpeed admin control panel use the following: CloudLinux (Admin Console ⇒ Configuration ⇒ Server ⇒ General): CageFS LSPHP5 external app runs in NON suEXEC daemon mode ONLY (Run On... How to Compile LsPHP on InterWorx To compile LsPHP to match the PHP on the server you need to use one of the following commands listed below, this is because we don't have an InterWorx Plugin like some control panels yet. CentOS 5: rpm -ivh http://rpms.litespeedtech.com/centos/litespeed-repo-1.1-1.el5.noarch.rpm CentOS 6: rpm... How to Enable SSL for Webadmin As of LiteSpeed Web Server v5.2, self-signed SSL certificates are automatically created for the Web Admin GUI. However, if you have an older version of LSWS, a different self-signed certificate is wanted, or a non-self-signed certificate is needed then you can follow this tutorial:... How to Fix Broken Images in LiteSpeed First, go to your web console then go to Configuration > Server > Security File Access: Follow Symbolic Link: Yes Check Symbolic Link: No Force Strict Ownership: No Required Permission Mask: 000 Restricted Permission Mask: 000 Script Restricted Permission Mask: 000 Script Restricted Directory... An LC.8 Error Appeared If you see an LC.8 error appear while using LiteSpeed, then the IP you have been assigned has been placed on the blacklist due to having a nulled version of LiteSpeed installed. Nulled software is illegal and unsafe and will show up on most search engines. When an IP is found to have a nulled version of...