Yum install mcrypt on AWS linux (centos)

I can not install mcrypt in my new Linux module with PHP 5.4
I tried sudo yum install php-mcrypt , sudo yum install php-mcrypt.x86_64

result:

 Loaded plugins: priorities, update-motd, upgrade-helper Resolving Dependencies --> Running transaction check ---> Package php-mcrypt.x86_64 0:5.3.28-1.5.amzn1 will be installed --> Processing Dependency: php-common(x86-64) = 5.3.28-1.5.amzn1 for package: php-mcrypt-5.3.28-1.5.amzn1.x86_64 --> Processing Dependency: libmcrypt.so.4()(64bit) for package: php-mcrypt-5.3.28-1.5.amzn1.x86_64 --> Processing Dependency: libltdl.so.7()(64bit) for package: php-mcrypt-5.3.28-1.5.amzn1.x86_64 --> Running transaction check ---> Package libmcrypt.x86_64 0:2.5.8-9.1.2.amzn1 will be installed ---> Package libtool-ltdl.x86_64 0:2.4.2-18.4.8.2.21.amzn1 will be installed ---> Package php-common.x86_64 0:5.3.28-1.5.amzn1 will be installed --> Processing Conflict: php54-common-5.4.30-1.56.amzn1.x86_64 conflicts php-common < 5.4.30-1.56.amzn1 --> Finished Dependency Resolution Error: php54-common conflicts with php-common-5.3.28-1.5.amzn1.x86_64 You could try using --skip-broken to work around the problem You could try running: rpm -Va --nofiles --nodigest 

inside php.ini i added mcrypt.so but that didn't do anything
so I removed this and created /etc/php.d/mcrypt.ini and added extension=mcrypt.so

Any help please
thanks

+6
source share
4 answers

Most likely, the package is called php54-mcrypt instead of php-mcrypt if you have existing packages called php54-common .

+9
source

you can use:

 sudo yum install php56-mcrypt sudo service httpd restart 
+15
source

You need to remove all php5.3 related packages, including httpd, because php5.4> = works with httpd24. After eliminating all these packages, make sure all your packages are compatible with php 5.4.

This code may allow you to remove httpd to reinstall httpd24:
sudo yum erase httpd httpd-tools apr apr-util

Check out this link, which works for php 5.5, and can help you install php5.4 install php.5.5 using mcrypt on AWS Linux

+1
source

sudo yum install php56-mcrypt

sudo service httpd restart

worked very well for me

0
source

Source: https://habr.com/ru/post/973074/


All Articles