Author Topic: install php-mcrypt module on php7.2 centos7 directadmin  (Read 7183 times)

golfreeze

  • Administrator
  • Hero Member
  • *****
  • Posts: 2145
    • View Profile
    • นั่งสมาธิ สติปัฏฐานสี่ พาเที่ยววัด แนะนำวัด แจกcd ธรรมะฟรี
    • Email
install php-mcrypt module on php7.2 centos7 directadmin
« on: มกราคม 11, 2020, 10:57:23 PM »
==install php-mcrypt module on php7.2 centos7 directadmin
cd /usr/local/src
rm -rf mcrypt-*
/usr/local/php72/bin/pecl channel-update pecl.php.net
/usr/local/php72/bin/pecl download mcrypt || /usr/local/php72/bin/pecl download channel://pecl.php.net/mcrypt-1.0.1
tar -zxvf mcrypt-*.tgz && cd mcrypt-*/
/usr/local/php72/bin/phpize
./configure --with-php-config=/usr/local/php72/bin/php-config
make && make install
echo "extension=mcrypt.so" >> /usr/local/php72/lib/php.conf.d/90-custom.ini

==test
/usr/local/php72/bin/php -i | grep ^mcrypt

mcrypt
mcrypt support => enabled
mcrypt_filter support => enabled
mcrypt.algorithms_dir => no value => no value
mcrypt.modes_dir => no value => no value

special thank : https://help.poralix.com/articles/install-mcrypt-for-php-72-on-directadmin-server

golfreeze

  • Administrator
  • Hero Member
  • *****
  • Posts: 2145
    • View Profile
    • นั่งสมาธิ สติปัฏฐานสี่ พาเที่ยววัด แนะนำวัด แจกcd ธรรมะฟรี
    • Email
Re: install php-mcrypt module on php7.2 centos7 directadmin
« Reply #1 on: มกราคม 11, 2020, 11:14:54 PM »
=== install php mcrypt module without directadmin
yum install php72-php-pecl-mcrypt.x86_64
yum install libmcrypt libmcrypt-devel

updatedb

vi /etc/php.ini
added
extension=/opt/remi/php72/root/usr/lib64/php/modules/mcrypt.so