Reputation: 2686
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?
Upvotes: 4
Views: 6165
Reputation: 19372
Simply install necessary extensions and restart fpm process:
sudo apt-get install php-mysqlnd php-mysqli
sudo /etc/init.d/php7.0-fpm restart
Upvotes: 5
Reputation: 2686
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
Upvotes: 0