简体   繁体   English

Raspberry Pi phpmyadmin 500错误

[英]Raspberry Pi phpmyadmin 500 Error

Hello I have a problem with my Raspberry Pi - Apache2 - Phpmyadmin 您好,我的Raspberry Pi有问题-Apache2-Phpmyadmin

If I view my phpmyadmin-dashbord the Server return a 500 error. 如果查看phpmyadmin-dashbord,则服务器返回500错误。

The Apache2 ErrorLog show this code. Apache2 ErrorLog显示此代码。

[Sat May 05 15:54:22.843993 2018] [:error] [pid 23131] [client 37.138.229.55:50419] PHP Fatal error: Uncaught Error: Call to undefined function __() in /usr/share/phpmyadmin/libraries/core.lib.php:235\\nStack trace:\\n#0 /usr/share/phpmyadmin/libraries/core.lib.php(308): PMA_fatalError('The [a@./url.ph...')\\n#1 /usr/share/phpmyadmin/libraries/common.inc.php(90): PMA_warnMissingExtension('mbstring', true)\\n#2 /usr/share/phpmyadmin/index.php(12): require_once('/usr/share/phpm...')\\n#3 {main}\\n thrown in /usr/share/phpmyadmin/libraries/core.lib.php on line 235

PDO and Mysqli is running. PDO和Mysqli正在运行。 Just the Dashbord is not avaible and return "500". 仅Dashbord不可用,并返回“ 500”。

Thanks you for help. 感谢您的帮助。

I have found the Problem. 我发现了问题。

I have upgrade from php5 to php7.0 and some files get lost 我已经从php5升级到php7.0,一些文件丢失了

To run the following Code fixed the Problem 运行以下代码可解决问题

sudo apt-get install php-mbstring php7.0-mbstring php-gettext

then restart your server 然后重新启动服务器

sudo service apache2 restart

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM