Installing Libmcrypt on a Godaddy Virtual Dedicated Server

Friday, July 11th, 2008

We recently deployed a web site using ’s virtual dedicated server. Everything about the default installation was fine, except that was not available. When I asked the support staff “How do we enable for ?” their response was far from helpful:

Thank you for contacting Server Support. Unfortunately 3rd party installations and configurations are not supported.

Rather than argue with the support team about what constitutes a 3rd party installation, I decided to google around and see if I could do it myself. Hours later, I succeeded. Here are the steps for installing :

  1. su root
  2. yum install gcc-c++
  3. yum install lex
  4. yum install libxml2
  5. yum install libxml2-devel
  6. yum install flex
  7. wget http://downloads.sourceforge.net/mcrypt/-2.5.8.tar.gz?modtime=1171868460&big_mirror=0
  8. tar -xzvf -2.5.8.tar.gz
  9. cd -2.5.8
  10. ./configure
  11. make
  12. make install
  13. wget http://museum..net/php5/-5.1.6.tar.gz
  14. tar -xzvf -5.1.6.tar.gz
  15. cd -5.1.6
  16. ./configure –with-mcrypt=shared,/usr/local/lib
  17. make (after running ‘make’, DO NOT RUN ‘make install’)
  18. cp modules/mcrypt.so /usr/lib//modules/
  19. Add a file /etc/.d/mcrypt.ini
    ; Enable mcrypt extension module
    extension=mcrypt.so
  20. /usr/sbin/apachectl restart

That’s it! To confirm a successful install, just run phpinfo() and look for the mcrypt section