Install php 7 Centos 7

Install php 7 Centos 7

Setup Yum Repository

[root@webdemo ~]# yum install epel-release

[root@webdemo ~]# rpm -Uvh

And then, enabled remo remi and disabled repo epel

[root@webdemo ~]# vi /etc/yum.repos.d/epel.repo

[root@webdemo ~]# vi /etc/yum.repos.d/remi.repo

Install addon

[root@webdemo ~]# yum install nano wget zip gzip unzip

Instal PHP 7

Install PHP 7.3

[root@webdemo ~]# yum –enablerepo=remi-php73 install php

Install PHP 7.2

[root@webdemo ~]# yum –enablerepo=remi-php72 install php

Install PHP 7.1

[root@webdemo ~]# yum –enablerepo=remi-php71 install php

[root@webdemo ~]# yum –enablerepo=remi-php73 install php php-pdo php-cli php-mysql php-gd php-imap php-ldap php-odbc php-pear php-xml php-xmlrpc php-magickwand php-magpierss php-mbstring php-mcrypt php-mssql php-shout php-snmp php-soap php-tidy php-curl –skip-broken


Be the first to comment

Leave a Reply

Your email address will not be published.


This site uses Akismet to reduce spam. Learn how your comment data is processed.