As you can see, mcrypt is missing on the server. I tried apt install php-mcrypt to install it and then restared but that didn’t work as it is only good for versions of php prior to 7.2
After a bit of searching I found the following:
In servers with PHP version 7.2+, mcrypt is not available with it. So, first we install the mcrypt dependencies using the following command:
When I get to sudo bash -c “echo extension=mcrypt.so > /etc/phpxx/conf.d/mcrypt.ini” it fails:
root@vmi2077521:~# sudo bash -c “echo extension=mcrypt.so > /etc/phpxx/conf.d/mcrypt.ini”
bash: line 1: /etc/phpxx/conf.d/mcrypt.ini: No such file or directory
as does:
root@vmi2077521:~# sudo bash -c “echo extension=mcrypt.so > /etc/php8.2/conf.d/mcrypt.ini”
bash: line 1: /etc/php8.2/conf.d/mcrypt.ini: No such file or directory
root@vmi2077521:~#
The mcrypt-extension is deprecated will be removed in PHP 7.2 according to the comment posted here. So I am looking for an alternative way to encrypt passwords.
mcrypt is now available as an extension that works with php 7.2 onwards and I have already installed it as above but just need the command line to add it to php.ini. if i add extension=mcrypt.so to php.ini it should work.
ok. I only have one version on mine. It looks like sahsanu helped you out with your 7.2 version. Pretty sure his solution is the same as editing the php.ini. I hope you got it all working