우분투 PHP5 설치

(우분투 php5 설치에서 넘어옴)
우분투 PHP 설치
우분투 PHP5 설치
apt-get install php5
우분투 The program 'php' is currently not installed.

1 확인[ | ]

root@zetawiki:~# php -v
The program 'php' is currently not installed. You can install it
apt-get install php5-cli

2 설치[ | ]

root@zetawiki:~# apt-get install php5
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following extra packages will be installed:
  php5-common php5-json php5-readline
Suggested packages:
  php-pear php5-user-cache
The following NEW packages will be installed:
  php5-cli php5-common php5-json php5-readline
0 upgraded, 4 newly installed, 0 to remove and 84 not upgraded.
Need to get 2,652 kB of archives.
After this operation, 10.5 MB of additional disk space will be used.
Do you want to continue? [Y/n]
Get:1 http://kr.archive.ubuntu.com/ubuntu/ precise-updates/main php5-common amd64 5.3.10-1ubuntu3.15 [1,772 kB]
Get:2 http://kr.archive.ubuntu.com/ubuntu/ precise-updates/main php5-cli amd64 5.3.10-1ubuntu3.15 [3,051 kB]
Fetched 4,823 kB in 1s (3,908 kB/s) 
Selecting previously unselected package php5-common.
(Reading database ... 93103 files and directories currently installed.)
Unpacking php5-common (from .../php5-common_5.3.10-1ubuntu3.15_amd64.deb) ...
Selecting previously unselected package php5-cli.
Unpacking php5-cli (from .../php5-cli_5.3.10-1ubuntu3.15_amd64.deb) ...
Processing triggers for man-db ...
Setting up php5-common (5.3.10-1ubuntu3.15) ...
Setting up php5-cli (5.3.10-1ubuntu3.15) ...

Creating config file /etc/php5/cli/php.ini with new version
update-alternatives: using /usr/bin/php5 to provide /usr/bin/php (php) in auto mode.

3 확인[ | ]

root@zetawiki:~# php -v
PHP 5.5.9-1ubuntu4.16 (cli) (built: Apr 20 2016 14:31:27) 
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.5.0, Copyright (c) 1998-2014 Zend Technologies
    with Zend OPcache v7.0.3, Copyright (c) 1999-2014, by Zend Technologies

4 같이 보기[ | ]

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