-
php7.0에서 php7.1로 업데이트 (Debian 9, Apache2)리눅스 2019. 8. 27. 12:01
저장소 추가
$ apt-get install apt-transport-https lsb-release ca-certificates $ wget -O /etc/apt/trusted.gpg.d/php.gpg https://packages.sury.org/php/apt.gpg $ echo "deb https://packages.sury.org/php/ $(lsb_release -sc) main" > /etc/apt/sources.list.d/php.list $ apt-get update
php7.1 설치
$ apt-get install php7.1
추가 패키지 설치
$ apt-get install php7.1-cli php7.1-common php7.1-curl php7.1-gd php7.1-json php7.1-mbstring php7.1-mysql php7.1-opcache php7.1-readline php7.1-xml
apache2 php7.0 모듈 비활성화
$ a2dismod php7.0
apache2 php7.1 모듈 활성화
$ a2enmod php7.1
apache2 재시작
$ service apache2 restart
댓글