Fedora Core 2 - Plesk 8.1 - PHP 4.3.10 - Help with mcrypt

Support/Development for PHP
raaqi
Forum User
Forum User
Posts: 7
Joined: Sun Jun 10, 2007 9:59 pm

Fedora Core 2 - Plesk 8.1 - PHP 4.3.10 - Help with mcrypt

Unread post by raaqi »

Tried yum install php-mcrypt

[root@root]# yum install php-mcrypt
Gathering header information file(s) from server(s)
Server: Atomic Rocket Turtle - 2 - Atomic PSA-Compatible RPMS
Server: Atomic Rocket Turtle - 2 - Atomic PSA App Vault RPMS
Server: Fedora Core 2 - i386 - Base
Server: Atomic Rocket Turtle - 2 - SW-Soft PSA 8.1 RPMS
Server: Fedora Core 2 - i386 - Released Updates
Finding updated packages
Downloading needed headers
Cannot find a package matching php-mcrypt
No actions to take

Should I just follow the instructions here:
http://www.atomicrocketturtle.com/Jooml ... ew/141/29/

Upgrading from Fedora Core 2 PHP 4.3.11
Remove incompatible packages: yum remove php-domxml
Update PHP: yum upgrade


Will this upgrade everything? I only want PHP with Mcrypt & don't want to touch anything else on the server.

I would prefer to keep my current version of PHP for now, and upgrade later. I've installed libmcrypt, libmhash and mhash.

I wish it was as easy as just ./configure with mcrypt but plesk don't keep the install files :(

Any advice would be appreciated.
raaqi
Forum User
Forum User
Posts: 7
Joined: Sun Jun 10, 2007 9:59 pm

Unread post by raaqi »

Fixed:

Installed: libmcrypt-2.5.7.tar.gz
./configure --prefix=/usr/local/mcrypt
make
make check
make install

Installed: libmhash-0.9.1-1.1.fc2.dag.i386.rpm
rpm -iHv libmhash-0.9.1-1.1.fc2.dag.i386.rpm

Installed: mhash-0.9.9.tar.gz
./configure
make
make check
make install

Edited /etc/ld.so.conf
nano /etc/ld.so.conf
added line /usr/local/mcrypt
ran command [root@/]# ldconfig

Installed: php-mcrypt-4.3.10-2.4.2.i386.rpm
rpm -iHv php-mcrypt-4.3.10-2.4.2.i386.rpm


Apache was restarted automatically & now mcrypt works.

I'm not sure whether this was the right way to do it, however it worked for me. I had a problem where the rpm's weren't installing, so i rebooted & everything installed correctly.
scott
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 8355
Joined: Wed Dec 31, 1969 8:00 pm
Location: earth
Contact:

Unread post by scott »

and the obligatory, "you should really upgrade from FC2 to something newer." It was EOL'd almost a year ago
Post Reply