Solution :: for Your PHP installation appears to be missing the MySQL extension which is required by WordPress

Solution :: for Your PHP installation appears to be missing the MySQL extension which is required by WordPress

Most of the people use to get following error message during the website hosting. This issue is coming because of some PHP libraries are not available or not installed in server. Issue will resolve if you are executing following command in Ubuntu server.

In a single command you can install all your necessary packages:

>sudo apt-get install -y php7.4-bcmath php7.4-cli php7.4-common php7.4-curl php7.4-gd php7.4-intl php7.4-json php7.4-mbstring php7.4-mysql php7.4-opcache php7.4-soap php7.4-tidy php7.4-xml php7.4-xmlrpc php7.4-zip

Run below commands alone one by one you want to install packages each packages alone:

sudo apt-get install -y php7.4-bcmath

sudo apt-get install -y php7.4-cli

sudo apt-get install -y php7.4-common

sudo apt-get install -y php7.4-curl

sudo apt-get install -y php7.4-gd

sudo apt-get install -y php7.4-intl

sudo apt-get install -y php7.4-json

sudo apt-get install -y php7.4-mbstring

sudo apt-get install -y php7.4-mysql

sudo apt-get install -y php7.4-opcache

sudo apt-get install -y php7.4-soap

sudo apt-get install -y php7.4-tidy

sudo apt-get install -y php7.4-xml

sudo apt-get install -y php7.4-xmlrpc

sudo apt-get install -y php7.4-zip

 

Post By

Mohan

 

Save Water !!!