• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Installing mcrypt on Linux Centos 5.5 PHP 5.3.3 x86_64

DanielL84

New Pleskian
Hi

I know this problem has been answered before, but I cannot figure this out, so somewhere either I am doing something wrong or the prior solutions aren't quite right for my scenario.

I am trying to install Magento on my apache server. I am running into the dreaded mcrypt issue as Magento needs it to run. I have now been googling for the past few hours and have gotten nowhere.

Here are my details:

Linux
Centos 5.5
PHP 5.3.3
x86_64
Plesk 12

I have tried installing all sorts of different repos and it just isn't working.

When I try to install using # yum install php-mcrypt I get the following:

Loaded plugins: fastestmirror
Package php-mysql is obsoleted by php-mysqlnd, trying to install php-mysqlnd-5.5.13-3.el5.remi.x86_64 instead
--> Processing Dependency: php53-gd for package: psa-php53-configurator
--> Processing Dependency: php53-imap for package: psa-php53-configurator
--> Processing Dependency: php53-mbstring for package: psa-php53-configurator
--> Processing Dependency: php53-pdo for package: php53-mysql
Package php-mysql is obsoleted by php-mysqlnd, trying to install php-mysqlnd-5.5.13-3.el5.remi.x86_64 instead
--> Processing Dependency: php53-pdo for package: psa-php53-configurator
--> Processing Dependency: php53-xml for package: psa-php53-configurator
--> Running transaction check
---> Package gd-last.x86_64 0:2.1.0-2.el5.remi set to be updated
---> Package libedit.x86_64 0:3.0-2.20090923cvs.el5.art set to be updated
---> Package libssh2.x86_64 0:1.2.7-1.el5.remi set to be updated
--> Processing Dependency: openldap = 2.3.43-12.el5_6.7 for package: openldap-devel
--> Processing Dependency: openldap = 2.3.43-12.el5_6.7 for package: openldap-devel
---> Package openldap.i386 0:2.3.43-28.el5_10 set to be updated
---> Package openldap.x86_64 0:2.3.43-28.el5_10 set to be updated
---> Package php-cli.i386 0:5.4.29-35.el5.art set to be updated
--> Processing Dependency: libgmp.so.3 for package: php-cli
--> Processing Dependency: libedit.so.0 for package: php-cli
---> Package php-pear.noarch 1:1.9.4-28.el5.remi set to be updated
--> Processing Dependency: php-posix for package: php-pear
--> Processing Dependency: php53 for package: psa-php53-configurator
--> Processing Dependency: php53 >= 5.3.0 for package: php53-sqlite2
--> Processing Dependency: php53-common = 5.3.3-22.el5_10 for package: php53-mysql
Package php-mysql is obsoleted by php-mysqlnd, trying to install php-mysqlnd-5.5.13-3.el5.remi.x86_64 instead
--> Processing Dependency: php53-gd for package: psa-php53-configurator
--> Processing Dependency: php53-imap for package: psa-php53-configurator
--> Processing Dependency: php53-mbstring for package: psa-php53-configurator
--> Processing Dependency: php53-pdo for package: php53-mysql
Package php-mysql is obsoleted by php-mysqlnd, trying to install php-mysqlnd-5.5.13-3.el5.remi.x86_64 instead
--> Processing Dependency: php53-pdo for package: psa-php53-configurator
--> Processing Dependency: php53-xml for package: psa-php53-configurator
---> Package t1lib.x86_64 0:5.1.2-2.el5.art set to be updated
--> Processing Dependency: libXt.so.6()(64bit) for package: t1lib
--> Processing Dependency: libXaw.so.7()(64bit) for package: t1lib
--> Running transaction check
---> Package gmp.i386 0:4.1.4-10.el5 set to be updated
---> Package libXaw.x86_64 0:1.0.2-8.1 set to be updated
--> Processing Dependency: libXmu.so.6()(64bit) for package: libXaw
---> Package libXt.x86_64 0:1.0.2-3.2.el5 set to be updated
---> Package libedit.i386 0:3.0-2.20090923cvs.el5.art set to be updated
---> Package openldap-devel.i386 0:2.3.43-28.el5_10 set to be updated
---> Package openldap-devel.x86_64 0:2.3.43-28.el5_10 set to be updated
---> Package php-process.x86_64 0:5.5.13-3.el5.remi set to be updated
--> Processing Dependency: php53 for package: psa-php53-configurator
--> Processing Dependency: php53 >= 5.3.0 for package: php53-sqlite2
--> Processing Dependency: php53-common = 5.3.3-22.el5_10 for package: php53-mysql
Package php-mysql is obsoleted by php-mysqlnd, trying to install php-mysqlnd-5.5.13-3.el5.remi.x86_64 instead
--> Processing Dependency: php53-gd for package: psa-php53-configurator
--> Processing Dependency: php53-imap for package: psa-php53-configurator
--> Processing Dependency: php53-mbstring for package: psa-php53-configurator
--> Processing Dependency: php53-pdo for package: php53-mysql
Package php-mysql is obsoleted by php-mysqlnd, trying to install php-mysqlnd-5.5.13-3.el5.remi.x86_64 instead
--> Processing Dependency: php53-pdo for package: psa-php53-configurator
--> Processing Dependency: php53-xml for package: psa-php53-configurator
--> Running transaction check
---> Package libXmu.x86_64 0:1.0.2-5 set to be updated
--> Processing Dependency: php53 for package: psa-php53-configurator
--> Processing Dependency: php53 >= 5.3.0 for package: php53-sqlite2
--> Processing Dependency: php53-common = 5.3.3-22.el5_10 for package: php53-mysql
Package php-mysql is obsoleted by php-mysqlnd, trying to install php-mysqlnd-5.5.13-3.el5.remi.x86_64 instead
--> Processing Dependency: php53-gd for package: psa-php53-configurator
--> Processing Dependency: php53-imap for package: psa-php53-configurator
--> Processing Dependency: php53-mbstring for package: psa-php53-configurator
--> Processing Dependency: php53-pdo for package: php53-mysql
Package php-mysql is obsoleted by php-mysqlnd, trying to install php-mysqlnd-5.5.13-3.el5.remi.x86_64 instead
--> Processing Dependency: php53-pdo for package: psa-php53-configurator
--> Processing Dependency: php53-xml for package: psa-php53-configurator
--> Finished Dependency Resolution
psa-php53-configurator-1.6.3-cos5.build1200140606.16.x86_64 from installed has depsolving problems
--> Missing Dependency: php53 is needed by package psa-php53-configurator-1.6.3-cos5.build1200140606.16.x86_64 (installed)
php53-sqlite2-5.3.2-11070811.i386 from installed has depsolving problems
--> Missing Dependency: php53 >= 5.3.0 is needed by package php53-sqlite2-5.3.2-11070811.i386 (installed)
php53-mysql-5.3.3-22.el5_10.x86_64 from installed has depsolving problems
--> Missing Dependency: php53-pdo is needed by package php53-mysql-5.3.3-22.el5_10.x86_64 (installed)
psa-php53-configurator-1.6.3-cos5.build1200140606.16.x86_64 from installed has depsolving problems
--> Missing Dependency: php53-pdo is needed by package psa-php53-configurator-1.6.3-cos5.build1200140606.16.x86_64 (installed)
psa-php53-configurator-1.6.3-cos5.build1200140606.16.x86_64 from installed has depsolving problems
--> Missing Dependency: php53-xml is needed by package psa-php53-configurator-1.6.3-cos5.build1200140606.16.x86_64 (installed)
php53-mysql-5.3.3-22.el5_10.x86_64 from installed has depsolving problems
--> Missing Dependency: php53-common = 5.3.3-22.el5_10 is needed by package php53-mysql-5.3.3-22.el5_10.x86_64 (installed)
psa-php53-configurator-1.6.3-cos5.build1200140606.16.x86_64 from installed has depsolving problems
--> Missing Dependency: php53-gd is needed by package psa-php53-configurator-1.6.3-cos5.build1200140606.16.x86_64 (installed)
psa-php53-configurator-1.6.3-cos5.build1200140606.16.x86_64 from installed has depsolving problems
--> Missing Dependency: php53-mbstring is needed by package psa-php53-configurator-1.6.3-cos5.build1200140606.16.x86_64 (installed)
psa-php53-configurator-1.6.3-cos5.build1200140606.16.x86_64 from installed has depsolving problems
--> Missing Dependency: php53-imap is needed by package psa-php53-configurator-1.6.3-cos5.build1200140606.16.x86_64 (installed)
Error: Missing Dependency: php53 is needed by package psa-php53-configurator-1.6.3-cos5.build1200140606.16.x86_64 (installed)
Error: Missing Dependency: php53 >= 5.3.0 is needed by package php53-sqlite2-5.3.2-11070811.i386 (installed)
Error: Missing Dependency: php53-common = 5.3.3-22.el5_10 is needed by package php53-mysql-5.3.3-22.el5_10.x86_64 (installed)
Error: Missing Dependency: php53-pdo is needed by package psa-php53-configurator-1.6.3-cos5.build1200140606.16.x86_64 (installed)
Error: Missing Dependency: php53-gd is needed by package psa-php53-configurator-1.6.3-cos5.build1200140606.16.x86_64 (installed)
Error: Missing Dependency: php53-imap is needed by package psa-php53-configurator-1.6.3-cos5.build1200140606.16.x86_64 (installed)
Error: Missing Dependency: php53-mbstring is needed by package psa-php53-configurator-1.6.3-cos5.build1200140606.16.x86_64 (installed)
Error: Missing Dependency: php53-pdo is needed by package php53-mysql-5.3.3-22.el5_10.x86_64 (installed)
Error: Missing Dependency: php53-xml is needed by package psa-php53-configurator-1.6.3-cos5.build1200140606.16.x86_64 (installed)
You could try using --skip-broken to work around the problem
You could try running: package-cleanup --problems
package-cleanup --dupes
rpm -Va --nofiles --nodigest


