Error “your php installation appears to be missing the mysql extension which is required by wordpress.” setelah upgrade php di virtualmin

Kemarin saya saya coba update package di virtualmin dan setelah nya wordpress saya muncul error ” your php installation appears to be missing the mysql extension which is required by wordpress. “

ternyata setelah saya coba perhatikan dia melakukan update php nya, virutalmin saya di install di ubuntu 16 dengan php 5.6 dan dia melakukan update dan upgrade ke versi php 7.03 dan php 7.4.12 , dan ternyata ketika melakukan upgarde php akan menghapus ekstensi php-mysql , bisa kita cek dengan membuat file info.php di folder public_html situs kita kemudian isi dengan script php info

<?php
phpinfo( );
?>

save kemudian akses url nya https://aldy.alshifacharity.com/info.php ctrl+f ketik mysql , jika memang ada ekstensi mysql nya dia akan ada di section mysql dan ada client API version nya

nah jika tidak ada bisa coba kita install lagi php-mysql nya

root@hosting:/home/aldy/public_html# apt install php5.6-mysql
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following NEW packages will be installed:
  php5.6-mysql
0 upgraded, 1 newly installed, 0 to remove and 6 not upgraded.
Need to get 140 kB of archives.
After this operation, 544 kB of additional disk space will be used.
Get:1 http://ppa.launchpad.net/ondrej/php/ubuntu xenial/main amd64 php5.6-mysql amd64 5.6.40-38+ubuntu16.04.1+deb.sury.org+1 [140 kB]
Fetched 140 kB in 2s (56.4 kB/s)       
Selecting previously unselected package php5.6-mysql.
(Reading database ... 220849 files and directories currently installed.)
Preparing to unpack .../php5.6-mysql_5.6.40-38+ubuntu16.04.1+deb.sury.org+1_amd64.deb ...
Unpacking php5.6-mysql (5.6.40-38+ubuntu16.04.1+deb.sury.org+1) ...
Processing triggers for php5.6-fpm (5.6.40-38+ubuntu16.04.1+deb.sury.org+1) ...
NOTICE: Not enabling PHP 5.6 FPM by default.
NOTICE: To enable PHP 5.6 FPM in Apache2 do:
NOTICE: a2enmod proxy_fcgi setenvif
NOTICE: a2enconf php5.6-fpm
NOTICE: You are seeing this message because you have apache2 package installed.
Setting up php5.6-mysql (5.6.40-38+ubuntu16.04.1+deb.sury.org+1) ...

Creating config file /etc/php/5.6/mods-available/mysqlnd.ini with new version

Creating config file /etc/php/5.6/mods-available/mysqli.ini with new version

Creating config file /etc/php/5.6/mods-available/pdo_mysql.ini with new version

Creating config file /etc/php/5.6/mods-available/mysql.ini with new version
Processing triggers for php5.6-fpm (5.6.40-38+ubuntu16.04.1+deb.sury.org+1) ...
NOTICE: Not enabling PHP 5.6 FPM by default.
NOTICE: To enable PHP 5.6 FPM in Apache2 do:
NOTICE: a2enmod proxy_fcgi setenvif
NOTICE: a2enconf php5.6-fpm
NOTICE: You are seeing this message because you have apache2 package installed.
Processing triggers for php5.6-cli (5.6.40-38+ubuntu16.04.1+deb.sury.org+1) ...
root@hosting:/home/aldy/public_html#

setelah selesai silahkan coba akses kembali url web kita

semoga bermanfaat 🙂

1 Comment

  1. […] hari ini saya dapat error di server web baru yang akan kami deploy ,error nya php tidak bisa me-load ekstensi modul php-mysqli , info modul ekstensi yang aktif di php dapat di lihat di info.php (cara buat nya bisa di lihat di postingan ini) […]

    Reply

Your email address will not be published.

Time limit is exhausted. Please reload CAPTCHA.