• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

'mcrypt' extension

J Cole

Basic Pleskian
Hello, how do I install PHP extension 'mcrypt' .
magento require it to install
Plesk 11.5 Centos 5.6
 
Last edited:
thanks, I try it and it did not work.


[root@ns2 ~]# yum install php-mcrypt
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: less.cogeco.net
* extras: centos.mirror.rafal.ca
* updates: less.cogeco.net
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package php-mcrypt.x86_64 0:5.1.6-15.el5.centos.1 set to be updated
--> Processing Dependency: php-api = 20041225 for package: php-mcrypt
--> Processing Dependency: php >= 5.1.6 for package: php-mcrypt
--> Running transaction check
---> Package php.x86_64 0:5.1.6-45.el5_11 set to be updated
--> Processing Dependency: php-cli = 5.1.6-45.el5_11 for package: php
---> Package php-common.x86_64 0:5.1.6-45.el5_11 set to be updated
--> Running transaction check
---> Package php-cli.x86_64 0:5.1.6-45.el5_11 set to be updated
--> Processing Conflict: php53-common conflicts php-common
--> Restarting Dependency Resolution with new changes.
--> Running transaction check
--> Processing Dependency: php53-common = 5.3.3-24.el5 for package: php53-gd
--> Processing Dependency: php53-common = 5.3.3-24.el5 for package: php53-pdo
--> Processing Dependency: php53-common = 5.3.3-24.el5 for package: php53-xml
--> Processing Dependency: php53-common = 5.3.3-24.el5 for package: php53-mbstring
--> Processing Dependency: php53-common = 5.3.3-24.el5 for package: php53-imap
--> Processing Dependency: php53-common = 5.3.3-24.el5 for package: php53-mysql
--> Processing Dependency: php53-common = 5.3.3-24.el5 for package: php53
--> Processing Dependency: php53-common = 5.3.3-24.el5 for package: php53-cli
---> Package php53-common.x86_64 0:5.3.3-26.el5_11 set to be updated
--> Running transaction check
---> Package php53.x86_64 0:5.3.3-26.el5_11 set to be updated
---> Package php53-cli.x86_64 0:5.3.3-26.el5_11 set to be updated
---> 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
--> 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
The program package-cleanup is found in the yum-utils package.
[root@ns2 ~]#
 
I wonder why people never mention WHAT PHP - version they use, when they ask for suggestions... but never mind....

yum install php53-mcrypt
 
Hello this the result
[root@ns2 ~]# yum install php53-mcrypt?
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: less.cogeco.net
* extras: centos.mirror.rafal.ca
* updates: less.cogeco.net
Setting up Install Process
No package php53-mcrypt? available.
Nothing to do
 
Well... in this case you have to compile it yourself or use repos, which contain the desired package.

Here is an example, to re-configure your current PHP - version... this example might vary, depending on your system configuration, so please use the "locate" - function, if you don't find folders or files.

HTML:
yum install php53-devel libmcrypt-devel gcc
mkdir /root/addons
cd /root/addons
wget ftp://fr2.rpmfind.net/linux/centos/5.11/updates/x86_64/RPMS/php53-common-5.3.3-26.el5_11.x86_64.rpm
mkdir /usr/src/redhat
rpm -i php53-common-5.3.3-26.el5_11.x86_64.rpm
cd /usr/src/redhat/SOURCES
bunzip2 php-5.3.3.tar.bz2
tar xf php-5.3.3.tar
cd php-5.3.3/ext/mcrypt
phpize
aclocal
./configure
make
make install
echo "extension=mcrypt.so" > /etc/php.d/mcrypt.ini
service httpd restart
 
Thanks very much for your help.
When I cd /root/addons
[root@server addons]# ls
php53-common-5.3.3-26.el5_11.x86_64.rpm
but afer
mkdir /usr/src/redhat
/redhat is empty

How do I run
rpm -i php53-common-5.3.3-26.el5_11.x86_64.rpm

and
bunzip2 php-5.3.3.tar.bz2
in
cd /usr/src/redhat/SOURCES
 
This was just an example... please use your own specifications for folders. Consider using the LOCATE - function, to place manual configured packages, where all the others are placed as well:

Example:

locate SOURCES

... could locate folders on your system, with the name SOURCES in the folder structure.
 
Hello, I tried and got an error

--> Processing Conflict: php53-common conflicts php-common
--> Finished Dependency Resolution
php53-common-5.3.3-26.el5_11.x86_64 from installed 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
The program package-cleanup is found in the yum-utils package.
 
Back
Top