How to install php-mcrypt in lando with php 7.2?

2019-08-21 04:25发布

问题:

Following example in How to install mcrypt on Docker I came to this:

name: myapp
  recipe: drupal7
  config:
    webroot: web
    php: '7.2'
proxy:
  pma:
    - pma.myapp.lndo.site
services:
  pma:
    type: phpmyadmin
appserver:
  extras:
    - "apt-get update -y"
    - "apt-get install libmcrypt-dev"
    - "pecl install mcrypt-1.0.1"
    - "docker-php-ext-enable mcrypt"

After rebuilding I see:

$ lando php -m | grep mcrypt
mcrypt

But in my web application when I look at the page with phpinfo(), then there is no trace of mcrypt. Please help me out to install php-mcrypt correctly.