This page explains how to use a php package called phpseclib to remove the requirement of mcrypt. phpseclib will use mcrypt functions if it is installed but will use native php to implement the encryption if it is not installed.

Here are the steps to remove the dependency:

  • Download phpseclib to /tmp (version 0.2.2 was used for testing)

    cd /tmp
    wget http://downloads.sourceforge.net/project/phpseclib/phpseclib0.2.2.zip

  • Create a directory named phpseclib in your .ht-inc directory

    mkdir /var/www/html/vcl/.ht-inc/phpseclib

  • unzip phpseclib in the phpseclib directory

    cd /var/www/html/vcl/.ht-inc/phpseclib
    unzip /tmp/phpseclib0.2.2.zip

  • Download no_mcrypt.patch to your .ht-inc directory

    cd /var/www/html/vcl/.ht-inc
    wget http://people.apache.org/~jfthomps/no_mcrypt.patch

  • Apply the patch

    patch < no_mcrypt.patch

  • No labels