Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

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)
    Tip

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

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

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

  • unzip phpseclib in the phpseclib directory
    Tip

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

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

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

  • Apply the patch
    Tip

    patch < no_mcrypt.patch