Moodle 3.8 Installation Error for PHP has not been properly configured with the MySQLi extension

Re: Moodle 3.8 Installation Error for PHP has not been properly configured with the MySQLi extension

by Howard Miller -
Number of replies: 2
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers
In that case, your solution is most likely

sudo apt install php-mysql
sudo service apache2 restart

(Unless you are using something other than the standard PHP packages)
In reply to Howard Miller

Re: Moodle 3.8 Installation Error for PHP has not been properly configured with the MySQLi extension

by Mohamed Shariff -

I know this is an old post but the information might be helpful to someone still looking for a solution 

I had this issue as well when running php scripts in admin/cli folder after upgrading php to version 7.4

Then after the command: sudo apt-get install php7.4-mysql

I had to install the additional php extension 

php7.4-xmlphp7.4-xmlrpc / php7.4-mbstring / php7.4-curl / php7.4-zip / php7.4-gd / php7.4-intl

using the command below

sudo apt-get install php7.4-xml php7.4-xmlrpc php7.4-mbstring php7.4-curl php7.4-zip php7.4-gd php7.4-intl

Hope this will be helpful to anyone

Average of ratings: Useful (1)
In reply to Mohamed Shariff

Re: Moodle 3.8 Installation Error for PHP has not been properly configured with the MySQLi extension

by Tien Do -
Thank you for your answer! You save my time a lot