problem with mcrypt installation

后端 未结 6 1395
不思量自难忘°
不思量自难忘° 2021-02-19 09:08

I\'ve asked the system admins to install mcrypt on the server, and they say everything is OK. But when I run my simple script I get this.

Warning

6条回答
  •  没有蜡笔的小新
    2021-02-19 09:32

    How to install mcrypt on MAC OSX:

    Hello, tested and working on Mac OSX El Capitan:

    1. Download mcrypt: http://www.viames.it/download/elcapitan/mcrypt.so

    2. Place it in:

    /usr/lib/php/extensions/mcrypt

    3. Modify your 'php.ini'

    /etc/php.ini

    and add the following line:

    extension = /usr/lib/php/extensions/mcrypt.so
    

    4. Check if 'mcrypt' is loaded with the following command:

    php -m

    php -m console result

    5. Create a 'phpinfo.php' with content:

    
    

    and see if mcrypt is listed:

    phpinfo() shows now mcrypt to be loaded

    Yes, I know I'm a gangsta.

提交回复
热议问题