Upgraded Ubuntu + PHP, can’t access WP due to MySQLi Extension error

[ad_1]

The e rror explains what you need to do:

Install the mysqli package for your OS. It’s probably “mysqlnd-something” or “php-mysqlnd-something”.

Fixed.

My issue in particular was that I had upgraded Ubuntu in place instead of migrating to a new droplet (I use DigitalOcean). As a result, even though PHP was upgraded to 8.2, I was still using PHP 7.2 and that was causing the MySQLi extension conflict. Such a simple mistake but easy to overlook.

For Ubuntu users, just enabling PHP 8.2 with sudo a2enmod php8.2 (or whatever PHP version you are using, preferably above 7) should fix it.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer