• 首页
  • 邻居
  • 关于
  • 归档
  • 搜索
  • 夜间模式
    ©2020-2026  我的学习笔记 Theme by OneBlog

    我的学习笔记博客

    搜索
    标签
    # 随笔 # Java # 教程 # openwrt # Mysql # SQL # 爬虫 # post # Js调优 # MAVEN
  • 首页>
  • 随笔>
  • 正文
  • ubuntu安装php8.1提示 Please check that the mysqli PHP extension is installed and enabled

    2023年12月15日 1.3 k 阅读 0 评论 905 字

    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 ] 享有,未经作者书面授权,禁止转载,封面图片来源于 [ 互联网 ] ,本文仅供个人学习、研究和欣赏使用。如有异议,请联系博主及时处理。
    取消回复

    发表留言
    回复

    首页邻居关于归档
    Copyright©2020-2026  All Rights Reserved.  Load:0.015 s
    京ICP备18019712号
    Theme by OneBlog V3.6.5
    夜间模式

    开源不易,请尊重作者版权,保留基本的版权信息。