You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

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 (version 0.2.2 was used for testing) - if you want to copy/paste the commands below, put it in /tmp
  • create a directory named phpseclib in your web code .ht-inc directory

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

  • unzip phpseclib in the phpseclib directory

    cd phpseclib
    unzip /tmp/phpseclib0.2.2.zip

  • download no_mcrypt.patch to your web code .ht-inc directory
  • apply the patch

    cd /var/www//html/vcl/.ht-ic
    patch < no_mcrypt.patch

  • No labels