Install php-mcrypt in webmin control panel
Login to webmin control panel and follow the steps below.
Webmin > System > Software Packages
Browse YUM for php-mcrypt (should return package for your Linux distro/arch)
Install
Webmin > System Information > Status
Restart Apache
Check the php module by adding a phpinfo page or executing below command via ssh.
php -m | grep mcrypt