在CentOS8中安装php-mcrypt

技术运维CentOSNginx 1197

CentOS8默认安装源是没有php-mcrypt的,包括mysql的包也改了名了,不再是php-mysql

需要安装则需要更新安装源:

先更新系统

sudo dnf -y update

添加EPEL源

sudo dnf -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
sudo yum -y install http://rpms.remirepo.net/enterprise/remi-release-8.rpm

安装相关模块

用yum查找的方法

yum search php-mysql

安装

sudo dnf install php-fpm php-mysqlnd php-zip php-gd php-mcrypt php-mbstring php-curl php-xml php-pear php-bcmath php-json

Post Comment