Yes.
Recompile apache/php with support for the mcrypt functions. An annoying process by hand, cPanel makes life easy with their "/scripts/easyapache" that does it for you.
There are also RPMs and similar (pkg-add) bundles of web server's with PHP and everything else already setup properly - a good place to look for an easy setup like that would be www sourceforge net