PHP7在Nginx上安装Wordpress并抛出PHP安装缺少WordPress所需的MySQL扩展 [英] Php7 Installation of wordpress on nginx throwing PHP installation missing MySQL extension which is required by WordPress

查看:242
本文介绍了PHP7在Nginx上安装Wordpress并抛出PHP安装缺少WordPress所需的MySQL扩展的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我该如何解决?我试图在运行nginx for Php7

How can I fix this? im trying to do a clean install of wordpress latest on ubuntu 16 running nginx for Php7

当我访问时: http://blog.mysite.com/wordpress/

我得到:

您的PHP安装似乎缺少MySQL扩展,该扩展 是WordPress所必需的.

Your PHP installation appears to be missing the MySQL extension which is required by WordPress.

我该如何解决?

推荐答案

只需安装必要的扩展名并重新启动fpm进程:

Simply install necessary extensions and restart fpm process:

sudo apt-get install php-mysqlnd php-mysqli
sudo /etc/init.d/php7.0-fpm restart

这篇关于PHP7在Nginx上安装Wordpress并抛出PHP安装缺少WordPress所需的MySQL扩展的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