无法在Centos上安装php-mysqli扩展

use*_*587 5 php mysql mysqli centos

我正在尝试将mysqli扩展安装到php

yum install php-mysqli
Run Code Online (Sandbox Code Playgroud)

而且我得到了下一个错误

...
     Transaction Check Error:
          file /usr/share/mysql/charsets/Index.xml from install of mysql-libs-5.1.71-1.el6.x86_64 conflicts with file from package MySQL55-server-5.5.34-2.cp1136.x86_64
          file /usr/share/mysql/charsets/README from install of mysql-libs-5.1.71-1.el6.x86_64 conflicts with file from package MySQL55-server-5.5.34-2.cp1136.x86_64
          file /usr/share/mysql/charsets/armscii8.xml from install of mysql-libs-5.1.71-1.el6.x86_64 conflicts with file from package MySQL55-server-5.5.34-2.cp1136.x86_64
          file /usr/share/mysql/charsets/ascii.xml from install of mysql-libs-5.1.71-1.el6.x86_64 conflicts with file from package MySQL55-server-5.5.34-2.cp1136.x86_64
          file /usr/share/mysql/charsets/cp1250.xml from install of mysql-libs-5.1.71-1.el6.x86_64 conflicts with file from package MySQL55-server-5.5.34-2.cp1136.x86_64
          file /usr/share/mysql/charsets/cp1251.xml from install of mysql-libs-5.1.71-

...
Run Code Online (Sandbox Code Playgroud)

(日志继续)

我没有安装mysqli包,因为我可以检查

php -m | grep mysqli
Run Code Online (Sandbox Code Playgroud)

它什么都不返回......

use*_*587 7

最后,我在WHM中使用EasyApache重新编译了apache,在"穷举选项列表"中选择了MySQLi选项


小智 5

CentOS 6.5 64位

1-找到mysqli

/usr/lib64/php/modules/mysqli.so

2-编辑php.ini添加

extension=pathroyourfile

3-重启apache