## | |
## How to install mcrypt in php7.2 / php7.3 | |
## Linux / MacOS / OSX | |
## | |
## https://lukasmestan.com/install-mcrypt-extension-in-php7-2/ | |
# | |
# Check version php and pecl | |
# | |
php -v # if default php is not 7.2 then use /usr/bin/php7.2 instead php | |
pecl version | |
sudo apt-get install php-pear | |
sudo apt-get install php7.2-dev | |
# | |
# Install mcrypt extension | |
# see http://pecl.php.net/package-info.php?package=mcrypt&version=1.0.1 | |
# | |
sudo apt-get -y install gcc make autoconf libc-dev pkg-config | |
sudo apt-get -y install libmcrypt-dev | |
sudo pecl install mcrypt-1.0.1 | |
# | |
# When you are shown the prompt | |
# | |
# libmcrypt prefix? [autodetect] : | |
# Press Enter to autodetect. | |
# | |
# After success installing mcrypt trought pecl, you should add mcrypt.so extension to php.ini, | |
# The output will look like this: | |
# | |
# ... | |
# Build process completed successfully | |
# Installing '/usr/lib/php/20170718/mcrypt.so' ----> this is our path to mcrypt extension lib | |
# install ok: channel://pecl.php.net/mcrypt-1.0.1 | |
# configuration option "php_ini" is not set to php.ini location | |
# You should add "extension=mcrypt.so" to php.ini | |
# | |
# Grab installing path and add to cli and apache2 php.ini | |
# | |
# example: | |
sudo bash -c "echo extension=/usr/lib/php/20170718/mcrypt.so > /etc/php/7.2/cli/conf.d/mcrypt.ini" | |
sudo bash -c "echo extension=/usr/lib/php/20170718/mcrypt.so > /etc/php/7.2/apache2/conf.d/mcrypt.ini" | |
# check that the extension was installed with this command: | |
php -i | grep mcrypt | |
# | |
# The output will look like this: | |
# | |
# /etc/php/7.2/cli/conf.d/mcrypt.ini | |
# Registered Stream Filters => zlib.*, string.rot13, string.toupper, string.tolower, string.strip_tags, convert.*, consumed, dechunk, convert.iconv.*, mcrypt.*, mdecrypt.* | |
# mcrypt | |
# mcrypt support => enabled | |
# mcrypt_filter support => enabled | |
# mcrypt.algorithms_dir => no value => no value | |
# mcrypt.modes_dir => no value => no value | |
# final step | |
sudo service apache2 restart |
This comment has been minimized.
This comment has been minimized.
How to do this with Amazon Linux 1? |
This comment has been minimized.
This comment has been minimized.
how about windows version |
This comment has been minimized.
This comment has been minimized.
For those, who faced with ERROR: 'phpize' failed issue, you may install it with |
This comment has been minimized.
This comment has been minimized.
Hi, is there a 'mcrypt' for PHP 7.2 on Windows? |
This comment has been minimized.
This comment has been minimized.
I found that the lastest version of PHP which cames with these Dll´s ('libmcrypt.dll' and '/ext/php_mcrypt.dll') is php-5.2.9-Win32-VC6-x86.zip |
This comment has been minimized.
This comment has been minimized.
I tried to copy these files and also call it on the 'C:\PROGRAM FILES\PHP\V7.2\PHP.INI' as the article 'https://www.myoddweb.com/2010/11/18/install-mcrypt-for-php-on-windows/' but no sucess... |
This comment has been minimized.
This comment has been minimized.
I found some 'tricks' to put that module work on Linux PHP v7.2: https://stackoverflow.com/questions/48275494/issue-in-installing-php7-2-mcrypt/50079503#50079503 |
This comment has been minimized.
This comment has been minimized.
Another trick but for php 5.8: |
This comment has been minimized.
This comment has been minimized.
Thanks! It works! |
This comment has been minimized.
This comment has been minimized.
add: |
This comment has been minimized.
This comment has been minimized.
Thanks! One questions: What if we are using Ngnix instead of Apache in this step: sudo bash -c "echo extension=/usr/lib/php/20170718/mcrypt.so > /etc/php/7.2/apache2/conf.d/mcrypt.ini" |
This comment has been minimized.
This comment has been minimized.
Thanks! |
This comment has been minimized.
This comment has been minimized.
how to install Php mcrypt extension in php 7.2.4 on windows xamp |
This comment has been minimized.
This comment has been minimized.
Thanks. worked perfectly Ubuntu 18.04. |
This comment has been minimized.
This comment has been minimized.
Dear all, anyone can show me How to fix on Mcrypt php extension required on PHP 7.2? |
This comment has been minimized.
This comment has been minimized.
Excellent |
This comment has been minimized.
This comment has been minimized.
there is no solution for PHP 7.2 in XAMPP windows ? |
This comment has been minimized.
This comment has been minimized.
It Worked for me, Thank you |
This comment has been minimized.
This comment has been minimized.
Thanks a lot |
This comment has been minimized.
This comment has been minimized.
Worked like a charm! |
This comment has been minimized.
This comment has been minimized.
Thanks bro!. Worked awesome. |
This comment has been minimized.
This comment has been minimized.
Thanks, It's working fine. |
This comment has been minimized.
This comment has been minimized.
Muito bom ! |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Any solution windows servers? |
This comment has been minimized.
This comment has been minimized.
Saved my day! |
This comment has been minimized.
This comment has been minimized.
Thank you . |
This comment has been minimized.
This comment has been minimized.
thanks, it works |
This comment has been minimized.
This comment has been minimized.
Thank's it solved my problem... |
This comment has been minimized.
This comment has been minimized.
Worked for me also many thanks |
This comment has been minimized.
This comment has been minimized.
After trying to many things. I just got rid of this shit by installing both version on my computer.
Now I am working perfectly with my project. |
This comment has been minimized.
This comment has been minimized.
yup its work....!!! |
This comment has been minimized.
This comment has been minimized.
Thanks! On my Devuan (Debian minus systemd) server, the only change I made was instead of sudo bash -c "echo extension=/usr/lib/php/20170718/mcrypt.so > /etc/php/7.2/cli/conf.d/mcrypt.ini"
sudo bash -c "echo extension=/usr/lib/php/20170718/mcrypt.so > /etc/php/7.2/apache2/conf.d/mcrypt.ini" I did sudo bash -c "echo extension=/usr/lib/php/20170718/mcrypt.so > /etc/php/7.3/mods-available/mcrypt.ini"
sudo phpenmod mcrypt # (add symlinks in /etc/php/7.3/cli/conf.d/ and /etc/php/7.3/apache2/conf.d/) |
This comment has been minimized.
This comment has been minimized.
For PHP 7.3 this is |
This comment has been minimized.
This comment has been minimized.
thank you very much , working perfect on ubuntu 18.04.2 |
This comment has been minimized.
This comment has been minimized.
Good one! |
This comment has been minimized.
This comment has been minimized.
Thanks...its works...!!! |
This comment has been minimized.
This comment has been minimized.
did you get it work on php 7.3 only? |
This comment has been minimized.
This comment has been minimized.
Thank's it works! |
This comment has been minimized.
This comment has been minimized.
thanks, worked on my windows linux subsystem, |
This comment has been minimized.
This comment has been minimized.
It didn't work for me
|
This comment has been minimized.
This comment has been minimized.
you have multiple php versions installed, i see you are having trouble and running any commands you googled. I had a coworker who did the same thing. He figured out how to make his cli and normal php the same version and then got this working... please follow my next post |
This comment has been minimized.
This comment has been minimized.
i'd remove everything then do the following: when you get phpize error |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
yeah the problem is with your php though, you have several versions installed and it is causing problems. I gave you the solution. |
This comment has been minimized.
This comment has been minimized.
For Xampp you can look for the DLL links here: https://pecl.php.net/package/mcrypt E.g. for my Xampp with PHP 7.3.12, I downloaded 7.3 Thread Safe (TS) x64 from here: https://pecl.php.net/package/mcrypt/1.0.3/windows I dropped the DLL in Reminder: you are not supposed to use mcrypt in production. |
This comment has been minimized.
This comment has been minimized.
You saved my day |
This comment has been minimized.
This comment has been minimized.
How to confirm mcrypt is insalled ? |
This comment has been minimized.
This comment has been minimized.
|
This comment has been minimized.
This comment has been minimized.
For Windows Users
It's ready! |
This comment has been minimized.
Thanks, it is work