[ubuntu] Your PHP installation appears to be missing the MySQL extension which is required by WordPress

通常原因會是更新了 php 版本卻沒裝對應的 mysql package

試著將以下 package 安裝後,並重啟 nginx/php-fpm 即可

sudo apt-get install php7.x-mysql
sudo service nginx restart
sudo service php7.x-fpm restart

備註: x 為你所裝的 php 版本

Leave a Reply

Your email address will not be published. Required fields are marked *