Have Fedora, but no mcrypt functionality for PHP?

February 21st, 2008

Easy fix, despite the official line from PHP which says you need to recompile PHP –with-mcrypt.

I’ll caveat this by stating I’m using Fedora Core 7…

1) At the terminal, su root - you are now going to yum, not ./configure, make, and make install…

2) yum install mcrypt - this will get you libmcrypt, mhash, and mcrypt

3) yum install php-mcrypt - this will get you the functionality within PHP

Uh…done (without hassles).

4 responses

  1.   Tassos comments:
       

    Hello,

    It worked for me on Godaddy Host. I was trying to install magento commerce and had problems with mcrypt.

    Thanks!

  2.   Michael Gracie comments:
       

    No prob! I was using GoDaddy too - I guess it is a host thing.

  3.   D.J. comments:
       

    Very helpful post . I haven’t used a Yum or RPM command in almost 4 years. This post was the immediate answer.

    I just helped a friend who needed mcrypt for a ( just as the others said ) magneto install on a GoDaddy host.

    Just wanted to remind people:

    You shouldn’t have to change any configs or ini files to get mcrypt going.

    After these commands complete the installation , restart your web server and magneto will pass the mcrypt test and phpinfo() will be updated.

  4.   Michael Gracie comments:
       

    Thanks. Although it does seem the explanation is somewhat GoDaddy specific - hopefully it is close for those using other hosts’ Linux distros.

Leave a comment