简体   繁体   中英

Php7 Installation of wordpress on nginx throwing PHP installation missing MySQL extension which is required by WordPress

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?

Simply install necessary extensions and restart fpm process:

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

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM