Php7 Installation of wordpress on nginx throwing P

2019-06-25 05:57发布

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

When i access : http://blog.mysite.com/wordpress/

I get:

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

How can i resolve this?

2条回答
神经病院院长
2楼-- · 2019-06-25 06:22

Simply install necessary extensions and restart fpm process:

sudo apt-get install php-mysqlnd php-mysqli
sudo /etc/init.d/php7.0-fpm restart
查看更多
冷血范
3楼-- · 2019-06-25 06:31

This is a real relief I found this post, which helped me: How to enable MySQLi extension in php 7?

Basically, if you're running php7 instead of php5 you should run this to resolve this issue:

sudo apt-get install php-mysql

and yes, as @Kris mentioned:

reload your webserver
查看更多
登录 后发表回答