PHP mcrypt extension

From AbahDoku Wiki
Revision as of 13:34, 16 October 2023 by Akhyar (talk | contribs) (Created page with "Update apt update Install Development tools apt install -y build-essential Konfirmasi make dan gcc gcc --version make --version Install PHP, dev dan pear extensions apt install php php-pear php-dev libmcrypt-dev Konfirmasi pecl which pecl /usr/bin/pecl Cara menggunakan pecl pecl help Update Channel pecl channel-update pecl.php.net Updating channel "pecl.php.net" Update of Channel "pecl.php.net" succeeded pecl update-channels Updating channel "doc.php.n...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Update

apt update

Install Development tools

apt install -y build-essential

Konfirmasi make dan gcc

gcc --version
make --version

Install PHP, dev dan pear extensions

apt install php php-pear php-dev libmcrypt-dev 

Konfirmasi pecl

which pecl
/usr/bin/pecl

Cara menggunakan pecl

pecl help

Update Channel

pecl channel-update pecl.php.net

Updating channel "pecl.php.net"
Update of Channel "pecl.php.net" succeeded
pecl update-channels

Updating channel "doc.php.net"
Update of Channel "doc.php.net" succeeded
Updating channel "pear.php.net"
Update of Channel "pear.php.net" succeeded
Updating channel "pecl.php.net"
Channel "pecl.php.net" is up to date

Cari mcrypt extension

pecl search mcrypt
Retrieving data...0%
.Matched packages, channel pecl.php.net:
=======================================
Package       Stable/(Latest) Local
mcrypt        1.0.6 (stable)        Bindings for the libmcrypt library
mcrypt_filter 0.1.0 (beta)          Applies mcrypt symmetric encryption using stream filters

Install mcrypt

pecl install mcrypt

downloading mcrypt-1.0.6.tgz ...
Starting to download mcrypt-1.0.6.tgz (27,062 bytes)
.........done: 27,062 bytes
6 source files, building
running: phpize
Configuring for:
PHP Api Version:         20170718
Zend Module Api No:      20170718
Zend Extension Api No:   320170718
libmcrypt prefix? [autodetect] : <enter>