-설치확인
rpm -qa|grep php
1. 저장소 설치
가. epel-release 설치
#rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
나. remi-repository 설치
#rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-7.rpm
2. 이전버전 삭제
#yum remove php*
3. 설치
#yum --enablerepo=remi-php56 install php
#yum --enablerepo=remi-php56 install php-mysql
#yum --enablerepo=remi-php56 install php-mbstring
#yum --enablerepo=remi-php56 install php-mcrypt
#yum --enablerepo=remi-php56 install php-xml
-SELINUX 문제
php로 원격 DB에 접속이 안되는 경우...
#sestatus 로 상태 확인
vi /etc/sysconfig/selinux
SELINUX=disabled 로 변경후 재부팅
'IT > PHP' 카테고리의 다른 글
php-mysqli utf8 인코딩문제 (0) | 2022.08.31 |
---|---|
PHP 문서 확장자 숨기기 (0) | 2022.08.31 |
PHP 메모리 시간제한 늘리기 (0) | 2022.08.31 |
PHP 배열 집합 연산 (0) | 2022.08.31 |