Despite the official line from PHP which says you need to recompile PHP –with-mcrypt. No body needs to go through all that. I’ll show you a quick and easy way to install both mcrypt for the webserver and mcrypt for php in two easy steps. Note that this easy fix is being done on my Fedora Core 12 linux box. But should be the same for other flavors of linux. (I did it on a centOS as well)
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
Reboot your webserver and your all done (without hassles). Saved you an hour of work! OH yeah and your welcome.