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