Search code examples
wampmagento-1.9mcryptphp-7.2

Magento on PHP 7.2 wamp server


i am configuring an existing magento project on local system with WAMP server php version 7.2, while installing magento i get error "PHP extension "mcrypt" must be loaded." Problem is mycrypt is no longer supported in php 7.2, can anyone suggest how can i resolve it?


Solution

  • mcrypt has been moved from php to pecl since 7.2

    You still can install it.

    Install dependencies

    gcc make autoconf libc-dev pkg-config
    

    install the lib itself

    libmcrypt-dev
    

    I assume php7.2 and pecl are installed so you just install mcrypt-1.0.1 (or whatever version is in rep.) with pecl

    pecl install mcrypt-1.0.1