How can I install php5-mcrypt
php5-mcrypt (MCrypt module for php5) has been updated to php7.0-mcrypt (libmcrypt module for PHP) in Ubuntu 16.04, 16.10 and 17.04. The command sudo apt-get install lamp-server^
in Ubuntu 16.04 searches the package list files for all Task: fields and gets all with lamp-server, among them is php7.0. Then it installs those packages the standard way with sudo apt-get install package1 package2...
In Ubuntu 16.04 open the terminal and type:
sudo apt-get install php7.0-mcrypt
In Ubuntu 17.10 and 18.04 php5-mcrypt has been updated to php7.1-mcrypt.
Related videos on Youtube
Ahmad
I am a university instructor teaching computer courses, I am also a researcher, programmer, web designer and application developer I mainly work with C# .Net, PHP Mysql.
Updated on September 18, 2022Comments
-
Ahmad almost 2 years
When I try to use
sudo apt-get install php5-mcrypt
to install php5-mcrypt, I receive the following error. I usedsudo apt-get install lamp-server^
to install the php5ahmad@ubuntu:/var/www/html$ sudo apt-get install php5-mcrypt Reading package lists... Done Building dependency tree Reading state information... Done Package php5-mcrypt is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source E: Package 'php5-mcrypt' has no installation candidate
-
edwinksl almost 8 yearsWhat version of Ubuntu are you using?
-
Ahmad almost 8 years@edwinksl 16.04
-
-
The Godfather almost 6 yearsThis does not answer the question since we don't need mcrypt for PHP 7 but for PHP 5.
-
karel almost 6 yearsThe latest version that has php5-mcrypt in its default repositories is Ubuntu 14.04. php5-mcrypt can be downloaded manually from packages.ubuntu.com/trusty/php5-mcrypt.