PHPMyAdmin Not Installing On EC2 server

Under one of our domains, there is an option to install scripts. I tried installing PHPMyAdmin (to administer the database) but it gives the following error:

Error: Package: php-mcrypt-5.3.3-1.el6.x86_64 (virtualmin) Requires: php-api = 20090626 Installed: php-common-5.4.16-23.el7_0.3.x86_64 (@rhui-REGION-rhel-server-releases) php-api = 20100412-64 Available: php-common-5.4.16-21.el7.x86_64 (rhui-REGION-rhel-server-releases) php-api = 20100412-64 Available: php-common-5.4.16-23.el7_0.x86_64 (rhui-REGION-rhel-server-releases) php-api = 20100412-64 Available: php-common-5.4.16-23.el7_0.1.x86_64 (rhui-REGION-rhel-server-releases) php-api = 20100412-64 You could try using --skip-broken to work around the problem You could try running: rpm -Va --nofiles --nodigest

This error is happening because the server has a higher version of some PHP libraries whereas php-mcrypt extension is expecting a lower version.

What should we do to fix this?



Howdy -- it looks like there's a problem with the php-mcrypt package that's in our CentOS 7 repo. Joe is looking into that.

One option in the meantime is to remove php-mcrypt, and then try the phpMyAdmin installation again.

Alternatively, you could always manually install the php-mcrypt package from EPEL, which is the correct version, and is what Joe will ultimately be putting into the repository here:

I installed php-mcrypt manually from EPEL. but now it is failing on the php-mbstring. When can I find the rpm for that? I dont want to install just any php-mbstring rpm as I don't want to cause a conflict later on. So, if you could provide me with the link of the php-mbstring rpm which will work properly with Virtualmin, that would be great.


Hmm, what is the exact error you're receiving there regarding mbstring?

There's no error. php-mbstring is just not installed on the system. And since it is not installed on the system, PHPMyAdmin is throwing the following error:

PHP Fatal error: Call to undefined function mb_detect_encoding() in /home/[username]/public_html/phpmyadmin/libraries/php-gettext/ on line 177

Hmm, that's an unusual issue... I wasn't under the impression that mbstring was required for phpMyAdmin, only that it was optional.

Out of curiosity, where do you see that error being thrown in phpMyAdmin?

It looks like php-mbstring is part of CentOS 7 though... you should be able to install it by running this command:

yum install php-mbstring

So far we haven't been able to reproduce that issue, but once we determine the cause, we'll look into making mbstring a dependency for that Install Script in the future.

I see the error in the error log of the domain.

Here is the server version info:

NAME="Red Hat Enterprise Linux Server"
VERSION="7.0 (Maipo)"
PRETTY_NAME="Red Hat Enterprise Linux Server 7.0 (Maipo)"

REDHAT_BUGZILLA_PRODUCT="Red Hat Enterprise Linux 7"
REDHAT_SUPPORT_PRODUCT="Red Hat Enterprise Linux"
Red Hat Enterprise Linux Server release 7.0 (Maipo)
Red Hat Enterprise Linux Server release 7.0 (Maipo)

yum install php-mbstring is not working on that. It shows the following:

Loaded plugins: amazon-id, rhui-lb
No package php-mbstring available.
Error: Nothing to do

Hmm, the php-mbstring package should be available on CentOS 7... I wonder if there's a problem with the CentOS 7 package repository setup.

What is the output of these two commands:

ls /etc/yum.repos.d
cat /etc/yum.repos.d/*.repo

However, if you wish to manually install it in the meantime, you can find the most recent version here: