PhpMyAdmin install errors

这一生的挚爱 提交于 2019-12-01 06:04:49

问题


I've just installed phpmyadmin on Linux Fedora 13 with PHP 5.3.3. I get the following 2 errors:

First: I get this on the login screen:

Cannot load mcrypt extension. Please check your PHP configuration.

-The solutions I googled for this one was to yum install mcrypt and enable it in /etc/php.ini with

extension=php_mcrypt.dll
extension=php_mcrypt_filter.dll

Did all that, but no go.

This second one shows up when I login:

The mbstring PHP extension was not found and you seem to be using a multibyte charset. Without the mbstring extension phpMyAdmin is unable to split strings correctly and it may result in unexpected results.

Wondering a) How can I fix these and b) What do they affect?

Thanks-


回答1:


Look which resource file is being loaded by examining $_SERVER['PHPRC']. This value points to the directory where PHP looks for php.ini. I doubt that it's /etc.

Then install the right package, which is php-mcrypt.




回答2:


FULL ANSWER:

yum install php-mycrypt
yum install php-mbstring

no php.ini editing needed

Thanks to goreSplatter for shoving me in right direction




回答3:


This command solved my issue:

yum install php-mbstring



回答4:


And apparently in Ubuntu installing this will fix this issue:

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



回答5:


In case you are using Ubuntu

sudo apt-get install libapache2-mod-php7.0 
sudo apt-get install php7.0-mbstring

followed by

sudo service apache2 restart

should work.




回答6:


sudo phpenmod mbstring

and restart Apache.



来源:https://stackoverflow.com/questions/4327230/phpmyadmin-install-errors

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!