Your PHP installation appears to be missing the MySQL extension which is required by WordPress.
搭建wordpress,出现
Your PHP installation appears to be missing the MySQL extension which is required by WordPress.
然后查询
missing the MySQL extension which is required by WordPress.
找到官网回复
需要安装mysqlnd
然后搜索:
No package php-mysqlnd available
最后找到
Installing mysqlnd for php 5.X on CentOs 6.X
里面提到
wget http://rpms.famillecollet.com/enterprise/remi.repo -O /etc/yum.repos.d/remi.repo yum --enablerepo=remi-test install php-mysqlnd
用了一下,yum那里找不到rmmi-test
是因为repo名字他写错了,改成下面的ok
yum --enablerepo=remi-test install php-mysqlnd
安装完成之后,仍然提示
missing the MySQL extension which is required by WordPress.
重启一下httpd即可
service httpd restart