簡體   English   中英

亞馬遜網絡服務phpmyadmin:缺少mbstring擴展名

[英]Amazon web services phpmyadmin: The mbstring extension is missing

我已經在本教程的手上安裝了phpMyAdmin: https//gist.github.com/suvozit/8998731並將我的RDS實例作為主機連接到/var/www/html/phpmyadmin/config.inc.php文件中。

現在,當我訪問example.com/phpmyadmin/index.php時出現以下錯誤:

缺少mbstring擴展名。 請檢查您的PHP配置。

所以我在互聯網上搜索了這個錯誤,人們帶來了以下解決方案,我嘗試過:

安裝php-mbstring擴展:

yum install php-mbstring 

當我輸入此命令時,過程開始,但返回以下行:

-> Processing Conflict: php55-common-5.5.24-1.100.amzn1.x86_64 php-common <5.5.24-1.100.amzn1 conflict
-> Processing Conflict: php55-mbstring-5.5.24-1.100.amzn1.x86_64 php-mbstring <5.5.24-1.100.amzn1 conflict
-> Processing Conflict: php56-common-5.6.8-1.111.amzn1.x86_64 php-common <5.5.22-1.98 conflict

-> Ready to resolve dependencies
Error: php55-mbstring conflicts with php-mbstring 5.3.29-1.8.amzn1.x86_64
Error: php56-common conflicts with php-common-5.3.29-1.8.amzn1.x86_64
Error: php55-common conflicts with php-common-5.3.29-1.8.amzn1.x86_64
  You could try using --skip-broken to work around the problem
  You could try: rpm -Va --nofiles --nodigest

$ php -v返回:

PHP 5.6.8 (cli) (built: Apr 17 2015 18:04:37) 
Copyright (c) 1997-2015 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2015 Zend Technologies

您需要以超級用戶身份安裝PHP 5.6版本。

sudo yum install php56-mbstring

問題在於包裝沖突。 因此,在安裝php-gd時,您需要指定版本。 我通過運行修復它: sudo yum install php55-gd

在我的情況下,我只需要重新啟動httpd服務:

service httpd restart

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM