错误的mcrypt升级到埃尔卡皮坦OS后, [英] Error in mcrypt after upgrading into El Capitan OS
问题描述
我刚刚升级我的操作系统到埃尔卡皮坦。我不得不这样做在我的Apache配置一些修改,使一切工作像以前那样。
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.
感谢 - <一个href=\"http://coolestguidesontheplanet.com/get-apache-mysql-php-and-phpmyadmin-working-on-osx-10-11-el-capitan/\" rel=\"nofollow\">http://coolestguidesontheplanet.com/get-apache-mysql-php-and-phpmyadmin-working-on-osx-10-11-el-capitan/
这是不是为我工作的一件事是mcrypt扩展。任何人都知道如何更新它,使其工作?
One thing that is not working for me is the Mcrypt extension. Anyone knows how to update it to make it work?
推荐答案
如果你看一下<一个href=\"https://coolestguidesontheplanet.com/install-mcrypt-for-php-on-mac-osx-10-10-yosemite-for-a-development-server/#comment-2450227445\"相对=nofollow称号=>最酷指南在Mac OSX 10.11埃尔卡皮坦的开发服务器上安装PHP的mcrypt的在的星球单独页面的mcrypt他们建议禁用SIP。但有一个办法来解决这一点。跟着导游为正常(跳过SIP部分)和运行后的/ usr / bin中/运行phpize
您可以在此改变扩展目录制作
正在使用。
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.
首先创建一个新的家为你的PHP扩展:
First create a new home for your php extensions:
mkdir -p /usr/local/lib/php/extensions
然后运行:
./configure
make
sudo make EXTENSION_DIR='/usr/local/lib/php/extensions' install
最后,当你扩展添加到您的的php.ini
最简单的方法是包含完整的文件路径。
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.
间接引用:结果
<一href=\"https://apple.stackexchange.com/questions/208815/error-configuring-mcrypt-after-upgrading-to-el-capitan/236950\">Error升级到埃尔卡皮坦后配置的mcrypt(提出不同)结果
<一href=\"https://coolestguidesontheplanet.com/install-mcrypt-for-php-on-mac-osx-10-10-yosemite-for-a-development-server/#comment-2450227445\"相对=nofollow>由Jon加德纳的评论开始了我的道路上
这篇关于错误的mcrypt升级到埃尔卡皮坦OS后,的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!