Khi cài đặt module mcrypt mà không nhận trong phpinfo thì có thể làm theo cách dưới đây

Cài đặt thư viện

apt-get install php7.4-mcrypt
Tạo liện kết
ln -s /etc/php5/conf.d/mcrypt.ini /etc/php5/mods-available/mcrypt.ini
Mở mod
phpenmod mcrypt
Khởi động lại php
service php7.4-fpm restart
Restart nginx
sudo service nginx restart