Install Mcrypt Php Extension Centos 6

  1. Install Mcrypt Php To Php 7.2
  2. Centos 6 Install Php
  3. Mbstring Php Extension
  4. How To Open Php Extension
  5. Install Php Mcrypt
Active2 years ago

Oct 08, 2016  For some reason it is trying to install the EL6 version of php-mcrypt, even though you are using CentOS 7 (I hope). Try yum clean all yum remove epel-release yum install epel-release and finally yum install php-mcrypt. ↳ CentOS 6 - General Support ↳ CentOS 6 - Software Support ↳ CentOS 6 - Hardware Support. CentOS 6 and 6.5 allow you to install PHP-mCrypt easily right after installing CentOS. The reason mCrypt is removed by default from version 7 is still unknown, but we’re going to show you how to re-enable it. PHP 7.0.31 has been released on PHP.net on 19th July 2018, and is also available for CentOS/RHEL 6.9 and 7.4 at Webtatic via Yum. Source - Issues. PEAR installer now supports PHP 7.0, however most pecl libraries will not support it as well without their maintainers adding compatibility, so only pecl libraries that do support it will be in the Webtatic repository. I am trying to install the php-mcrypt extension for my CentOs 6.4 server but it is falling over with this message: [root@vps /]# yum install php-mcrypt Loaded plugins: fastestmirror Loading mirror. CentOS 6 and 6.5 allow you to install PHP-mCrypt easily right after installing CentOS. The reason mCrypt is removed by default from version 7 is still unknown, but we’re going to show you how to re-enable it. This guide shows howto install Apache HTTP Server (httpd) with PHP 7.2.9 and following modules on Fedora 28/27/26, CentOS 7.5/6.10 and Red Hat (RHEL) 7.5/6.10 systems.

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 DaddyVPS, CentOS 6.4 64-bit, mcrypt installed without a hitch, but no php-mcrypt.

Peter Mortensen
14.4k19 gold badges88 silver badges117 bronze badges
Scott DawsonScott Dawson
4861 gold badge4 silver badges13 bronze badges

17 Answers

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:

1) Install EPEL repository (From: http://www.rackspace.com/knowledge_center/article/installing-rhel-epel-repo-on-centos-5x-or-6x):

2) Install it via:

Install Mcrypt Php Extension Centos 6

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:

James OravecJames Oravec
11.1k19 gold badges67 silver badges126 bronze badges

For me the answer was:

1) Get the Repos from

2) Install it via:

3) Edit the mcrypt.ini

add this

Finally4) Restart your webserver:

I run this steps in CentOS 6.3 (64) on Azure From Microsoft Linux image

Hope it helps you.

Best Regards.

Nishu Tayal
14.2k7 gold badges38 silver badges88 bronze badges
CompusamCompusam

Updated Answer for centos 7

For CentOS 6

Install

Edit: See comments for updated repositories.

Install Mcrypt Php Extension Centos 6TylersSNTylersSN
8042 gold badges15 silver badges34 bronze badges
sariDonsariDon

Just a heads up to anyone else who is interested. I was able to figure it out. It was alot 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 hope this helps someone!

Scott DawsonScott Dawson
4861 gold badge4 silver badges13 bronze badges

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.

Get the php-mcrypt using 'wget ftp://ftp.univie.ac.at/systems/linux/fedora/epel/6/x86_64/php-mcrypt-5.3.3-3.el6.x86_64.rpm' command.

Then install libmcrypt

The installed php-mcrypt using following command

Manoj BorahManoj Borah

If php_mcrypt installed on 64bit but reported missing by an installer, check the extension path:

vi /etc/php.d/mcrypt.ini

user2599431user2599431

To install mcrypt from http://namhuy.net/641/centos-6-install-mcrypt-for-phpmyadmin.html

i386

x86_64

then just use yum command to install the mcrypt package

Gregory MarshGregory Marsh

The best way is to:

or go to: http://dl.fedoraproject.org/pub/epel/6/x86_64/ to match your version check from your info.php that is ok -- done!

DimitriosDimitrios

There are two ways you can address this:

  • Download php-mcrypt from fedora:http://injustfiveminutes.wordpress.com/2012/11/23/install-php-mcrypt-extension-on-rhel-6/
  • Check if you're facing a known bug with a wrongly packaged php-mcrypt extension:http://www.sterndata.com/blog/phymyadmin-mcrypt-and-centos-6-mcrypt-extension-missing-solved
Filippos KarapetisFilippos Karapetis

For me I had to add the EPEL repository. It is where my php-mcrypt came from:

You can enable the EPEL repo with the instructions here:

immulatinimmulatin

Install Mcrypt Php To Php 7.2

1,9781 gold badge7 silver badges12 bronze badges

installing php-mcrypt from Repoforge worked for me perfectly. Just add Repoforge from http://repoforge.org/ and simply run yum install php-mcrypt.

ElChupacabraElChupacabra

For me, this worked :
yum install php-mcrypt*
and then, restart httpd service
service httpd restart

I 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.

wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
wget http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
sudo rpm -Uvh remi-release-6*.rpm epel-release-6*.rpm

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).'

KilowogKilowog

First find out your PHP version. In my case 5.6.

php --version

PHP 5.6.27 (cli) (built: Oct 15 2016 21:31:59) Copyright (c) 1997-2016 The PHP GroupZend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies

Then:

sudo yum search mcrypt

And choose the best one for your version from the list, I used php56w-mcrypt.

Finally:

sudo service httpd restart

sijpkessijpkes

I was having same issue in centos 6.5

Finaly solution below worked for me

-go to http://dl.fedoraproject.org/pub/epel/6/x86_64/
-search for php-mcrypt(http://dl.fedoraproject.org/pub/epel/6/x86_64/php-mcrypt-5.3.3-3.el6.x86_64.rpm)
-execute wget http://dl.fedoraproject.org/pub/epel/6/x86_64/php-mcrypt-5.3.3-3.el6.x86_64.rpm
-rpm -ivh php-mcrypt-5.3.3-3.el6.x86_64.rpm

if there are any dependencies you can download same using http://dl.fedoraproject.org/pub/epel/6/x86_64/

Maulik ShahMaulik Shah

For php 7 to install mcrypt run:

Centos:sudo yum install php7.0-mcrypt to install

On Ubuntu:sudo apt-get install php7.0-mcrypt

SorinSorin

If you want to recompile PHP with mcrypt enable.

1.Insatll mcrypt. libmcrypt-devel is from Third Party Repositories EPEL, so you should:

2.Append --with-mcrypt to your ./configure arguments:

3.Build and install:

isaacselementisaacselement
6852 gold badges11 silver badges22 bronze badges

protected by CommunityNov 3 '14 at 0:03

Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).
Would you like to answer one of these unanswered questions instead?

Not the answer you're looking for? Browse other questions tagged phpcentos or ask your own question.

Active6 years, 4 months ago

I am trying to install the php-mcrypt extension for my CentOs 6.4 server but it is falling over with this message:

I have (to my knowledge) installed the repos correctly here is my epel.repo file:

And my repolist:

I even have remi installed but I can't seem to be able to get the php-mcrypt extension installed for ZF2. For some reason it seems to be pulling from the el5 repo even though all my repos are el6?

Anyone know what's going on?

Thanks

Centos 6 Install Php

Nathan

KalKal

1 Answer

etagenklo

Mbstring Php Extension

etagenklo

How To Open Php Extension

5,0541 gold badge20 silver badges30 bronze badges

Install Php Mcrypt

Not the answer you're looking for? Browse other questions tagged centosyumrepositoryphp-mcrypt or ask your own question.