PHP mbstring 설치 / mb_substr();
페이지 정보
본문
phpMyAdmin - Error
The mbstring extension is missing. Please check your PHP configuration.
CentOS 에 설치된 PHP mbstring 설치
sudo apt-get install php5.6-mbstring. apt-cache search mbstring
sudo apt-get install php7.1-mbstring
sudo apt-get install php7.2-mbstring
sudo apt-get install php7.3-mbstring
Ubutu 에 설치된 PHP mbstring 설치
apt install php-mbstring
1. mb_substr() 설치확인
[root@localhost /]# php -r "mb_substr();"
PHP Fatal error: Call to undefined function mb_substr() in Command line code on line 1
[root@localhost /]# rpm -qa php-mbstring
[root@localhost /]# yum info php-mbstring | grep Repo
Repo : updates
2. php-mbstring 설치
[root@localhost /]# yum install php-mbstring
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base : www.ftp.ne.jp
* extras : www.ftp.ne.jp
* updates : www.ftp.ne.jp
Resolving Dependencies
--> Running transaction check
---> Package php-mbstring.x86_64 0:5.3.3-48.el6_8 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
===================================================================================================================================
Package Arch Version Repository Size
===================================================================================================================================
Installing:
php-mbstring x86_64 5.3.3-48.el6_8 update 460 k
Transaction Summary
===================================================================================================================================
Install 1 Package(s)
Total download size: 460 k
Installed size: 2.1 M
Is this ok [y/N] : y
Downloading Packages:
php-mbstring-5.3.3-48.el6_8.x86_64.rpm | 460 kB 00:00
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : php-mbstring-5.3.3-48.el6_8.x86_64 1/1
Verifying : php-mbstring-5.3.3-48.el6_8.x86_64 1/1
Installed:
php-mbstring.x86_64 0:5.3.3-48.el6_8
Complete!
3. 설치확인
[root@localhost /]# rpm -qa php-mbstring
php-mbstring-5.3.3-48.el6_2.x86_64
4. 아파치 재시작
[root@localhost /]# service httpd restart
Stopping httpd: [ OK ]
Starting httpd: [ OK ]
참고자료
http://zetawiki.com/wiki/리눅스_php-mbstring_설치
https://stackoverrun.com/ko/q/8949935
https://zetawiki.com/wiki/우분투16_php-mbstring_설치
The mbstring extension is missing. Please check your PHP configuration.
CentOS 에 설치된 PHP mbstring 설치
sudo apt-get install php5.6-mbstring. apt-cache search mbstring
sudo apt-get install php7.1-mbstring
sudo apt-get install php7.2-mbstring
sudo apt-get install php7.3-mbstring
Ubutu 에 설치된 PHP mbstring 설치
apt install php-mbstring
1. mb_substr() 설치확인
[root@localhost /]# php -r "mb_substr();"
PHP Fatal error: Call to undefined function mb_substr() in Command line code on line 1
[root@localhost /]# rpm -qa php-mbstring
[root@localhost /]# yum info php-mbstring | grep Repo
Repo : updates
2. php-mbstring 설치
[root@localhost /]# yum install php-mbstring
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base : www.ftp.ne.jp
* extras : www.ftp.ne.jp
* updates : www.ftp.ne.jp
Resolving Dependencies
--> Running transaction check
---> Package php-mbstring.x86_64 0:5.3.3-48.el6_8 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
===================================================================================================================================
Package Arch Version Repository Size
===================================================================================================================================
Installing:
php-mbstring x86_64 5.3.3-48.el6_8 update 460 k
Transaction Summary
===================================================================================================================================
Install 1 Package(s)
Total download size: 460 k
Installed size: 2.1 M
Is this ok [y/N] : y
Downloading Packages:
php-mbstring-5.3.3-48.el6_8.x86_64.rpm | 460 kB 00:00
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : php-mbstring-5.3.3-48.el6_8.x86_64 1/1
Verifying : php-mbstring-5.3.3-48.el6_8.x86_64 1/1
Installed:
php-mbstring.x86_64 0:5.3.3-48.el6_8
Complete!
3. 설치확인
[root@localhost /]# rpm -qa php-mbstring
php-mbstring-5.3.3-48.el6_2.x86_64
4. 아파치 재시작
[root@localhost /]# service httpd restart
Stopping httpd: [ OK ]
Starting httpd: [ OK ]
참고자료
http://zetawiki.com/wiki/리눅스_php-mbstring_설치
https://stackoverrun.com/ko/q/8949935
https://zetawiki.com/wiki/우분투16_php-mbstring_설치
댓글목록
등록된 댓글이 없습니다.