Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
 Post subject: CentOS and PHP 5.2
PostPosted: Fri Apr 15, 2011 8:38 pm 
Offline
Junior Member

Joined: Mon Apr 11, 2011 9:49 pm
Posts: 49
I ran through a tutorial for updating to PHP 5.2 via RPMs';
http://wiki.centos.org/HowTos/PHP_5.1_To_5.2

In the tutorial I did;
Code:
wget http://yum.cocoiti.com/CentOS/5/RPMS/i686/php-mcrypt-5.2.10-1.i686.rpm

rpm -i --nodeps php-mcrypt-5.2.10-1.i686.rpm
warning: php-mcrypt-5.2.10-1.i686.rpm: Header V3 DSA signature: NOKEY, key ID 9f63b763

Restarted apache, mcrypt wasn't installed. (I used a phpinfo() page.)

However.. it installed mcrypt.so to;
/usr/lib/php/modules/

But all the other .so files are stored in;
/usr/lib64/php/modules/

I copied the file to the lib64 directory, and restarted apache. Still didn't work.

So.. then.. I tried to unstall, by doing this;
Code:
rpm -qa |grep php-m

Returned;
Code:
php-mysql-5.2.10-1.el5.centos
php-mcrypt-5.2.10-1
php-mbstring-5.2.10-1.el5.centos


Then I typed in;
Code:
rpm -e php-mycrypt-5.2.10-1
error: package php-mycrypt-5.2.10-1 is not installed

Yeah.. so now I'm stuck, don't know how to make php use it.. I also found a file;
/etc/php.d/mcrypt.ini
Contents:
; Enable mcrypt extension module
extension=mcrypt.so

Am I totally screwed or what? :P


Top
   
 Post subject:
PostPosted: Sat Apr 16, 2011 6:00 am 
Offline
Senior Member

Joined: Sun Mar 07, 2010 7:47 pm
Posts: 1970
Website: http://www.rwky.net
Location: Earth
Sounds like you downloaded the 32bit mcrypt module on a 64 bit php installation, find the 64 bit module and install that.

_________________
Paid support
How to ask for help
1. Give details of your problem
2. Post any errors
3. Post relevant logs.
4. Don't hide details i.e. your domain, it just makes things harder
5. Be polite or you'll be eaten by a grue


Top
   
 Post subject:
PostPosted: Sat Apr 16, 2011 1:11 pm 
Offline
Junior Member

Joined: Mon Apr 11, 2011 9:49 pm
Posts: 49
obs wrote:
Sounds like you downloaded the 32bit mcrypt module on a 64 bit php installation, find the 64 bit module and install that.
Ok, I thought i686 was 64 bit, but on more inspection I see that I agree with you that I need x86_64.

That doesn't resolve the issue with how to remove the invalid i686 rpm.


Top
   
 Post subject:
PostPosted: Sat Apr 16, 2011 1:37 pm 
Offline
Senior Member

Joined: Sun Mar 07, 2010 7:47 pm
Posts: 1970
Website: http://www.rwky.net
Location: Earth
oops sorry

rpm -e php-mycrypt-5.2.10-1
error: package php-mycrypt-5.2.10-1 is not installed

You typoed, you put mycrypt.

_________________
Paid support
How to ask for help
1. Give details of your problem
2. Post any errors
3. Post relevant logs.
4. Don't hide details i.e. your domain, it just makes things harder
5. Be polite or you'll be eaten by a grue


Top
   
 Post subject:
PostPosted: Sat Apr 16, 2011 2:16 pm 
Offline
Junior Member

Joined: Mon Apr 11, 2011 9:49 pm
Posts: 49
Very bizzare, today I tried to install php-mycrypt, and I got this error;
Code:
Transaction Check Error:
  package php-mcrypt-5.2.10-1.i686 (which is newer than php-mcrypt-5.2.9-2.el5.centos.3.x86_64) is already installed

So then! I did;
Code:
rpm -e php-mcrypt-5.2.10-1.i686

And it worked! lol

So I guess, if you are running CentOS 64 bit, the correct lettering includes the type of rpm, in this case i686, in order to uninstall. I hope this helps someone out there with similar issues with installing the wrong type of rpm on their linux box.. :P


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group