TL;DR — Resumo Rápido
Instale e configure a extensão mcrypt do PHP no seu servidor web para resolver o aviso de módulo não instalado e habilitar a criptografia adequada com melhor desempenho.
Nota: Este artigo foi publicado originalmente em 2013. Alguns passos, comandos ou versões de software podem ter mudado. Consulte a documentação atual de Ubuntu para as informações mais recentes.
Resolve: Your web-server does not have the (https://en.wikipedia.org/wiki/Mcrypt “Mcrypt”) module installed. Without it, encryption will be a lot slower.
(How to install mcrypt in an (https://ubuntu.com “Ubuntu (operating system)”))
I have installed UpdraftPlus in order to manage backups of the site. The downside is they seem to be moving towards having you buy addons for a lot of the functionality but for now it gets the job done and it is a very complete plugin. One of the big issues I am facing with it though is that the message “Your web-server does not have the mcrypt module installed. Without it, encryption will be a lot slower.” keeps popping up. I am sure I have installed and re-installed mcrypt several times but still no dice so I finally figured out what was wrong: The installation of mcrypt does not link the apache php (runtime?) to mcrypt. So follow this simple instructions to install mcrypt and make sure it is linked correctly:
- Install mcrypt by running the following command: (https://wiki.debian.org/Apt “Advanced Packaging Tool”) install (https://www.php.net “PHP”)-mcrypt
- Make sure the following file exists: /etc/php5/(http://https://httpd.apache.org/ “Apache HTTP Server”)/conf.d/mcrypt.ini
- If the file is missing, you can copy it from: /etc/php5/cli/conf.d/mcrypt.ini or**/etc/php5/conf.d/mcrypt.ini**
- If you need to re-install mcrypt you can do so with this command:apt-get —reinstall install php5-mcrypt
- Don’t forget to restart apache: sudo service apache2 restart
If for some reason you can’t find mcrypt.ini anywhere, you can create the file with the following text inside of it: ; configuration for php MCrypt module extension=mcrypt.so Consider also creating a symbolic link if you want to keep your settings in sync: ln -s **/etc/php5/conf.d/mcrypt.ini** **/etc/php5/apache2/conf.d/mcrypt.ini**