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?
Comments
Submitted by andreychek on Sun, 11/16/2014 - 15:03 Comment #1
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:
http://dl.fedoraproject.org/pub/epel/7/x86_64/p/php-mcrypt-5.4.16-2.el7....
Submitted by equusinteractive on Sun, 11/16/2014 - 22:00 Comment #2
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.
Thanks.
Submitted by andreychek on Sun, 11/16/2014 - 22:03 Comment #3
Hmm, what is the exact error you're receiving there regarding mbstring?
Submitted by equusinteractive on Mon, 11/17/2014 - 01:02 Comment #4
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/gettext.inc on line 177
Submitted by andreychek on Tue, 11/18/2014 - 08:28 Comment #5
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.
Submitted by equusinteractive on Tue, 11/18/2014 - 09:16 Comment #6
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)"
ID="rhel"
ID_LIKE="fedora"
VERSION_ID="7.0"
PRETTY_NAME="Red Hat Enterprise Linux Server 7.0 (Maipo)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:redhat:enterprise_linux:7.0:GA:server"
HOME_URL="https://www.redhat.com/"
BUG_REPORT_URL="https://bugzilla.redhat.com/"
REDHAT_BUGZILLA_PRODUCT="Red Hat Enterprise Linux 7"
REDHAT_BUGZILLA_PRODUCT_VERSION=7.0
REDHAT_SUPPORT_PRODUCT="Red Hat Enterprise Linux"
REDHAT_SUPPORT_PRODUCT_VERSION=7.0
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
Submitted by andreychek on Tue, 11/18/2014 - 22:12 Comment #7
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:
http://mirror.centos.org/centos/7/updates/x86_64/Packages/php-mbstring-5...