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:~#
share|improve this question
1  
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 4 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 link is dead! – Gaurav Dave Aug 30 '16 at 5:42
1  
@GauravDave Yes, it is. If you know a static URL to the changelog of the Debian PHP 5 package, feel free to edit. – fkraiem Aug 30 '16 at 6:04
    
I have php 5.6.30 installed, but still no php5enmod. – Brent Jul 22 '17 at 18:47
    
@Brent Are you using Debian or a derivative with official distribution packages? – fkraiem Jul 22 '17 at 22:40

Your Answer

 
discard

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.