I've tried a number of guides on this issue, but so far I cannot get php5enmod mcrypt to work.
Ubuntu 12.04
PHP 5.3.10Here is the output ls of /etc/php5/conf.d and /etc/php5/mods-available
root:~# sudo php5enmod mcrypt
sudo: php5enmod: command not found
root:~# 4 3 Answers
php5enmod was introduced in Debian in version 5.4.0~rc6-2 of the package php5 (see the changelog, Ctrl+F is your friend). Since Ubuntu packages are imported from Debian, it is only available in PHP 5.4+ packages in Ubuntu as well.
I have this issue and I found phpenmod command is in php-common package
As You know, php-common can be installed with this command:
apt-get install php-common 4 I had the issue with PHP 5.6 on Ubuntu 20.04.3 LTS after installing PHP using ondrej's PPA because PHP 5.6 is not available directly in current Ubuntu's repositories.
If php5enmod is still not found even if you already installed php5.6 and php-common packages, try using phpenmod instead :
sudo phpenmod -v 5.6 mcrypt- Where
-v 5.6is specifying which PHP version you want to use.