Error in mcrypt after upgrading into El Capitan OS

后端 未结 3 1225
野的像风
野的像风 2021-01-24 13:56

I just upgraded my OS into El Capitan. I had to do some changes in my apache configurations to make everything works as it did before.

Thanks for - http://coolestguideso

3条回答
  •  野趣味
    野趣味 (楼主)
    2021-01-24 14:14

    If you look at Coolest Guides On The Planet's separate page for mcrypt they suggest disabling SIP. But there's a way to get around that. Follow the guide as normal (skipping the SIP part) and after running /usr/bin/phpize you can overide the extensions directory make is using.

    First create a new home for your php extensions:

    mkdir -p /usr/local/lib/php/extensions
    

    Then run:

    ./configure
    
    make
    
    sudo make EXTENSION_DIR='/usr/local/lib/php/extensions' install
    

    And finally, when you add the extension to your php.ini the most straightforward option is to include the full path to the file.

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

    So far this is working for me.

    Indirect references:
    Error configuring mcrypt after upgrading to El Capitan (Ask Different)
    Comment by Jon Gardner that started me on the path

提交回复
热议问题