Installation Source
EPEL installation package:
$ sudo yum install epel-release
Installation remi Source:
$ sudo yum install http://rpms.remirepo.net/enterprise/remi-release-7.rpm
Install yum Expansion Pack:
$ sudo yum install yum-utils
Enable remi repository:
$ sudo yum-config-manager --enable remi-php72 $ sudo yum update
Installation PHP service
Installation PHP7 , 2
$ sudo yum install php72
Enter php72 -v see the installation results
Installation php-fpm and other modules:
$ sudo yum install php72-php-fpm php72-php-gd php72-php-json php72-php-mbstring php72-php-mysqlnd php72-php-xml php72-php-xmlrpc php72-php-opcache
php-fpm Service
Set boot from Kai
$ sudo systemctl enable php72-php-fpm.service
Common php-fpm command
# Enable Service
$ sudo systemctl start php72-php-fpm.service
# Out of service
$ sudo systemctl stop php72-php-fpm.service
# View status
$ sudo systemctl status php72-php-fpm.service
# Restart Service
sudo systemctl restart php72-php-fpm.service