CentOS PHP7.2 업데이트
페이지 정보
작성자 sbLAB 댓글 0건 조회 8,026회 작성일 18-11-21 01:09본문
# yum update
// epel 저장소 추가
# rpm -Uvh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
//remi 저장소 추가
# rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
// php7 버젼 확인
# yum --enablerepo=remi list php7*
// 기존 php 패키지 삭제
# yum remove php*
// php7 설치
# yum --enablerepo=remi install php72 php72-php php72-php-cli php72-php-common php72-php-gd php72-php-json php72-php-mbstring php72-php-mcrypt php72-php-mysqlnd php72-php-opcache php72-php-pear php72-php-xml php72-php-devel php72-php-imagick
// php버전을 확인하고 php72 를 php로 심볼릭링크 걸어줌.
# scl enable php72 'php -v'
# ln -s /usr/bin/php72 /usr/bin/php
php.ini의 위치가 변경됨
/etc/php.ini -> /etc/opt/remi/php72/php.ini
php.ini 환경설정
# vi /etc/opt/remi/php72/php.ini
date.timezone = Asia/Seoul
upload_max_filesize = 10M
short_open_tag = On
display_errors = On
[서비스 재시작]
service mysqld restart
service httpd restart
댓글목록
등록된 댓글이 없습니다.