Steve (great name, by the way!),
When upgrading PHP versions, the individual modules aren’t necessarily upgraded as well, so you’ll want to ensure the same packages you were using with PHP 7.0 are installed on your server for PHP 7.2.
First, I’d start by trying to explicitly enable the module by running phpenmod mcrypt
, then restarting PHP-FPM and your web server.
If the mcrypt module can’t be found, you may find yourself needing to install it: in a Debian-based environment (such as Ubuntu), you can run dkpg -l | grep php
to retrieve a list of all installed packages that contain the slug “php”.
Then, for each item you see that starts with “php7.0-” (e.g. php7.0-mcrypt
), I’d recommend installing the corresponding “php7.2-” prefixed version, then restart PHP-FPM (if applicable) and your web server (from the request headers, it appears to be Apache).
Put together, it will look something like this:
$ sudo apt-get update
$ sudo apt-get install php7.2-mcrypt
$ sudo service php7.2-fpm restart
$ sudo service apache restart