6

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.10

Here is the output ls of /etc/php5/conf.d and /etc/php5/mods-available

https://privatepaste.com/35aee04356

root:~# sudo php5enmod mcrypt
sudo: php5enmod: command not found
root:~#
Guardian
  • 113
  • 1
  • 1
  • 9

3 Answers3

5

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.

fkraiem
  • 12,555
  • 4
  • 35
  • 40
1

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
Madvin
  • 359
0

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.6 is specifying which PHP version you want to use.