Mcrypt with Mamp Pro on Mac OS X Yosemite 10.10

后端 未结 5 663
暖寄归人
暖寄归人 2021-01-03 11:30

After the Yosemite update yesterday, something is messed up with the Mcrypt extension. The PHP based artistan CLI of the Laravel framework returns:

M

5条回答
  •  难免孤独
    2021-01-03 11:37

    1) First check what php.ini file is loaded:

    php --ini

    You will probably see that none of the files have been loaded.

    2) If you don't mind reinstalling php you can do this:

    curl -s http://php-osx.liip.ch/install.sh | bash -s 5.6

    3) Then set the path to your new php installation in order to avoid using the native php that comes with OSX.

    In order to set the path use this command - something like this, bear in mind that your path could be different:

    export PATH=/usr/local/php5/bin:$PATH

提交回复
热议问题