在 CentOS 6 上安装 php-mcrypt
我已经尝试安装 php-mcrypt 一段时间了.每次我得到没有可用的包 php-mcrypt".回到我身边.这是我尝试过的:
I have been trying to install php-mcrypt for a while now. Everytime I get the "No package php-mcrypt available." returned to me. Here's what I've tried:
root@ip-********** [~]# yum install php-mcrypt --enablerepo=centosplus (<- both with and without this)
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: p3plmirror01.prod.phx3.secureserver.net
* centosplus: p3plmirror01.prod.phx3.secureserver.net
* epel: mirrors.solfo.com
* extras: p3plmirror01.prod.phx3.secureserver.net
* updates: p3plmirror01.prod.phx3.secureserver.net
centosplus | 3.5 kB 00:00
centosplus/primary_db | 746 kB 00:00
Setting up Install Process
No package php-mcrypt available.
Error: Nothing to do
我已确保安装 EPEL 存储库.在这一点上,我只是难住了.我遵循了我在网上找到的每一个教程并得到了同样的错误.
I have made sure to install the EPEL repository. At this point I'm just stumped. I've followed EVERY tutorial I've found online and get the same error.
注意事项:Go Daddy VPS,CentOS 6.4 64 位,mcrypt 顺利安装,但没有 php-mcrypt.
Notes: Go Daddy VPS, CentOS 6.4 64-bit, mcrypt installed without a hitch, but no php-mcrypt.
推荐答案
我能够解决这个问题;它比我想象的要简单得多.在 WHM 管理器下转到:主页 >> 软件 >> EasyApache(Apache 更新) >> 您有两个选项构建配置文件"或基于配置文件自定义".我去自定义以保留我当前的配置,然后按照页面上的说明进行操作.
I was able to figure this out; it was a lot simpler then I thought. Under the WHM manager go to: Home >> Software >> EasyApache (Apache Update) >> There you have two options "Build Profile" or "Customize Based On Profile". I went Customize to keep my current config then followed the instructions on the page.
最终有一个地方可以添加和删除 php 模块.在那里你会发现太阳下的任何模块.只需选择您想要的并重建配置文件.就这么简单.
Eventually there was a place to add and remove php modules. There you will find ever module under the sun. Just select the one you want and rebuild the profile. It was really that simple.
相关文章