Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

root:~# sudo php5enmod mcrypt
sudo: php5enmod: command not found
share|improve this question
What's the exact error you have, please ? – Benoit Jul 10 '14 at 7:24
command not found is the exact error – Guardian Jul 10 '14 at 15:39
Please, be more specific. The error is simply command not found, without any other string? Could you copy/paste the string and update your question? – Lety Jul 10 '14 at 16:02
updated the 1st post 'root:~# sudo php5enmod mcrypt sudo: php5enmod: command not found root:~#' – Guardian Jul 10 '14 at 18:48
up vote 2 down vote accepted

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.

share|improve this answer
i looked up upgrading from 5.3 to 5.4 and it fixed the problem, thank you! – Guardian Jul 10 '14 at 20:54

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.