Redhat 6.6+nginx Installation phpMyAdmin

Source: Internet
Author: User
Tags fpm install php phpmyadmin

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.


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.