phpMyAdmin can be understood as a Web program, to be placed in Nginx's WWW directory to interpret execution, my www directory is/var/www
Configuration of the virtual host, access to Www.mathandcs.com/phpmyadmin, reported 500 errors.
1. View Nginx error log:
Tail-f/var/log/nginx/error.log found nothing wrong, very confused.
2. Then look at the PHP-FPM error log:
Tail-f/var/log/php-fpm/www-error.log:
Discovery: PHP Fatal error:call to undefined function mb_detect_encoding ()
OK, found the problem, solve the problem is simple, Google:
Solution (Address: http://stackoverflow.com/questions/10278561/how-to-install-php-mbstring-on-centos-6-2):
*make sure you update your Linux box
Yum Update
In the case someone still has this problem, this is a valid solution:
Centos-release:rpm-q Centos-release
Centos 6.*
wget http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
RPM-IVH epel-release-6-8.noarch.rpm
wget http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
RPM-UVH remi-release-6*.rpm
Centos 5.*
wget http://ftp.jaist.ac.jp/pub/Linux/Fedora/epel/5/x86_64/epel-release-5-4.noarch.rpm
RPM-IVH epel-release-5-4.noarch.rpm
wget http://rpms.famillecollet.com/enterprise/remi-release-5.rpm
RPM-UVH remi-release-5*.rpm
Then just do this to update:
Yum--enablerepo=remi upgrade php-mbstring
Or this to install:
Yum--enablerepo=remi Install php-mbstring
Installed php-mbstring This expansion on the OK.