Jump to content

Installing PHP MCrypt + library (libmcrypt) on CentOS 5 server…help please

- - - - -

  • Please log in to reply
3 replies to this topic

#1
shackrock

shackrock

    Learning Programmer

  • Members
  • PipPipPip
  • 66 posts
I'm trying to install mCrypt for PHP on my server, and before that it looks like I need to install libmcrypt as well...


I cannot find any instructions via google that actually work for this, can somebody please let me know how to do this?


I originally just tried yum install php-mcrypt but I get No package php-mcrypt available. - so I assume it's because I didn't install libmcrypt yet...
Thanks!



Repo Lists:

Quote

$ yum repolist
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirror.cogentco.com
* epel: mirror.cogentco.com
* extras: centos.aol.com
* rpmforge: fr2.rpmfind.net
* updates: mirror.ash.fastserv.com
repo id repo name status
base CentOS-5 - Base enabled: 3,535
epel Extra Packages for Enterprise Linux 5 - x86_64 enabled: 6,642
extras CentOS-5 - Extras enabled: 299
rpmforge RHEL 5 - RPMforge.net - dag enabled: 10,695
updates CentOS-5 - Updates enabled: 765
repolist: 21,936


---------- Post added at 11:56 AM ---------- Previous post was at 10:20 AM ----------

Update. I got the library installed. It was easy with yum, I just needed to be more specific about my OS (x86_64).

Now, I still can't find the php-mcrypt package. Can somebody tell me how to add atomic to my repo list? I am positive it is in there...

#2
shackrock

shackrock

    Learning Programmer

  • Members
  • PipPipPip
  • 66 posts
Update:

I've got php-mcrypt installed making sure nothing was excluded in yum... but it didn't come out with dependency failures:


Quote

Running Transaction
Installing : php-common 1/5
warning: /etc/php.ini created as /etc/php.ini.rpmnew
Installing : php-cli 2/5
Installing : httpd 3/5
Error unpacking rpm package httpd-2.2.3-45.el5.centos.1.x86_64
warning: /etc/httpd/conf/httpd.conf created as /etc/httpd/conf/httpd.conf.rpmnew
warning: /etc/httpd/conf/magic created as /etc/httpd/conf/magic.rpmnew
error: unpacking of archive failed on file /etc/httpd/logs: cpio: rename
Installing : php 4/5
Installing : php-mcrypt 5/5

Installed:
php-mcrypt.x86_64 0:5.1.6-15.el5.centos.1

Dependency Installed:
php.x86_64 0:5.1.6-27.el5_5.3 php-cli.x86_64 0:5.1.6-27.el5_5.3
php-common.x86_64 0:5.1.6-27.el5_5.3

Failed:
httpd.x86_64 0:2.2.3-45.el5.centos.1

Complete!



#3
Alexander

Alexander

    It's Science!

  • Moderators
  • 4,118 posts
  • Location:Vancouver, Eh! Cleverness: 200
The RPM package appears to be installing Apache and PHP along with php-mcrypt, have you PHP or Apache installed already?
Be sure to read the updated FAQ! || Health is achieved through the same 10,000 steps.
If a suggested code/method fails, informing us is less important than telling us why or what errors occurred.

#4
shackrock

shackrock

    Learning Programmer

  • Members
  • PipPipPip
  • 66 posts
Right you are. I do already have both installed, i have no idea why it wouldn't realize that though??

I had somebody help me fix things back up, and I am going to just use GPG now... Thanks.




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users