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).
Comments
Hello,
It worked for me on Godaddy Host. I was trying to install magento commerce and had problems with mcrypt.
Thanks!
No prob! I was using GoDaddy too – I guess it is a host thing.
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.
Thanks. Although it does seem the explanation is somewhat GoDaddy specific – hopefully it is close for those using other hosts’ Linux distros.
It works for me on Fedora 7. Thank you.
Установил функционал mcrypt для PHP. Отлично сработало. Спасибо.
Hi,
Thanks for your article. I am a programmer & not a administrator. But could install mcrypt with the help of your article. That was a great experience.
Thanks once again.
Regards
Ilango Chokalingam
@Jean/IIando – Glad it worked out for you folks!
After more than 12 hours of investigate and install many things you give me the answer, thanks for your help!!!
Great – saved me a load of messing about.
Thanks
J.
Sid/Jeremy – No problem!
Great! Most helpful. I’m using a virtual dedicated service at GoDaddy with Fedora 7 and this has saved me so much hassle. I’m about to install MODx and mcrypt is part of the requirements. Also, the latest version of phpMyAdmin requires it. So, there is such a thing as a free lunch.
Cheers,
C.
Michael, i want to try this our on my fedora/php5 server but want to know what the worst case scenario would be if it fails. Would I lose sites?
Thanks!!
Ian – Probably not. A failure would likely be an install failure versus, say, an Apache failure. However, trying on a test box is always the preferred approach. And always backup first.
dont have a test box just a live production server with some support software I installed but needs to have mcrypt to run, I guess if it does not install thats the worst , just dont want sites to fail. Well I’ll give it a go and see what happens.
Thanks Michael.
Hi Michael
I finally got round to trying this but the command line says ‘yum: command not found’.
Is there a work around?
Thanks
Ian
Hi Ian – yum might not be installed. Read this: http://www.webmo.net/support/yum_repository.html
Also, make sure you get the right RPMs for your Fedora version.
Great article! Thanks for your help.
pqp, do not forget to restart apache 😉
hi, great article. the installation works good…thanks!!!!
Awesome thanks to u..laravel started workinnn….