Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.

mysqli connection after migrating to vps server

+1 vote
49 views
asked Apr 20 in Q2A Core by anonymous

As we are using mysqli connection in one of the php file the connection works fine. After server migration we found error displayed below

Fatal error: Class 'mysqli' not found in /home/charlton07/public_html/wp-content/themes/tbrc/sample.php on line 250  is the error 

can you suggest how to resolve the error

1 Answer

+2 votes
answered Apr 20 by ProThoughts
May be mysqli is disabled on server.

check php.ini file, normally it is in below folder

/etc/php/7.0/apache2/php.ini

Uncomment below line

extension=php_mysqli.dll
...