After installing phpMyAdmin, open the www.phpmyadmin.com report 500 error
1: Check Apache logs
[Email protected] ~]# Tail/etc/httpd/logs/error_log
[Wed Jan 07 17:47:12 2015] [ERROR] [Client 192.168.3.2] PHP Fatal error:call to undefined function mb_detect_encoding () in/var/www/phpmyadmin/libraries/php-gettext/ Gettext.inc on line 177
2: Check if there is an installation php-mbstring
Write a info.php and look at the information of Phpinfo ().
?
123 |
<?php echo phpinfo(); ?> |
Visit info.php, view Extension_dir, and write this value to the/etc/php.ini file, see if there is a mbstring.so file under this directory, or install php-mbstring yum install-y if not Php-mbstring, and then add extension this value to the/etc/php.ini file, mine is
Xtension_dir =/usr/lib64/php/modules
Extension=/usr/lib64/php/modules/mbstring.so
3: Restart Apache service httpd restart
CentOS Installation phpMyAdmin report 500 error