CentOS Installation phpMyAdmin report 500 error

Source: Internet
Author: User
Tags gettext phpinfo phpmyadmin

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 <?phpechophpinfo();?>

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.