I have also tried with php53-mcrypt and I am still getting missing dependencies. Can anyone please tell me what I am doing wrong and the steps I need to take to resolve this?
 
Last edited:
You either need to install php53-mcrypt instead or first switch from php53 to php packages, then install php-mcrypt.

Also consider migrating from CentOS 5 to a more recent OS in the future.
 
Thanks for responding Nikolay.

I thought I had tried to install php53-mcrypt. I used the commands:

#yum install php53-mcrypt (this didn't work - dependency issues)
#yum install php-mcrypt (this didn't work - dependency issues)
#yum install php53u-mcrypt (this didn't work - not installed)

I have the following repositories installed:

atomic
epel
remi

Do I need all of these installed? Is this what's causing the problem or have installed some with the wrong architecture? Should I un-install these?
 
I did it! I'm not 100% sure how, but it's worked.

I started by removing the other repositories apart from epel. Then I think I ran:

#yum install php53-mcrypt

I don't quite remember if there was another step in the process, so my apologies if you were searching and found this looking for answers.
 
I'm in the same boat here:

Plesk 12.0.18
CentOS 5.7
PHP 5.3.3
64 Bit

Below is the output below after running yum install php-mcrypt

[root@vps33422 ~]# yum install php-mcrypt
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* atomic: mirror1.34sp.com
* base: centos.hyve.com
* extras: mirrors.coreix.net
* updates: centos.hyve.com
atomic | 2.2 kB 00:00
base | 1.1 kB 00:00
extras | 2.1 kB 00:00
updates | 1.9 kB 00:00
Excluding Packages in global exclude list
Finished
Setting up Install Process
Resolving Dependencies
There are unfinished transactions remaining. You might consider running yum-complete-transaction first to finish them.
--> Running transaction check
---> Package php-mcrypt.i386 0:5.4.43-49.el5.art set to be updated
--> Processing Dependency: php-common = 5.4.43-49.el5.art for package: php-mcrypt
--> Processing Dependency: libmcrypt.so.4 for package: php-mcrypt
--> Processing Dependency: libltdl.so.3 for package: php-mcrypt
---> Package php-mcrypt.x86_64 0:5.4.43-49.el5.art set to be updated
--> Running transaction check
---> Package libmcrypt.i386 0:2.5.8-4.el5.art set to be updated
---> Package libtool-ltdl.i386 0:1.5.22-7.el5_4 set to be updated
---> Package php-common.x86_64 0:5.4.43-49.el5.art set to be updated
--> Processing Dependency: php53-common = 5.3.3-22.el5_10 for package: php53-mbstring
--> Processing Dependency: php53-common = 5.3.3-22.el5_10 for package: php53
--> Processing Dependency: php53-common = 5.3.3-22.el5_10 for package: php53-gd
--> Processing Dependency: php53-common = 5.3.3-22.el5_10 for package: php53-cli
--> Processing Dependency: php53-common = 5.3.3-22.el5_10 for package: php53-pdo
--> Processing Dependency: php53-common = 5.3.3-22.el5_10 for package: php53-xml
--> Processing Dependency: php53-common = 5.3.3-22.el5_10 for package: php53-imap
--> Processing Dependency: php53-common = 5.3.3-22.el5_10 for package: php53-mysql
--> Running transaction check
---> Package php.x86_64 0:5.4.43-49.el5.art set to be updated
---> Package php-cli.x86_64 0:5.4.43-49.el5.art set to be updated
--> Processing Dependency: libedit.so.0()(64bit) for package: php-cli
---> Package php-gd.x86_64 0:5.4.43-49.el5.art set to be updated
--> Processing Dependency: libt1.so.5()(64bit) for package: php-gd
---> Package php-imap.x86_64 0:5.4.43-49.el5.art set to be updated
---> Package php-mbstring.x86_64 0:5.4.43-49.el5.art set to be updated
---> Package php-mysql.x86_64 0:5.4.43-49.el5.art set to be updated
---> Package php-pdo.x86_64 0:5.4.43-49.el5.art set to be updated
---> Package php-xml.x86_64 0:5.4.43-49.el5.art set to be updated
--> Processing Dependency: php53 >= 5.3.0 for package: php53-sqlite2
--> Processing Dependency: php53 for package: psa-php53-configurator
--> Processing Dependency: php53-gd for package: psa-php53-configurator
--> Processing Dependency: php53-imap for package: psa-php53-configurator
--> Processing Dependency: php53-mbstring for package: psa-php53-configurator
--> Processing Dependency: php53-mysql for package: psa-php53-configurator
--> Processing Dependency: php53-pdo for package: php53-mysql
--> Processing Dependency: php53-pdo for package: psa-php53-configurator
--> Processing Dependency: php53-xml for package: psa-php53-configurator
--> Running transaction check
---> Package libedit.x86_64 0:3.0-2.20090923cvs.el5.art set to be updated
---> Package php53.x86_64 0:5.3.3-26.el5_11 set to be updated
--> Processing Dependency: php53-common = 5.3.3-26.el5_11 for package: php53
---> Package php53-gd.x86_64 0:5.3.3-26.el5_11 set to be updated
---> Package php53-imap.x86_64 0:5.3.3-26.el5_11 set to be updated
---> Package php53-mbstring.x86_64 0:5.3.3-26.el5_11 set to be updated
---> Package php53-mysql.x86_64 0:5.3.3-26.el5_11 set to be updated
---> Package php53-pdo.x86_64 0:5.3.3-26.el5_11 set to be updated
---> Package php53-xml.x86_64 0:5.3.3-26.el5_11 set to be updated
---> Package t1lib.x86_64 0:5.1.2-2.el5.art set to be updated
--> Processing Dependency: libXt.so.6()(64bit) for package: t1lib
--> Processing Dependency: libXaw.so.7()(64bit) for package: t1lib
--> Running transaction check
---> Package libXaw.x86_64 0:1.0.2-8.1 set to be updated
--> Processing Dependency: libXext.so.6()(64bit) for package: libXaw
--> Processing Dependency: libXmu.so.6()(64bit) for package: libXaw
---> Package libXt.x86_64 0:1.0.2-3.2.el5 set to be updated
--> Processing Dependency: libICE.so.6()(64bit) for package: libXt
--> Processing Dependency: libSM.so.6()(64bit) for package: libXt
---> Package php53-common.x86_64 0:5.3.3-26.el5_11 set to be updated
--> Running transaction check
---> Package libICE.x86_64 0:1.0.1-2.1 set to be updated
---> Package libSM.x86_64 0:1.0.1-3.1 set to be updated
---> Package libXext.x86_64 0:1.0.1-2.1 set to be updated
---> Package libXmu.x86_64 0:1.0.2-5 set to be updated
--> Processing Conflict: php53-common conflicts php-common
--> Finished Dependency Resolution
php53-common-5.3.3-26.el5_11.x86_64 from updates has depsolving problems
--> php53-common conflicts with php-common
Error: php53-common conflicts with php-common
You could try using --skip-broken to work around the problem
You could try running: package-cleanup --problems
package-cleanup --dupes
rpm -Va --nofiles --nodigest



Can anyone help?

Many Thanks
 
Back
Top