remi源安装php

安装epel源

yum install epel-release -y

安装remi源

yum install https://mirrors.tuna.tsinghua.edu.cn/remi/enterprise/remi-release-7.rpm -y

安装yum-config-manager

yum install yum-utils -y

启用指定remi的php仓库

yum-config-manager --enable remi-php74
yum install -y php

或者
yum --enablerepo=remi-php74 install php -y

安装php常用扩展

yum --enablerepo=remi-php74 install php-gmp php-zip php-xml php-soap php-xmlrpc php-mbstring php-json php-gd php-mcrypt php-devel php-mysql php-gd php-bcmath php-pdo php-pecl-imagick php-fpm php-curl php-devel php-pear -y

启动php-fpm

systemctl start php-fpm

posted @ 2023-04-16 21:52  na1ve  阅读(231)  评论(0)    收藏  举报