You need to do the following steps to fix it. You need to change php version and library file name in the following command.
Find the files which is trying to load this library ( or any other )
grep -Hrv ";" /etc/php/7.0 | grep -E "extension(\s+)?=" | grep mcrypt
Then comment out the line in those files and restart apache