WordPress missing the MySQL extension

#1
I have installed OLS on Ubuntu 22.04 with lsphp81 and other lsphp81 extensions. I have also installed lsphp81-mysql but for some reason, I am getting 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.
If you are unsure what these terms mean you should probably contact your host. If you still need help you can always visit the WordPress support forums.
 

Cold-Egg

Administrator
#2
I just did a quick test and it works. Do you have mysql and common package installed? Please run the following command and share the output here.
Code:
apt list --installed | grep php81
 
Top