-
Notifications
You must be signed in to change notification settings - Fork 32
php 71 install
Been Kyung-yoon edited this page Feb 1, 2017
·
2 revisions
- 설치 과정에서 stack.conf 를 열어
PHP71=1
처럼 PHP71 의 변수의 값을 0 에서 1로 변경하면 됩니다. -
./install.sh
를 실행하여 설치를 진행하면 됩니다.
-
./self-update.sh
를 실행하여 stack 을 v0.9.11 이상으로 업데이트합니다. - stack.conf 파일의
PHP70=
다음 라인에PHP71=1
를 추가 합니다. -
./install.sh
를 실행하여 설치를 진행하면 됩니다. (이미 설치된 PHP/mariadb/nginx 등은 중복 설치되거나 기존 설정을 건드리지 않습니다.)
[root@localhost stack]# cd /root/stack && ./self-update.sh
[root@localhost stack]# vim stack.conf
PHP71=1
[root@localhost stack]# ./install.sh
php79 stack version 0.9.10
* PHP 5.3-7.1 + Nginx + MariaDB installer
Install options:
- Install EPEL repo / http://fedoraproject.org/wiki/EPEL
- Install PHP 7.1 from Remi repo / http://rpms.famillecollet.com/
...
Do you want to install? (위 패키지들을 설치하시겠습니까?) [n/Y] y
### PHP [71] 버전을 설치합니다. ###
...
Downloading Packages:
(1/16): ImageMagick6-libs-6.9.7.6-1.el6.remi.x86_64.rpm | 2.1 MB 00:11
(2/16): php70-php-pecl-imagick-3.4.3-0.8.RC4.el6.remi.x86_64.rpm | 119 kB 00:00
(3/16): php71-php-cli-7.1.1-1.el6.remi.x86_64.rpm | 2.7 MB 00:12
(4/16): php71-php-common-7.1.1-1.el6.remi.x86_64.rpm | 588 kB 00:02
(5/16): php71-php-fpm-7.1.1-1.el6.remi.x86_64.rpm | 1.4 MB 00:06
(6/16): php71-php-gd-7.1.1-1.el6.remi.x86_64.rpm | 64 kB 00:00
(7/16): php71-php-json-7.1.1-1.el6.remi.x86_64.rpm | 55 kB 00:00
(8/16): php71-php-mbstring-7.1.1-1.el6.remi.x86_64.rpm | 515 kB 00:02
(9/16): php71-php-mcrypt-7.1.1-1.el6.remi.x86_64.rpm | 52 kB 00:00
(10/16): php71-php-mysqlnd-7.1.1-1.el6.remi.x86_64.rpm | 157 kB 00:00
(11/16): php71-php-opcache-7.1.1-1.el6.remi.x86_64.rpm | 183 kB 00:00
(12/16): php71-php-pdo-7.1.1-1.el6.remi.x86_64.rpm | 95 kB 00:00
(13/16): php71-php-pecl-imagick-3.4.3-0.8.RC4.el6.remi.x86_64.rpm | 119 kB 00:00
(14/16): php71-php-pecl-mysql-1.0.0-0.15.20160812git230a828.el6.remi.x86_64.rpm | 25 kB 00:00
(15/16): php71-php-xml-7.1.1-1.el6.remi.x86_64.rpm | 148 kB 00:00
(16/16): php71-runtime-1.0-1.el6.remi.x86_64.rpm | 1.0 MB 00:04
...
Notice) PHP 권장 설정이 추가되었습니다.
설정 파일 경로) /etc/opt/remi/php71/php.d/z-php79.ini
...
`/root/stack/nginx/1-fastcgi-php71.conf' -> `/etc/nginx/conf.d/1-fastcgi-php71.conf'
...
### 설치된 PHP 버전 정보 ###
CLI path Version Service name
/usr/bin/php 7.0.13 php70-php-fpm
/usr/bin/php70 7.0.13 php70-php-fpm
/usr/bin/php71 7.1.1 php71-php-fpm
* PHP FPM 재시작 명령: service php71-php-fpm restart
### 실행중인 PHP FPM port ###
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 127.0.0.1:9070 0.0.0.0:* LISTEN 1773/php-fpm
tcp 0 0 127.0.0.1:9071 0.0.0.0:* LISTEN 2314/php-fpm
...
관련 이슈 : https://github.com/php79/stack/issues/23, https://github.com/php79/stack/issues/27