PHP 7.2 with mcrypt in Windows
Basically I think you have mentioned all possibilities and you do not have a choice. Do not downgrade to PHP 5.6 this approach has no future.
MCrypt was removed from PHP for one of the main reasons why you want to upgrade PHP: Security. The MCrypt library is not maintained anymore. Therefore installing the MCrypt extension is also a bad idea. But it can be a temporary solution (follow e.g. those instructions https://serverpilot.io/community/articles/how-to-install-the-php-mcrypt-extension.html).
The only good solution is migrating from mcrypt to something else. There are questions regarding this topic on Stackoverflow already (e.g. Upgrading my encryption library from Mcrypt to OpenSSL). Alternativly you could use some encryption library. Migrating a large amount of code/data might be a pain but this is the most future-oriented approach in this case.
How to install php-mcrypt in lando with php 7.2?
This is what you've missed:
services:
appserver:
build_as_root:
- apt-get update -y
- apt-get install libmcrypt-dev
- pecl install mcrypt-1.0.1
- docker-php-ext-enable mcrypt
You can use the following:
name: myapp
recipe: drupal7
config:
webroot: web
php: '7.2'
proxy:
pma:
- pma.myapp.lndo.site
services:
pma:
type: phpmyadmin
appserver:
build_as_root:
- apt-get update -y
- apt-get install libmcrypt-dev
- pecl install mcrypt-1.0.1
- docker-php-ext-enable mcrypt
php 7 Mcrypt PHP extension required
Had the same issue - PHP7 missing mcrypt.
This worked for me in Ubuntu Please try below commands.
sudo apt-get update
sudo apt-get install mcrypt php7.0-mcrypt
sudo apt-get upgrade
Then restarts apache
sudo service apache2 restart
Hope this commands helps!
Related Topics
Add PHP Variable Inside Echo Statement as Href Link Address
How to Use Composer Packages in Codeigniter
Laravel 4 Removing Public from Url
Phpmyadmin Error: the Mbstring Extension Is Missing. Please Check Your PHP Configuration
How to Define a Laravel Route with a Parameter That Contains a Slash Character
Iterable Objects and Array Type Hinting
In PHP How to Inspect Content of a Zip File Without Extracting Its Content First
Symfony 2 - How to Pass Data to Formbuilder
Sending Xml Data Using Http Post with PHP
How to Rotate Image and Save the Image
Show/Hide Fields Depending on Select Value
Get Variable from PHP File Using Jquery/Ajax
MySQL Get a Random Value Between Two Values
Explode() into $Key=>$Value Pair
Add Http:// Prefix to Url When Missing