makeBCT

#AI #OpenAI #Chatbot #Cloud #WordPress

CentOS 7에서 php 7.2 버전으로 업데이트 방법 (yum 방식)

이 글은 이전 CentOS7.0 에서 yum 방식으로 php5.6.x 버전 설치하기 이후 PHP 7.2 버전으로 업데이트 하는 방법을 설명하고 있습니다. 업데이트 순서는 다음과 같습니다.

 

우선 remi repository를 yum 에 추가 합니다.

 

$ 더블유겟 https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
$ rpm -Uvh epel-release-latest-7.noarch.rpm
$ 더블유겟 http://rpms.remirepo.net/enterprise/remi-release-7.rpm
$ rpm -Uvh remi-release-7.rpm

$ yum-config-manager –enable remi-php72

 

만약 설치되지 않고 dependency로 인해 정상 설치 되지 않은 경우 설치된 php 및 패키지를 먼저 삭제하고 다시 설치를 합니다.

 

PHP 패키지 삭제

 

# yum remove php php-bcmath php-cli php-common php-devel php-gd php-mbstring php-mysql php-odbc php-pdo php-process php-xml php-xmlrpc

 

PHP 패키지 설치

 

# yum install –enablerepo=remi –enablerepo=remi-php56 php php-bcmath php-cli php-common php-devel php-gd php-mbstring php-mysql php-odbc php-pdo php-process php-xml php-xmlrpc (필요한 패키지 나열)

 

정상 설치되지 않고 하단과 같은 에러가 뜹니다.

 

Error: Package: php-cli-7.2.12-1.el7.remi.x86_64 (remi-php72)
Requires: libargon2.so.0()(64bit)
Error: Package: php-7.2.12-1.el7.remi.x86_64 (remi-php72)
Requires: libargon2.so.0()(64bit)

 

 

libargon2 패키지 설치

 

# 더블유겟 https://dl.fedoraproject.org/pub/epel/7/x86_64/Packages/l/libargon2-20161029-3.el7.x86_64.rpm

# rpm -Uvh libargon2-20161029-3.el7.x86_64.rpm

# 더블유겟 https://dl.fedoraproject.org/pub/epel/7/x86_64/Packages/l/libargon2-devel-20161029-3.el7.x86_64.rpm

# rpm -Uvh libargon2-devel-20161029-3.el7.x86_64.rpm

 

PHP 패키지 재설치

 

# yum install –enablerepo=remi –enablerepo=remi-php56 php php-bcmath php-cli php-common php-devel php-gd php-mbstring php-mysql php-odbc php-pdo php-process php-xml php-xmlrpc (필요한 패키지 나열)

 

정상 설치된 경우 다음과 같은 메시지 볼 수 있습니다.

 

 

아파치 재시작

 

# systemctl restart httpd

 

 

PHP 버전 확인

 

 

 

 

Leave a Reply

Your email address will not be published. Required fields are marked *

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

인기 글

사용자 작성 모듈 import 시 에러)(ModuleNotFoundError: No module named
파이썬 모듈을 만들고 테스트 할 때 ModuleNotFoundError: No module named 에러가 발생한 경우원인파이썬은 모듈을 불러올 때 모듈 설치 경로와 자신의...
오라클 클라우드 OCI 가입 드디어 성공 했습니다 (상세 후기)
2023년 2월 16일에 ‘오라클 클라우드 지급 검증 실패 글‘을 남긴 적이 있습니다.그 때 검색을 통해 해결 방법을 찾아 보았고, 당시 성공했던 분들의...
Permission denied (publickey) 해결 방법
Plesk에서 생성된 system user로 ftp 접속 시 다음과 같은 에러 메시지가 발생하면서 접속이 되지 않습니다.상태: 152.67.193.32:49152에 연결... 응답: fzSftp...
WSL2/Ubuntu 22.04 LTS에 Anaconda 설치 
WSL2/Ubuntu 환경에서 Python 버전별로 가상환경을 만드는 방법 중 그나마 Anaconda 방법이 좋은 것 같네요. 설치 방법은 간단합니다.1. apt update사용자...
[Ubuntu] ufw 방화벽 설정
ufw란?iptables 보다 쉽고 직관적으로 방화벽 설정을 할 수 있는 패키지ufw 상태 관리 명령어ufw의 상태를 관리하는 명령어# ufw 활성화 $ sudo...

BCT Ai Chatbot

답변을 준비중입니다 . . .