개발/개발 자료
(Linux) phpMyAdmin 오류 생길때 (The mbstring extension is missing. Please check your PHP configuration.)
시원한물냉
2015. 5. 31. 07:37
The mbstring extension is missing. Please check your PHP configuration.
문제상황 1: phpMyAdmin
- phpMyAdmin 설치 중 다음과 같은 오류 발생
phpMyAdmin - Error The mbstring extension is missing. Please check your PHP configuration.
문제상황 2: php
[root@zetawiki ~]# php -r "mb_substr();" PHP Fatal error: Call to undefined function mb_substr() in Command line code on line 1
확인
[root@zetawiki ~]# rpm -qa php-mbstring [root@zetawiki ~]# yum info php-mbstring | grep Repo Repo : base
- → 설치 안됨. yum으로 설치 가능.
설치
[root@zetawiki ~]# yum install php-mbstring -y Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile Setting up Install Process Resolving Dependencies --> Running transaction check ---> Package php-mbstring.x86_64 0:5.3.3-3.el6_2.8 will be installed --> Finished Dependency Resolution Dependencies Resolved =================================================================================================================================== Package Arch Version Repository Size =================================================================================================================================== Installing: php-mbstring x86_64 5.3.3-3.el6_2.8 base 453 k Transaction Summary =================================================================================================================================== Install 1 Package(s) Total download size: 453 k Installed size: 2.1 M Downloading Packages: php-mbstring-5.3.3-3.el6_2.8.x86_64.rpm | 453 kB 00:00 Running rpm_check_debug Running Transaction Test Transaction Test Succeeded Running Transaction Installing : php-mbstring-5.3.3-3.el6_2.8.x86_64 1/1 Installed: php-mbstring.x86_64 0:5.3.3-3.el6_2.8 Complete!
설치 확인 2
[root@zetawiki ~]# rpm -qa php-mbstring
php-mbstring-5.3.3-3.el6_2.8.x86_64
아파치 재시작
[root@zetawiki ~]# service httpd restart
Stopping httpd: [ OK ]
Starting httpd: [ OK ]