centos6에 php완전 삭제 후 재설치

1)php 및 모듈 확인

rpm -qa php 

rpm -qa | grep php

 

 

2)완전삭제

yum -y remove php*

 

3)

먼저 epel-releaseyum 저장소를 추가한다 

yum install epel-release

 

운영체제 버전에 맞는 remi-release 설치

rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm

 

(centos8) sudo dnf install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm

 

yum --enablerepo=remi-php72 install php

 

yum --enablerepo=remi-php72 install php-xml php-soap php-xmlrpc php-mbstring php-json php-gd php-mcrypt php-mysql php-bcmath php-gd php-mysqlnd php-pear php-process php-devel php-json php-opcache php-pdo

댓글

Designed by JB FACTORY