mcrypt installation

Develop

Verified User
Joined
Jun 9, 2016
Messages
155
Location
Istanbul, TR
Hello,

I need to install mcrypt both verison php works on directadmin php5.6 and php7.x
I found that:

yum -y install php-mcrypt

For gmp

yum install php-gmp

cd /usr/local/directadmin/custombuild
./build php n

There is any other action for installation done?

yum -y install php-mcrypt

Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: centos.vargonen.com
* epel: repo.boun.edu.tr
* extras: mirror.radoreservers.com
* updates: mirror.radoreservers.com
No package php-mcrypt available.
Error: Nothing to do
 
Last edited:
Hello,

If you use PHP built by directadmin then it's already compiled with a mcrypt support. Check with:

Code:
php -i |grep mcrypt --color
 
Hello,

# php -i |grep mcrypt --color
Configure Command => './configure' '--with-apxs2' '--with-config-file-scan-dir=/usr/local/lib/php.conf.d' '--with-curl=/usr/local/lib' '--with-gd' '--enable-gd-native-ttf' '--with-gettext' '--with-jpeg-dir=/usr/local/lib' '--with-freetype-dir=/usr/local/lib' '--with-libxml-dir=/usr/local/lib' '--with-kerberos' '--with-openssl' '--with-imap=/usr/local/imap-2007f' '--with-imap-ssl' '--with-mcrypt' '--with-mhash' '--with-mysql=mysqlnd' '--with-mysql-sock=/var/lib/mysql/mysql.sock' '--with-mysqli=mysqlnd' '--with-pcre-regex=/usr/local' '--with-pdo-mysql=mysqlnd' '--with-pear' '--with-png-dir=/usr/local/lib' '--with-xsl' '--with-zlib' '--with-zlib-dir=/usr/local/lib' '--enable-zip' '--with-iconv=/usr/local' '--enable-bcmath' '--enable-calendar' '--enable-ftp' '--enable-sockets' '--enable-soap' '--enable-mbstring' '--with-icu-dir=/usr/local/icu' '--enable-intl'
Registered Stream Filters => zlib.*, convert.iconv.*, mcrypt.*, mdecrypt.*, string.rot13, string.toupper, string.tolower, string.strip_tags, convert.*, consumed, dechunk
mcrypt
mcrypt support => enabled
mcrypt_filter support => enabled
mcrypt.algorithms_dir => no value => no value
mcrypt.modes_dir => no value => no value


Server has 2 php

Default php 5.63 support mcrypt
not support gmp extension, gmp extension, mailparse extension (need enable them)

Second php 7.2.0
not support mcrypt, gmp extension, imap extension, mailparse extension (need ebable them)
 
The other think is about only for default php 5.6.3

I have installed extensions for php72

/usr/local/php${PHP_VER}/bin/pecl download ${PECL_EXT}
/usr/local/php72/bin/pecl download mailparse

but for php 5.6.3 there is no folder /usr/local/php56
 
With mod_php it's installed into a default location, so you can use simply pecl without a full path. The guide does not cover mod_php, so you need to modify paths accordingly.
 
Great, thanks.

/usr/local/php${PHP_VER}/bin/pecl download ${PECL_EXT}
/usr/local/php72/bin/pecl download mailparse

for php 5.6.3 /usr/local/bin/pecl (worked :o)

Default php56 gmp, imap, mailparse done.
with php72 imap and gmp has problem
 
Last edited:
Back
Top