ubuntu安装php8.1提示 Please check that the mysqli PHP extension is installed and enabled Published on Dec 15, 2023 in 随笔 with 0 comment 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. 解决方法: I am not saying these commands will fix your issue (you may need to adjust versions for your case or it may be something completely different) but in my case, on update to Ubuntu 21.10 (PHP 8.0) I found the mysqli extension was missing/disabled so I had to do this: ``` sudo apt-get install php8.0-mysql ``` And: ``` sudo apt-get install php8.0-mbstring ``` And on a subsequent update to 22.04 I had to disable php8.0 module and enable php8.1 module: ``` sudo a2dismod php8.0 sudo a2enmod php8.1 systemctl restart apache2 ``` 本文由 admin 创作,采用 知识共享署名4.0 国际许可协议进行许可。本站文章除注明转载/出处外,均为本站原创或翻译,转载前请务必署名。