How can I install mcrypt under PHP7? Laravel needs it

前端 未结 9 1167
盖世英雄少女心
盖世英雄少女心 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:58

    I use, Dotdeb, an extra repository providing up-to-date all kinds of cool toys for your Debian servers like Nginx, PHP, MySQL, Redis etc.

    1. Update your sources.list

      deb http://packages.dotdeb.org {distribution} all 
      deb-src http://packages.dotdeb.org {distribution} all
      
    2. GnuPG keys

      wget https://www.dotdeb.org/dotdeb.gpg
      sudo apt-key add dotdeb.gpg
      
    3. Update apt & build something amazing.

      sudo apt-get update
      

提交回复
热议问题