php-mcrypt package missing in Ubuntu Server 18.04 LTS
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgO9GURib1T8z7lCwjOGLQaGtrueEthgQ8LO42ZX8cOfTqDK4jvDDpKkLFwf2J49kYCMNW7d4ABih_XCb_2UXdq5fPJDkoyg7-8g_YfRUot-XnaXkNYycsNp7lA5_TW9td0FFpLQ2APzKcZ/s1600/1.jpg)
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhYQ0N5W1qAOxLP7t7iOM6O6AzbZnkXUy16s7P_CWfOb5UbTQY_aDsc727chyphenhyphen5W4IppVNernMMQeaUFTB_rFzAd95_CDt-tnwN-nBx6JyUp2duGjPaL5-VgNO41AVsA_vu30EJcipdDG409/s400/Clash+Royale+CLAN+TAG%2523URR8PPP.png)
up vote
4
down vote
favorite
Is the php-mcrypt
package missing in Ubuntu Server 18.04 LTS?
apt install php-mcrypt
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package php-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 'php-mcrypt' has no installation candidate
apt server package-management apache2 php
add a comment |Â
up vote
4
down vote
favorite
Is the php-mcrypt
package missing in Ubuntu Server 18.04 LTS?
apt install php-mcrypt
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package php-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 'php-mcrypt' has no installation candidate
apt server package-management apache2 php
Ubuntu php-mcrypt : packages.ubuntu.com/⦠... No php-mcrypt for 18.04 .
â Knud Larsen
May 4 at 18:28
add a comment |Â
up vote
4
down vote
favorite
up vote
4
down vote
favorite
Is the php-mcrypt
package missing in Ubuntu Server 18.04 LTS?
apt install php-mcrypt
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package php-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 'php-mcrypt' has no installation candidate
apt server package-management apache2 php
Is the php-mcrypt
package missing in Ubuntu Server 18.04 LTS?
apt install php-mcrypt
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package php-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 'php-mcrypt' has no installation candidate
apt server package-management apache2 php
edited May 16 at 6:45
Melebius
3,66841636
3,66841636
asked May 4 at 10:38
Andrea Rossetti
21112
21112
Ubuntu php-mcrypt : packages.ubuntu.com/⦠... No php-mcrypt for 18.04 .
â Knud Larsen
May 4 at 18:28
add a comment |Â
Ubuntu php-mcrypt : packages.ubuntu.com/⦠... No php-mcrypt for 18.04 .
â Knud Larsen
May 4 at 18:28
Ubuntu php-mcrypt : packages.ubuntu.com/⦠... No php-mcrypt for 18.04 .
â Knud Larsen
May 4 at 18:28
Ubuntu php-mcrypt : packages.ubuntu.com/⦠... No php-mcrypt for 18.04 .
â Knud Larsen
May 4 at 18:28
add a comment |Â
3 Answers
3
active
oldest
votes
up vote
7
down vote
Mcrypt has been deprecated in PHP 7.2, so it's not available by default.
You can still install the mcrypt extension using pecl. These instructions are for the apache
web server.
# Install prerequisites
sudo apt-get install php-dev libmcrypt-dev gcc make autoconf libc-dev pkg-config
# Compile mcrypt extension
sudo pecl install mcrypt-1.0.1
# Just press enter when it asks about libmcrypt prefix
# Enable extension for apache
echo "extension=mcrypt.so" | sudo tee -a /etc/php/7.2/apache2/conf.d/mcrypt.ini
# Restart apache
sudo service apache2 restart
That should get you going.
In the long term you might want to replace mcrypt
, it's deprecated for a reason.
add a comment |Â
up vote
2
down vote
php mcrypt has been removed in php 7.2 http://php.net/manual/en/migration71.deprecated.php
add a comment |Â
up vote
0
down vote
I did the following to get this working...
sudo add-apt-repository ppa:ondrej/php
sudo apt-get install php7.1-mcrypt
If you're running php5.6 or 7.0 then you can use the following
sudo apt-get install php5.6-mcrypt
sudo apt-get install php7.0-mcrypt
1
Ubuntu 18.04 has php7.2 in fact after added ppa repository and installet php7.1-mcrypt, when i do a2enmod mcrypt the response is "module mcrypt is not exists" !
â Andrea Rossetti
May 5 at 21:01
you're likely using php 7.2 (/etc/php/7.2
) -- this installs it to 7.1 (/etc/php/7.1/
) and only works if you also install/use that version of phpapt-get install php7.1
â Alvin
Jul 27 at 23:32
add a comment |Â
3 Answers
3
active
oldest
votes
3 Answers
3
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
7
down vote
Mcrypt has been deprecated in PHP 7.2, so it's not available by default.
You can still install the mcrypt extension using pecl. These instructions are for the apache
web server.
# Install prerequisites
sudo apt-get install php-dev libmcrypt-dev gcc make autoconf libc-dev pkg-config
# Compile mcrypt extension
sudo pecl install mcrypt-1.0.1
# Just press enter when it asks about libmcrypt prefix
# Enable extension for apache
echo "extension=mcrypt.so" | sudo tee -a /etc/php/7.2/apache2/conf.d/mcrypt.ini
# Restart apache
sudo service apache2 restart
That should get you going.
In the long term you might want to replace mcrypt
, it's deprecated for a reason.
add a comment |Â
up vote
7
down vote
Mcrypt has been deprecated in PHP 7.2, so it's not available by default.
You can still install the mcrypt extension using pecl. These instructions are for the apache
web server.
# Install prerequisites
sudo apt-get install php-dev libmcrypt-dev gcc make autoconf libc-dev pkg-config
# Compile mcrypt extension
sudo pecl install mcrypt-1.0.1
# Just press enter when it asks about libmcrypt prefix
# Enable extension for apache
echo "extension=mcrypt.so" | sudo tee -a /etc/php/7.2/apache2/conf.d/mcrypt.ini
# Restart apache
sudo service apache2 restart
That should get you going.
In the long term you might want to replace mcrypt
, it's deprecated for a reason.
add a comment |Â
up vote
7
down vote
up vote
7
down vote
Mcrypt has been deprecated in PHP 7.2, so it's not available by default.
You can still install the mcrypt extension using pecl. These instructions are for the apache
web server.
# Install prerequisites
sudo apt-get install php-dev libmcrypt-dev gcc make autoconf libc-dev pkg-config
# Compile mcrypt extension
sudo pecl install mcrypt-1.0.1
# Just press enter when it asks about libmcrypt prefix
# Enable extension for apache
echo "extension=mcrypt.so" | sudo tee -a /etc/php/7.2/apache2/conf.d/mcrypt.ini
# Restart apache
sudo service apache2 restart
That should get you going.
In the long term you might want to replace mcrypt
, it's deprecated for a reason.
Mcrypt has been deprecated in PHP 7.2, so it's not available by default.
You can still install the mcrypt extension using pecl. These instructions are for the apache
web server.
# Install prerequisites
sudo apt-get install php-dev libmcrypt-dev gcc make autoconf libc-dev pkg-config
# Compile mcrypt extension
sudo pecl install mcrypt-1.0.1
# Just press enter when it asks about libmcrypt prefix
# Enable extension for apache
echo "extension=mcrypt.so" | sudo tee -a /etc/php/7.2/apache2/conf.d/mcrypt.ini
# Restart apache
sudo service apache2 restart
That should get you going.
In the long term you might want to replace mcrypt
, it's deprecated for a reason.
edited Aug 8 at 7:42
answered May 17 at 13:45
Epskampie
22515
22515
add a comment |Â
add a comment |Â
up vote
2
down vote
php mcrypt has been removed in php 7.2 http://php.net/manual/en/migration71.deprecated.php
add a comment |Â
up vote
2
down vote
php mcrypt has been removed in php 7.2 http://php.net/manual/en/migration71.deprecated.php
add a comment |Â
up vote
2
down vote
up vote
2
down vote
php mcrypt has been removed in php 7.2 http://php.net/manual/en/migration71.deprecated.php
php mcrypt has been removed in php 7.2 http://php.net/manual/en/migration71.deprecated.php
answered May 16 at 4:10
bruri wijayanto
211
211
add a comment |Â
add a comment |Â
up vote
0
down vote
I did the following to get this working...
sudo add-apt-repository ppa:ondrej/php
sudo apt-get install php7.1-mcrypt
If you're running php5.6 or 7.0 then you can use the following
sudo apt-get install php5.6-mcrypt
sudo apt-get install php7.0-mcrypt
1
Ubuntu 18.04 has php7.2 in fact after added ppa repository and installet php7.1-mcrypt, when i do a2enmod mcrypt the response is "module mcrypt is not exists" !
â Andrea Rossetti
May 5 at 21:01
you're likely using php 7.2 (/etc/php/7.2
) -- this installs it to 7.1 (/etc/php/7.1/
) and only works if you also install/use that version of phpapt-get install php7.1
â Alvin
Jul 27 at 23:32
add a comment |Â
up vote
0
down vote
I did the following to get this working...
sudo add-apt-repository ppa:ondrej/php
sudo apt-get install php7.1-mcrypt
If you're running php5.6 or 7.0 then you can use the following
sudo apt-get install php5.6-mcrypt
sudo apt-get install php7.0-mcrypt
1
Ubuntu 18.04 has php7.2 in fact after added ppa repository and installet php7.1-mcrypt, when i do a2enmod mcrypt the response is "module mcrypt is not exists" !
â Andrea Rossetti
May 5 at 21:01
you're likely using php 7.2 (/etc/php/7.2
) -- this installs it to 7.1 (/etc/php/7.1/
) and only works if you also install/use that version of phpapt-get install php7.1
â Alvin
Jul 27 at 23:32
add a comment |Â
up vote
0
down vote
up vote
0
down vote
I did the following to get this working...
sudo add-apt-repository ppa:ondrej/php
sudo apt-get install php7.1-mcrypt
If you're running php5.6 or 7.0 then you can use the following
sudo apt-get install php5.6-mcrypt
sudo apt-get install php7.0-mcrypt
I did the following to get this working...
sudo add-apt-repository ppa:ondrej/php
sudo apt-get install php7.1-mcrypt
If you're running php5.6 or 7.0 then you can use the following
sudo apt-get install php5.6-mcrypt
sudo apt-get install php7.0-mcrypt
answered May 5 at 18:37
![](https://i.stack.imgur.com/fWqHz.png?s=32&g=1)
![](https://i.stack.imgur.com/fWqHz.png?s=32&g=1)
DanBarber
1
1
1
Ubuntu 18.04 has php7.2 in fact after added ppa repository and installet php7.1-mcrypt, when i do a2enmod mcrypt the response is "module mcrypt is not exists" !
â Andrea Rossetti
May 5 at 21:01
you're likely using php 7.2 (/etc/php/7.2
) -- this installs it to 7.1 (/etc/php/7.1/
) and only works if you also install/use that version of phpapt-get install php7.1
â Alvin
Jul 27 at 23:32
add a comment |Â
1
Ubuntu 18.04 has php7.2 in fact after added ppa repository and installet php7.1-mcrypt, when i do a2enmod mcrypt the response is "module mcrypt is not exists" !
â Andrea Rossetti
May 5 at 21:01
you're likely using php 7.2 (/etc/php/7.2
) -- this installs it to 7.1 (/etc/php/7.1/
) and only works if you also install/use that version of phpapt-get install php7.1
â Alvin
Jul 27 at 23:32
1
1
Ubuntu 18.04 has php7.2 in fact after added ppa repository and installet php7.1-mcrypt, when i do a2enmod mcrypt the response is "module mcrypt is not exists" !
â Andrea Rossetti
May 5 at 21:01
Ubuntu 18.04 has php7.2 in fact after added ppa repository and installet php7.1-mcrypt, when i do a2enmod mcrypt the response is "module mcrypt is not exists" !
â Andrea Rossetti
May 5 at 21:01
you're likely using php 7.2 (
/etc/php/7.2
) -- this installs it to 7.1 (/etc/php/7.1/
) and only works if you also install/use that version of php apt-get install php7.1
â Alvin
Jul 27 at 23:32
you're likely using php 7.2 (
/etc/php/7.2
) -- this installs it to 7.1 (/etc/php/7.1/
) and only works if you also install/use that version of php apt-get install php7.1
â Alvin
Jul 27 at 23:32
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1031921%2fphp-mcrypt-package-missing-in-ubuntu-server-18-04-lts%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Ubuntu php-mcrypt : packages.ubuntu.com/⦠... No php-mcrypt for 18.04 .
â Knud Larsen
May 4 at 18:28