Jmnote bot (토론 | 기여) 잔글 (봇: Jmnote의 2017-05-13T15:29:31Z 에 작성한 254262 판으로 되돌림) |
Jmnote bot (토론 | 기여) 잔글 (봇: 자동으로 텍스트 교체 (-source +syntaxhighlight)) |
||
6번째 줄: | 6번째 줄: | ||
==확인== | ==확인== | ||
< | <syntaxhighlight lang='console'> | ||
root@zetawiki:~# php -v | root@zetawiki:~# php -v | ||
The program 'php' is currently not installed. You can install it | The program 'php' is currently not installed. You can install it | ||
apt-get install php5-cli | apt-get install php5-cli | ||
</ | </syntaxhighlight> | ||
==설치== | ==설치== | ||
< | <syntaxhighlight lang='console'> | ||
root@zetawiki:~# apt-get install php5 | root@zetawiki:~# apt-get install php5 | ||
Reading package lists... Done | Reading package lists... Done | ||
28번째 줄: | 28번째 줄: | ||
After this operation, 10.5 MB of additional disk space will be used. | After this operation, 10.5 MB of additional disk space will be used. | ||
Do you want to continue? [Y/n] | Do you want to continue? [Y/n] | ||
</ | </syntaxhighlight> | ||
< | <syntaxhighlight lang='console'> | ||
Get:1 http://kr.archive.ubuntu.com/ubuntu/ precise-updates/main php5-common amd64 5.3.10-1ubuntu3.15 [1,772 kB] | 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] | Get:2 http://kr.archive.ubuntu.com/ubuntu/ precise-updates/main php5-cli amd64 5.3.10-1ubuntu3.15 [3,051 kB] | ||
44번째 줄: | 44번째 줄: | ||
Creating config file /etc/php5/cli/php.ini with new version | 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. | update-alternatives: using /usr/bin/php5 to provide /usr/bin/php (php) in auto mode. | ||
</ | </syntaxhighlight> | ||
==확인== | ==확인== | ||
< | <syntaxhighlight lang='console'> | ||
root@zetawiki:~# php -v | root@zetawiki:~# php -v | ||
PHP 5.5.9-1ubuntu4.16 (cli) (built: Apr 20 2016 14:31:27) | PHP 5.5.9-1ubuntu4.16 (cli) (built: Apr 20 2016 14:31:27) | ||
53번째 줄: | 53번째 줄: | ||
Zend Engine v2.5.0, Copyright (c) 1998-2014 Zend Technologies | Zend Engine v2.5.0, Copyright (c) 1998-2014 Zend Technologies | ||
with Zend OPcache v7.0.3, Copyright (c) 1999-2014, by Zend Technologies | with Zend OPcache v7.0.3, Copyright (c) 1999-2014, by Zend Technologies | ||
</ | </syntaxhighlight> | ||
==같이 보기== | ==같이 보기== |
2020년 11월 2일 (월) 00:57 기준 최신판
✔️ 우분투 12, 우분투 14에서 테스트하였습니다.
- 우분투 PHP 설치
- 우분투 PHP5 설치
- apt-get install php5
- 우분투 The program 'php' is currently not installed.
1 확인[ | ]
Console
Copy
root@zetawiki:~# php -v
The program 'php' is currently not installed. You can install it
apt-get install php5-cli
2 설치[ | ]
Console
Copy
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]
Console
Copy
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 확인[ | ]
Console
Copy
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 같이 보기[ | ]
편집자 Jmnote Jmnote bot
로그인하시면 댓글을 쓸 수 있습니다.