Install Mcrypt Extension for PHP 7.4 on cPanel

Install mcrypt extension untuk php 7.4 pada cpanel

  • Mcrypt extension sudah tidak tersedia di cpanel easyapache untuk versi php7.2 sampai paling yang terbaru 8.0. Untuk instalasi mcrypt pada php7.4 bisa dilakukan dengan langkah seperti berikut:
  • Install the libmcrypt extension
yum install libmcrypt -y
  • Install repo epel
yum install epel-release -y
  • Install the libmcrypt-devel package
yum install libmcrypt-devel -y
  • Install mcrypt via pecl
/opt/cpanel/ea-php74/root/usr/bin/pecl install mcrypt
  • Jalankan kebali untuk cek status mcrypt
/opt/cpanel/ea-php74/root/usr/bin/pecl install mcrypt

pecl/mcrypt is already installed and is the same as the released version 1.0.4
install failed
  • Restart HTTP Server (Apache) dan PHP-FPM Service pada WHM

herdiana3389

A system administrator with skills in system administration, virtualization, linux, windows, networking, cloud computing, container, etc.