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

잔글 (봇: 자동으로 텍스트 교체 (-source +syntaxhighlight))
 
(사용자 2명의 중간 판 15개는 보이지 않습니다)
1번째 줄: 1번째 줄:
;php-mbstring 설치
;CentOS php-mbstring 설치
;Call to undefined function mb_substr()
;The mbstring extension is missing. Please check your PHP configuration.


==문제상황 1: phpMyAdmin==
==확인==
*[[phpMyAdmin 설치]] 중 다음과 같은 오류 발생
<syntaxhighlight lang='console'>
<source lang='text'>
[root@zetawiki ~]# php -r "mb_substr();"
phpMyAdmin - Error
The mbstring extension is missing. Please check your PHP configuration.
</source>
 
==문제상황 2: php==
<source lang='dos'>
[root@jmnote ~]# 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>
</syntaxhighlight>
 
<syntaxhighlight lang='console'>
==확인==
[root@zetawiki ~]# rpm -qa php-mbstring
<source lang='dos'>
[root@zetawiki ~]# yum info php-mbstring | grep Repo
[root@jmnote ~]# rpm -qa php-mbstring
Repo        : base
[root@jmnote ~]# yum info php-mbstring | grep Repo
</syntaxhighlight>
Repo        : Daum
</source>
:→ 설치 안됨. yum으로 설치 가능.


==설치==
==설치==
<source lang='dos'>
<syntaxhighlight lang='console'>
[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
41번째 줄: 29번째 줄:
===================================================================================================================================
===================================================================================================================================
Installing:
Installing:
  php-mbstring                    x86_64                    5.3.3-3.el6_2.8                        Daum                     453 k
  php-mbstring                    x86_64                    5.3.3-3.el6_2.8                        base                     453 k


Transaction Summary
Transaction Summary
61번째 줄: 49번째 줄:


Complete!
Complete!
</source>
</syntaxhighlight>


==설치 확인 2==
==확인 2==
<source lang='dos'>
<syntaxhighlight lang='console'>
[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>
</syntaxhighlight>


==아파치 재시작==
==아파치 재시작==
<source lang='dos'>
<syntaxhighlight lang='console'>
[root@jmnote ~]# service httpd restart
[root@zetawiki ~]# service httpd restart
Stopping httpd:                                            [  OK  ]
Stopping httpd:                                            [  OK  ]
Starting httpd:                                            [  OK  ]
Starting httpd:                                            [  OK  ]
</source>
</syntaxhighlight>


==같이 보기==
==같이 보기==
*[[utf8_substr]]
* [[우분투 php-mbstring 설치]]
*[[phpMyAdmin 설치]]
* [[utf8_substr]]
* [[phpMyAdmin 설치]]


[[분류:PHP]]
[[분류:PHP]]
[[분류: phpMyAdmin]]
[[분류: yum 설치]]

2020년 11월 2일 (월) 02:34 기준 최신판

CentOS php-mbstring 설치

1 확인[ | ]

[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

2 설치[ | ]

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

3 확인 2[ | ]

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

4 아파치 재시작[ | ]

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

5 같이 보기[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}