Installing PHP 7 on Centos 7

We update the operating system

[[email protected]]# yum update

Add the REMI repository

[[email protected]]# rpm -ivh http://rpms.remirepo.net/enterprise/remi-release-7.rpm

Installing the utility for working with repositories

[[email protected]]# yum install yum-utils

Connect the repository to install php version 7.2

[[email protected]]# yum-config-manager --enable remi-php72

Install php and additional libraries for it

[[email protected]]# yum install php php-xml php-soap php-xmlrpc php-mbstring php-json php-gd php-mcrypt php-common php-devel php-fpm php-pdo php-mysqlnd php-imap php-embedded php-ldap php-odbc curl curl-devel
Sidebar