"CentOS php-mbstring 설치"의 두 판 사이의 차이

잔글 (로봇: 자동으로 텍스트 교체 (-<source lang='dos'> +<source lang='cli'>))
잔글 (로봇: 자동으로 텍스트 교체 (-[root@jmnote +[root@zetawiki))
12번째 줄: 12번째 줄:
==문제상황 2: php==
==문제상황 2: php==
<source lang='cli'>
<source lang='cli'>
[root@jmnote ~]# php -r "mb_substr();"
[root@zetawiki ~]# php -r "mb_substr();"
PHP Fatal error:  Call to undefined function mb_substr() in Command line code on line 1
PHP Fatal error:  Call to undefined function mb_substr() in Command line code on line 1
</source>
</source>
18번째 줄: 18번째 줄:
==확인==
==확인==
<source lang='cli'>
<source lang='cli'>
[root@jmnote ~]# rpm -qa php-mbstring
[root@zetawiki ~]# rpm -qa php-mbstring
[root@jmnote ~]# yum info php-mbstring | grep Repo
[root@zetawiki ~]# yum info php-mbstring | grep Repo
Repo        : base
Repo        : base
</source>
</source>
26번째 줄: 26번째 줄:
==설치==
==설치==
<source lang='cli'>
<source lang='cli'>
[root@jmnote ~]# yum install php-mbstring -y
[root@zetawiki ~]# yum install php-mbstring -y
Loaded plugins: fastestmirror
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Loading mirror speeds from cached hostfile
65번째 줄: 65번째 줄:
==설치 확인 2==
==설치 확인 2==
<source lang='cli'>
<source lang='cli'>
[root@jmnote ~]# rpm -qa php-mbstring
[root@zetawiki ~]# rpm -qa php-mbstring
php-mbstring-5.3.3-3.el6_2.8.x86_64
php-mbstring-5.3.3-3.el6_2.8.x86_64
</source>
</source>
71번째 줄: 71번째 줄:
==아파치 재시작==
==아파치 재시작==
<source lang='cli'>
<source lang='cli'>
[root@jmnote ~]# service httpd restart
[root@zetawiki ~]# service httpd restart
Stopping httpd:                                            [  OK  ]
Stopping httpd:                                            [  OK  ]
Starting httpd:                                            [  OK  ]
Starting httpd:                                            [  OK  ]

2015년 2월 12일 (목) 02:04 판

php-mbstring 설치
Call to undefined function mb_substr()
The mbstring extension is missing. Please check your PHP configuration.

1 문제상황 1: phpMyAdmin

phpMyAdmin - Error
The mbstring extension is missing. Please check your PHP configuration.

2 문제상황 2: php

[root@zetawiki ~]# php -r "mb_substr();"
PHP Fatal error:  Call to undefined function mb_substr() in Command line code on line 1

3 확인

[root@zetawiki ~]# rpm -qa php-mbstring
[root@zetawiki ~]# yum info php-mbstring | grep Repo
Repo        : base
→ 설치 안됨. yum으로 설치 가능.

4 설치

[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!

5 설치 확인 2

[root@zetawiki ~]# rpm -qa php-mbstring
php-mbstring-5.3.3-3.el6_2.8.x86_64

6 아파치 재시작

[root@zetawiki ~]# service httpd restart
Stopping httpd:                                            [  OK  ]
Starting httpd:                                            [  OK  ]

7 같이 보기