Laravel requires the Mcrypt PHP extension

后端 未结 22 2032
生来不讨喜
生来不讨喜 2020-11-22 07:59

I am trying to use the migrate function in Laravel 4 on OSX. However, I am getting the following error:

Laravel requir         


        
22条回答
  •  隐瞒了意图╮
    2020-11-22 08:23

    In Ubuntu (PHP-FPM,Nginx)

    sudo apt-get install php5-mcrypt
    

    After installing php5-mcrypt

    you have to make a symlink to ini files in mods-available:

    sudo ln -s /etc/php5/conf.d/mcrypt.ini /etc/php5/mods-available/mcrypt.ini
    

    enable:

    sudo php5enmod mcrypt
    

    restart php5-fpm:

    sudo service php5-fpm restart
    

    More detail

提交回复
热议问题