우분투16 PHP7 설치

(우분투 PHP7 설치에서 넘어옴)
우분투16 PHP7 설치

1 확인[ | ]

root@zetawiki:~# php -v
-bash: php: command not found

2 설치[ | ]

root@zetawiki:~# apt-get install php
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  php-common php7.0 php7.0-cli php7.0-common php7.0-fpm php7.0-json php7.0-opcache
  php7.0-readline psmisc
Suggested packages:
  php-pear
The following NEW packages will be installed:
  php php-common php7.0 php7.0-cli php7.0-common php7.0-fpm php7.0-json php7.0-opcache
  php7.0-readline psmisc
0 upgraded, 10 newly installed, 0 to remove and 38 not upgraded.
Need to get 3,579 kB of archives.
After this operation, 14.4 MB of additional disk space will be used.
Do you want to continue? [Y/n]
Get:1 http://kr.archive.ubuntu.com/ubuntu xenial/main amd64 psmisc amd64 22.21-2.1build1 [48.0 kB]
Get:2 http://kr.archive.ubuntu.com/ubuntu xenial/main amd64 php-common all 1:35ubuntu6 [10.8 kB]
Get:3 http://kr.archive.ubuntu.com/ubuntu xenial-updates/main amd64 php7.0-common amd64 7.0.15-0ubuntu0.16.04.4 [836 kB]
... (생략)
Setting up php (1:7.0+35ubuntu6) ...
Processing triggers for systemd (229-4ubuntu16) ...
Processing triggers for ureadahead (0.100.0-19) ...

3 확인 2[ | ]

root@zetawiki:~# php -v
PHP 7.0.15-0ubuntu0.16.04.4 (cli) ( NTS )
Copyright (c) 1997-2017 The PHP Group
Zend Engine v3.0.0, Copyright (c) 1998-2017 Zend Technologies
    with Zend OPcache v7.0.15-0ubuntu0.16.04.4, Copyright (c) 1999-2017, by Zend Technologies

4 같이 보기[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}