CentOS7.7.1908にphp7.4をインストールするメモ

1.OSバージョン確認
# cat /etc/redhat-release
CentOS Linux release 7.7.1908 (Core)

2.php74インストールコマンド
#yum –enablerepo=epel,remi,remi-php74 install php74 php74-php-mcrypt php74-php-mbstring php74-php-fpm php74-php-gd php74-php-pecl-xdebug php74-php-pecl-redis php74-php-pecl-imagick-devel php74-php-pecl-imagick php74-php-mysqlnd php74-php-intl php74-php-bcmath php74-php-pecl-zip php74-php-xmlrpc php74-php-xml php74-php-pecl-http php74-php-pecl-http-devel php74-php-opcache
過程
297 packages excluded due to repository priority protections
Package php74-1.0-3.el7.remi.x86_64 already installed and latest version
Resolving Dependencies
–> Running transaction check
—> Package php74-php-bcmath.x86_64 0:7.4.7-1.el7.remi will be installed
—> Package php74-php-fpm.x86_64 0:7.4.7-1.el7.remi will be installed
—> Package php74-php-gd.x86_64 0:7.4.7-1.el7.remi will be installed
—> Package php74-php-intl.x86_64 0:7.4.7-1.el7.remi will be installed
–> Processing Dependency: libicudata.so.62()(64bit) for package: php74-php-intl-7.4.7-1.el7.remi.x86_64
–> Processing Dependency: libicui18n.so.62()(64bit) for package: php74-php-intl-7.4.7-1.el7.remi.x86_64
–> Processing Dependency: libicuio.so.62()(64bit) for package: php74-php-intl-7.4.7-1.el7.remi.x86_64
–> Processing Dependency: libicuuc.so.62()(64bit) for package: php74-php-intl-7.4.7-1.el7.remi.x86_64

3.php74-php-fpm起動
起動
#systemctl start php74-php-fpm
停止
#systemctl stop php74-php-fpm
再起動
#systemctl restart php74-php-fpm

状態確認
# systemctl status php74-php-fpm
* php74-php-fpm.service – The PHP FastCGI Process Manager
Loaded: loaded (/usr/lib/systemd/system/php74-php-fpm.service; disabled; vendor preset: disabled)
Active: active (running) since Tue xxx-xx-xx 20:25:17 JST; 4min 47s ago
Main PID: 2680 (php-fpm)
Status: “Processes active: 0, idle: 7, Requests: 55, slow: 0, Traffic: 0.1req/sec"
CGroup: /system.slice/php74-php-fpm.service
|-2680 php-fpm: master process (/etc/opt/remi/php74/php-fpm.conf)
|-2681 php-fpm: pool www
|-2682 php-fpm: pool www
|-2683 php-fpm: pool www
|-2684 php-fpm: pool www
|-2685 php-fpm: pool www
|-2689 php-fpm: pool www
`-2855 php-fpm: pool www

Linux

Posted by arkgame