• Resolved Orbit Storm

    (@orbit-storm)


    After upgrading from Ubuntu 18.04 to 20.04 (and PHP as a result), I’m no longer able to access my WordPress installations and instead just see the following error:

    Your PHP installation appears to be missing the MySQL extension which is required by WordPress.

    Please check that the mysqli PHP extension is installed and enabled.

    My version of WordPress was somewhere around 5.4 so I’m aware of why this is happening but not how to fix it without rolling back my Ubuntu upgrade. I realize now that I should’ve upgraded WP before upgrading Ubuntu but I figured there wasn’t much point since PHP was out of date.

    Kind of a weird dilemma.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    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”.

    Thread Starter Orbit Storm

    (@orbit-storm)

    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.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Upgraded Ubuntu + PHP, can’t access WP due to MySQLi Extension error’ is closed to new replies.