Как включить mcrypt centos
This php script I am using requires mcrypt but the mcrypt module is depreciated and no longer available.
I tried yum -y install epel-release and yum -y install php-mcrypt but this doesn’t work.
Are there any other ways to install mcrypt?
Related
Join 1M+ other developers and:
- Get help and share knowledge in Q&A
- Subscribe to topics of interest
- Get courses & tools that help you grow as a developer or small business owner
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
I managed to get this installed on my droplet using the following commands:
If you are running the default PHP installation you will want to run the following command as well.
Also you will need to find which is your main php.ini file and add or uncomment the following line:
Let me know how it goes.
Last metadata expiration check: 0:23:26 ago on Thu 30 Apr 2020 12:52:33 PM UTC.
No match for argument: php-mcrypt
Error: Unable to find a match: php-mcrypt
Did you installed the EPEL repository?
If the EPEL repository is installed you should be able to install the mcrypt extension without getting the unable to find a match error message.
Let me know how it goes.
Yes did that several times to be sure same result
Last metadata expiration check: 0:00:39 ago on Sun 17 May 2020 02:32:02 AM UTC.
No match for argument: php-mcrypt
Error: Unable to find a match: php-mcrypt
You can try to install it using this command:
sudo yum install libmcrypt-devel
yum install php-mcrypt
Let me know how it goes.
Related
question
When will a CentOS 8 image be available for deployment on DigitalOcean Droplets?
question
SSH connection drops too frequently
question
Hi guys. in my last server, I used virtualizor
question
I have been trying to install php-mcrypt for a while now. Everytime I get the "No package php-mcrypt available." returned to me. Here's what I've tried:
I have made sure to install the EPEL repository. At this point I'm just stumped. I've followed EVERY tutorial I've found online and get the same error.
Notes: Go Daddy VPS, CentOS 6.4 64-bit, mcrypt installed without a hitch, but no php-mcrypt.
18 Answers 18
I had the same issue, and found the previous suggestions gave me enough info to get it working on my server. The following is what I did:
2) Install it via:
The yum update updated the repository reference on my server then the 2nd command got what I needed :)
3) Restart your webserver. For my apache install I did:
For me the answer was:
1) Get the Repos from
2) Install it via:
3) Edit the mcrypt.ini
Finally 4) Restart your webserver:
I run this steps in CentOS 6.3 (64) on Azure From Microsoft Linux image
Hope it helps you.
18.6k 8 8 gold badges 46 46 silver badges 93 93 bronze badges it was not necessary, at least for me, to change the extension.Updated Answer for centos 7
Edit: See comments for updated repositories.
1,452 3 3 gold badges 22 22 silver badges 41 41 bronze badges Just use yum -y install epel-release && yum -y install php-mcryptworked for me instead of
I was able to figure this out; it was a lot simpler then I thought. Under the WHM manager go to: Home >> Software >> EasyApache (Apache Update) >> There you have two options "Build Profile" or "Customize Based On Profile". I went Customize to keep my current config then followed the instructions on the page.
Eventually there was a place to add and remove php modules. There you will find ever module under the sun. Just select the one you want and rebuild the profile. It was really that simple.
I got too much problem in installing php-mcrypt using epel-release-6-8.noarch.rpm. It has some dependency problem.
Then I tried in different way.
Then install libmcrypt
The installed php-mcrypt using following command
If php_mcrypt installed on 64bit but reported missing by an installer, check the extension path:
then just use yum command to install the mcrypt package
The best way is to:
Be careful to keep your version updated if you do this.There are two ways you can address this:
For me I had to add the EPEL repository. It is where my php-mcrypt came from:
2,088 1 1 gold badge 10 10 silver badges 13 13 bronze badges Thank you! It is very helpful. + extension=/usr/lib64/php/modules/mcrypt.so from previous messageI tryed @VenomFangs solution but the first step was not needed for me. I already had a newer EPEL version installed. So, the first step following was not usefull, I backed to the snapshot I did before doing modifications and I just used the install and restart above commands.
CentOS Linux release 7.2.1511 (Core)
PS : I know this is not the subject, but if somebody needs it, the keyword can help. I needed to do this because of this error on prestashop. Two keywords I would be glad to use to find this informations are : "php_mycrypt.dll" "php_mcrypt.dll"
Fatal error: Call to undefined function mcrypt_encrypt() in /classes/Rijndael.php on line 46
EDIT 10/06/2016 :
Another Prestashop solution to try in "Advanced Parameters", "Performance", "Ciphering" (FR : Chiffrement), "Use the custom BlowFish class." instead of "Use Rijndael with mcrypt lib. (you must install the Mcrypt extension)."
Читайте также: