Centos 7 php7.x install

1)
[xx@xxx ~]# yum install epel-release yum-utils -y

2)
[xx@xxx ~]# yum install http://rpms.remirepo.net/enterprise/remi-release-7.rpm

3)
To configure PHP 7.0 repository, use below command,
[xx@xxx ~]# yum-config-manager --enable remi-php70
To configure PHP 7.1 repository, use below command,
[xx@xxx ~]# yum-config-manager --enable remi-php71
To configure PHP 7.2 repository, use below command
[xx@xxx ~]# yum-config-manager --enable remi-php72

4)
[xx@xxx ~]# yum install php php-common php-opcache php-mcrypt php-cli php-gd php-curl php-mysql -y
[xx@xxx ~]# yum search php | more

5)
[xx@xxx ~]# php -v


[xx@xxx ~]# vi phpinfo.php
<?php
phpinfo();
?>

留言