우분투18 PHP 설치

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

1 개요[ | ]

우분투18 PHP + Apache2 설치

2 확인[ | ]

root@zetawiki:~# php -v

Command 'php' not found, but can be installed with:

apt install php7.2-cli
apt install hhvm

3 선택[ | ]

PHP7.2 CLI만 설치
apt install php7.2-cli
PHP7.2 + Apache2.4 설치 ★
apt install php

4 설치[ | ]

root@zetawiki:~# apt install php
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  apache2 apache2-bin apache2-data apache2-utils libapache2-mod-php7.2 libapr1 libaprutil1
  libaprutil1-dbd-sqlite3 libaprutil1-ldap liblua5.2-0 libsodium23 php-common php7.2
  php7.2-cli php7.2-common php7.2-json php7.2-opcache php7.2-readline ssl-cert
Suggested packages:
  www-browser apache2-doc apache2-suexec-pristine | apache2-suexec-custom php-pear
  openssl-blacklist
The following NEW packages will be installed:
  apache2 apache2-bin apache2-data apache2-utils libapache2-mod-php7.2 libapr1 libaprutil1
  libaprutil1-dbd-sqlite3 libaprutil1-ldap liblua5.2-0 libsodium23 php php-common php7.2
  php7.2-cli php7.2-common php7.2-json php7.2-opcache php7.2-readline ssl-cert
0 upgraded, 20 newly installed, 0 to remove and 102 not upgraded.
Need to get 5724 kB of archives.
After this operation, 24.5 MB of additional disk space will be used.
Do you want to continue? [Y/n]
Get:1 http://ap-northeast-2.ec2.archive.ubuntu.com/ubuntu bionic/main amd64 libapr1 amd64 1.6.3-2 [90.9 kB]
Get:2 http://ap-northeast-2.ec2.archive.ubuntu.com/ubuntu bionic/main amd64 libaprutil1 amd64 1.6.1-2 [84.4 kB]
Get:3 http://ap-northeast-2.ec2.archive.ubuntu.com/ubuntu bionic/main amd64 libaprutil1-dbd-sqlite3 amd64 1.6.1-2 [10.6 kB]
...
apache2_invoke: Enable module php7.2
Setting up php7.2 (7.2.10-0ubuntu0.18.04.1) ...######################################....] 
Setting up php (1:7.2+60ubuntu1) ...##################################################...] 
Processing triggers for libc-bin (2.27-3ubuntu1) ...####################################.] 
Processing triggers for ureadahead (0.100.0-20) ...
Processing triggers for systemd (237-3ubuntu10.3) ...
Processing triggers for ufw (0.35-5) ...

5 확인 2[ | ]

root@zetawiki:~# php -v
PHP 7.2.10-0ubuntu0.18.04.1 (cli) (built: Sep 13 2018 13:45:02) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies
    with Zend OPcache v7.2.10-0ubuntu0.18.04.1, Copyright (c) 1999-2018, by Zend Technologie
root@zetawiki:~# apache2 -v
Server version: Apache/2.4.29 (Ubuntu)
Server built:   2018-10-03T14:41:08

6 같이 보기[ | ]

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