Для установки php 7 для запуска mcrypt:
Centos: sudo yum install php7.0-mcrypt для установки
На Ubuntu: sudo apt-get install php7.0-mcrypt