우분투16 php-mcrypt 설치

(우분투 php-mcrypt 설치에서 넘어옴)
24px-Disambig_grey.svg.png 다른 뜻에 대해서는 CentOS php-mcrypt 설치 문서를 참조하십시오.

1 개요[편집]

apt install php-mcrypt
우분투 php-mcrypt 설치
우분투16 php-mcrypt 설치
phpseclib/phpseclib suggests installing ext-mcrypt (Install the Mcrypt extension in order to speed up a few other cryptographic operations.)

2 확인[편집]

root@zetawiki:~# php -m | grep mcrypt
root@zetawiki:~# php -r "mcrypt_create_iv();"
PHP Fatal error:  Uncaught Error: Call to undefined function mcrypt_create_iv() in Command line code:1
Stack trace:
#0 {main}
  thrown in Command line code on line 1
root@zetawiki:~# apt list php-mcrypt
Listing... Done
php-mcrypt/xenial 1:7.1+53~ubuntu16.04.1+deb.sury.org+1 all
N: There is 1 additional version. Please use the '-a' switch to see it

3 설치[편집]

root@zetawiki:~# apt install php-mcrypt
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  libmcrypt4 php7.1-mcrypt
Suggested packages:
  libmcrypt-dev mcrypt
The following NEW packages will be installed:
  libmcrypt4 php-mcrypt php7.1-mcrypt
0 upgraded, 3 newly installed, 0 to remove and 93 not upgraded.
Need to get 82.8 kB of archives.
After this operation, 306 kB of additional disk space will be used.
Do you want to continue? [Y/n]
Get:1 http://archive.ubuntu.com/ubuntu xenial/universe amd64 libmcrypt4 amd64 2.5.8-3.3 [63.0 kB]
Get:2 http://ppa.launchpad.net/ondrej/php/ubuntu xenial/main amd64 php7.1-mcrypt amd64 7.1.7.retag-1+ubuntu16.04.1+deb.sury.org+1 [14.5 kB]
Get:3 http://ppa.launchpad.net/ondrej/php/ubuntu xenial/main amd64 php-mcrypt all 1:7.1+53~ubuntu16.04.1+deb.sury.org+1 [5,320 B]
Fetched 82.8 kB in 3s (27.4 kB/s)     
Selecting previously unselected package libmcrypt4.
(Reading database ... 87229 files and directories currently installed.)
Preparing to unpack .../libmcrypt4_2.5.8-3.3_amd64.deb ...
Unpacking libmcrypt4 (2.5.8-3.3) .......................................................] 
Selecting previously unselected package php7.1-mcrypt...................................] 
Preparing to unpack .../php7.1-mcrypt_7.1.7.retag-1+ubuntu16.04.1+deb.sury.org+1_amd64.deb ...
Unpacking php7.1-mcrypt (7.1.7.retag-1+ubuntu16.04.1+deb.sury.org+1) ...................] 
Selecting previously unselected package php-mcrypt......................................] 
Preparing to unpack .../php-mcrypt_1%3a7.1+53~ubuntu16.04.1+deb.sury.org+1_all.deb ...
Unpacking php-mcrypt (1:7.1+53~ubuntu16.04.1+deb.sury.org+1) ...........................] 
Processing triggers for libapache2-mod-php7.1 (7.1.7.retag-1+ubuntu16.04.1+deb.sury.org+1) ...
Setting up libmcrypt4 (2.5.8-3.3) ...
Setting up php7.1-mcrypt (7.1.7.retag-1+ubuntu16.04.1+deb.sury.org+1) ..................] 
Progress: [ 75%] [#####################################################.................] 
Creating config file /etc/php/7.1/mods-available/mcrypt.ini with new version
Setting up php-mcrypt (1:7.1+53~ubuntu16.04.1+deb.sury.org+1) ...##########.............] 
Processing triggers for libc-bin (2.23-0ubuntu9) ...################################....] 
Processing triggers for libapache2-mod-php7.1 (7.1.7.retag-1+ubuntu16.04.1+deb.sury.org+1) ...

4 확인 2[편집]

root@zetawiki:~# apt list php-mcrypt
Listing... Done
php-mcrypt/xenial,now 1:7.1+53~ubuntu16.04.1+deb.sury.org+1 all [installed]
N: There is 1 additional version. Please use the '-a' switch to see it
root@zetawiki:~# php -m | grep mcrypt
mcrypt
root@zetawiki:~# php -r "mcrypt_create_iv();"
PHP Warning:  mcrypt_create_iv() expects at least 1 parameter, 0 given in Command line code on line 1

5 같이 보기[편집]

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