Centos7 yum 安装 php7.4.33

yum install epel.release -y
yum install -y http://rpms.remirepo.net/enterprise/remi-release-7.rpm

yum install -y php74-php \
php74-php-pear \
php74-php-pecl-mcrypt \
php74-php-pecl-mongodb \
php74-php-bcmath \
php74-php-common \
php74-php-xml \
php74-php-process \
php74-php-pecl-igbinary \
php74-php-pecl-igbinary-devel \
php74-php-devel \
php74-php-gd \
php74-php-pecl-memcached \
php74-php-mysqlnd \
php74-php-mbstring \
php74-php-embedded \
php74-php-cli \
php74-php-pdo \
php74-php-pecl-redis4  \
php74-php-phpiredis \
php74-php-fpm \
php74-php-opcache \
php74-php-pecl-event \
php74-php-pecl-swoole4

查看模块信息

 rpm -qa|grep php
php74-php-cli-7.4.33-8.el7.remi.x86_64
php74-php-sodium-7.4.33-8.el7.remi.x86_64
php74-php-xml-7.4.33-8.el7.remi.x86_64
php74-php-pecl-igbinary-devel-3.2.14-1.el7.remi.x86_64
php74-php-pecl-mongodb-1.17.0-1.el7.remi.x86_64
php74-php-mbstring-7.4.33-8.el7.remi.x86_64
php74-php-gd-7.4.33-8.el7.remi.x86_64
php74-runtime-7.4-3.el7.remi.x86_64
php74-php-common-7.4.33-8.el7.remi.x86_64
php74-php-pecl-igbinary-3.2.14-1.el7.remi.x86_64
php74-php-devel-7.4.33-8.el7.remi.x86_64
php74-php-pdo-7.4.33-8.el7.remi.x86_64
php74-php-process-7.4.33-8.el7.remi.x86_64
php74-php-pear-1.10.13-1.el7.remi.noarch
php74-php-7.4.33-8.el7.remi.x86_64
php74-php-pecl-redis5-5.3.7-1.el7.remi.x86_64
php74-php-phpiredis-1.0.1-1.el7.remi.x86_64
php74-php-pecl-event-3.0.8-1.el7.remi.x86_64
php74-php-opcache-7.4.33-8.el7.remi.x86_64
php74-php-pecl-mcrypt-1.0.6-1.el7.remi.x86_64
php74-php-fpm-7.4.33-8.el7.remi.x86_64
oniguruma5php-6.9.9-1.el7.remi.x86_64
gd3php-2.3.3-7.el7.remi.x86_64
php74-php-json-7.4.33-8.el7.remi.x86_64
php74-php-pecl-msgpack-2.2.0-1.el7.remi.x86_64
php74-php-mysqlnd-7.4.33-8.el7.remi.x86_64
php74-php-pecl-swoole4-4.8.13-1.el7.remi.x86_64
php74-php-pecl-memcached-3.2.0-1.el7.remi.x86_64
php74-php-embedded-7.4.33-8.el7.remi.x86_64
php74-php-bcmath-7.4.33-8.el7.remi.x86_64


查看路径
 rpm -ql php74-php-7.4.33-8.el7.remi.x86_64
/etc/httpd/conf.d/php74-php.conf
/etc/httpd/conf.modules.d/15-php74-php.conf
/opt/remi/php74/root/usr/lib64/httpd
/opt/remi/php74/root/usr/lib64/httpd/modules
/opt/remi/php74/root/usr/lib64/httpd/modules/libphp7.so
/usr/lib64/httpd/modules/libphp74.so
/var/opt/remi/php74/lib/php/opcache
/var/opt/remi/php74/lib/php/session
/var/opt/remi/php74/lib/php/wsdlcache


php74 -m|grep -E 'sockets|swoole|event|mysql|redis'
event
mysqli
mysqlnd
pdo_mysql
phpiredis
redis
sockets
swoole

修改用户:

cat /etc/opt/remi/php74/php-fpm.d/www.conf |grep www-data
user = www-data
group = www-data

软链接

cd /usr/bin/
ln -s php74 php
ln -s /opt/remi/php74/root/usr/sbin/php-fpm php-fpm

启动

systemctl start php74-php-fpm
或
php-fpm

-----------end

  • 0
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值