CentOS php-mbstring 설치

Jmnote bot (토론 | 기여)님의 2020년 11월 2일 (월) 02:34 판 (봇: 자동으로 텍스트 교체 (-source +syntaxhighlight))
(차이) ← 이전 판 | 최신판 (차이) | 다음 판 → (차이)
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 }}