0

I am having issues installing php-mcrypt. I am not an administrator of any level.

I have performed the following.

  • Installed EPEL

  • Installed REMI

  • Configured EPEL

  • Updated YUM

  • Cleaned YUM

  • Installed mcrypt

  • Installed libcrypt

YUM still cannot find php-mcrypt

I have performed a search:

yum list php* | grep mcry

with no results.

2
  • 1
    Did you enable the remi repo? It's disabled by default. Jun 3 '14 at 11:20
  • Thanks for the reply, Michael. Yes, sorry, I missed out that line. REMI is enabled and configured.
    – Winters
    Jun 3 '14 at 12:37
0

So on my CentOS 6 box I get offered php-mcrypt from either REMI or EPEL (Remi has the newer version):

Installing:
 php-mcrypt                      x86_64                      5.3.3-3.el6                         epel                          19 k


Installing:
 php-mcrypt                      x86_64                      5.4.29-1.el6.remi                      remi                       51 k

So I would say the first things to check are to make sure you have the right version of the repos installed and make sure they are enabled:

Check your CentOS version by doing:

cat /etc/redhat-release

You should see something like:

CentOS release 6.5 (Final)

If it says CentOS 6 you need the el6 repos, CentOS 5 would be el5.

Then:

vim /etc/yum.repos.d/remi.repo

In the file you should see entries similar to this:

[remi]
name=Les RPM de remi pour Enterprise Linux 6 - $basearch
#baseurl=http://rpms.famillecollet.com/enterprise/6/remi/$basearch/
mirrorlist=http://rpms.famillecollet.com/enterprise/6/remi/mirror
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-remi

Ensure that you have the right version (in other words make sure the right number is in the mirrorlist line, if it is wrong you will need to remove and add the correct repo) and that the value next to enabled is set to 1. Check the EPEL file as well (it will be in the same folder as REMI, just called epel.repo). Then save the file and try running the yum install again and see if it finds the packages.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy