ubuntu安装php8.1提示 Please check that the mysqli PHP extension is installed and enabled

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
版权声明 ▶ 本网站名称:我的学习笔记
▶ 本文链接:https://ooolo.net/article/379.html
▶ 本网站的文章部分内容可能来源于网络,仅供大家学习与参考,如有侵权,请联系站长进行核实删除。
▶ 转载本站文章需要遵守:商业转载请联系站长,非商业转载请注明出处!!!

none
最后修改于:2023年12月15日 19:34

添加新评论

icon_mrgreen.pngicon_neutral.pngicon_twisted.pngicon_arrow.pngicon_eek.pngicon_smile.pngicon_confused.pngicon_cool.pngicon_evil.pngicon_biggrin.pngicon_idea.pngicon_redface.pngicon_razz.pngicon_rolleyes.pngicon_wink.pngicon_cry.pngicon_surprised.pngicon_lol.pngicon_mad.pngicon_sad.pngicon_exclaim.pngicon_question.png