How can I install mcrypt under PHP7? Laravel needs it

前端 未结 9 1154
盖世英雄少女心
盖世英雄少女心 2020-12-01 04:16

Since Laravel4 requires mcrypt extension, and PHP7 doesn\'t seem to have mcrypt extension, is there any workaround for this to work?

9条回答
  •  一生所求
    2020-12-01 04:45

    Had the same issue - PHP7 missing mcrypt.

    This worked for me. When asked, keep local PHP configuration files.

    sudo apt-get update
    sudo apt-get install mcrypt php7.0-mcrypt
    sudo apt-get upgrade
    

    Restart FPM (or Apache or NGINX etc.) after installation.

提交回复
热议问题