如何为 Cent OS 安装 php-mysqli 包

How to install php-mysqli package for Cent OS

我正在安装 mysqli,但每次输入以下命令时都没有安装:

yum install php-mysqli I get the following message:

Loaded plugins : fastestmirror
Loading mirror speeds from cached hostfile
*base : mirrors.XXXXX.com
*extras: mirrors.XXXXX.com
*updates : mirrors.XXXXX.com
No package php-mysqli available
Error : Nothing to do

您已经在您的服务器上安装了 cPanel 然后您将必须通过 easyapache 脚本在您的服务器上安装 php-mysqli 模块。您可以通过 WHM 或 SSH

安装它

WHM >> 软件 >> EasyApache 并遵循说明

并通过 SSH,请尝试使用以下命令

/scripts/easyapache