php7.4 sql Error - Wordpress site down now.

Siiigh. First off, I’m not good at this, for the record. Second I followed the DO tutorial for updating php to 7.4 But now my sql is just gone and unavailable.

E: Unable to locate package php7.4-mysql E: Couldn’t find any package by glob ‘php7.4-mysql’ E: Couldn’t find any package by regex ‘php7.4-mysql’

So naturally my wordpress site doesn’t work now.

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

I need help. Badly.


Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Hi there,

Can you confirm the exact Ubuntu version that you are running? You can check that with:

cat /etc/os-release

Feel free to share the output here.

Also which tutorial exactly did you follow and Are you using the ppa:ondrej/php repository?

If this is the case, going through the available PHP 7.4 packages on the repository here:

It looks like that php7.4-mysql package is not available for Ubuntu 20.10.

I could suggest one of the following things:

  • Revert back to the old PHP version that you were using
  • If you are on Ubuntu 20.04 you could try upgrading to 21.04 which seems to have the package.
  • Alternatively, revert to a backup or a snapshot so that you could get your website up and running again as it was with the old version.

Let me know how it goes.

Best, Bobby