1

我正在尝试在我的服务器上托管 phpmyadmin。我有 centos 6.8,但是当我加载 phpmyadmin 时,它显示 500 错误。我去错误日志检查错误,我发现了这个错误:

致命错误:调用 /var/www/html/phpMyAdminDlc/libraries/php-gettext/gettext.inc 中未定义的函数 mb_detect_encoding()

所以现在我正在尝试使用命令安装 mbstring

#yum install php-mbstring

但我得到错误

Loaded plugins: fastestmirror
  Setting up Install Process
  Loading mirror speeds from cached hostfile
   * base: mirror.daniel-jost.net
   * epel: mirror.daniel-jost.net
   * extras: mirror.daniel-jost.net
   * updates: mirror.daniel-jost.net
   * webtatic: uk.repo.webtatic.com
  Resolving Dependencies
  --> Running transaction check
  ---> Package php-mbstring.x86_64 0:5.3.3-48.el6_8 will be installed
  --> Processing Dependency: php-common(x86-64) = 5.3.3-48.el6_8 for package: php-mbstring-5.3.3-48.el6_8.x86_64
  --> Running transaction check
  ---> Package php-common.x86_64 0:5.3.3-48.el6_8 will be installed
  --> Processing Conflict: php55w-common-5.5.38-1.w6.x86_64 conflicts php-common < 5.5
  --> Finished Dependency Resolution
  Error: php55w-common conflicts with php-common-5.3.3-48.el6_8.x86_64
   You could try using --skip-broken to work around the problem
  ** Found 2 pre-existing rpmdb problem(s), 'yum check' output follows:
  cronie-1.4.4-15.el6_7.1.x86_64 has missing requires of /usr/sbin/sendmail
  redhat-lsb-core-4.0-7.el6.centos.x86_64 has missing requires of /usr/sbin/sendmail

我无法安装 php-mbstring。我错过了什么吗?

4

1 回答 1

0

试试这个:

yum --enablerepo=remi install php-mbstring

之后重启apache服务器

参考:如何在 CentOS 6.2 上安装 PHP mbstring

http://php.net/manual/en/mbstring.installation.php

于 2016-11-22T08:30:13.780 回答