리눅스

리눅스 php-mbstring 설치하기 Call to undefined function mb_substr()

조원태 2015. 12. 8. 02:16
반응형

에러1 : Call to undefined function mb_substr() in ~~ 물리적인 주소 에러 

에러2 : The mbstring extension is missing. Please check your PHP configuration.


이것은 php-mbstring 모듈을 설치하면 해결 됩니다.


yum install php-mbstring -y


위 명령어를 실행하면 php-mbstring 모듈을 설치하게 됩니다.


하지만 위 명령어로 설치가 안될 경우가 있습니다.


1. 먼저 리눅스 박스를 확인 업데이트 확인

yum update



Centos 6버전

wget http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm

rpm -ivh epel-release-6-8.noarch.rpm

wget http://rpms.famillecollet.com/enterprise/remi-release-6.rpm

rpm -Uvh remi-release-6*.rpm


Centos 5버전

wget http://ftp.jaist.ac.jp/pub/Linux/Fedora/epel/5/x86_64/epel-release-5-4.noarch.rpm

rpm -ivh epel-release-5-4.noarch.rpm

wget http://rpms.famillecollet.com/enterprise/remi-release-5.rpm

rpm -Uvh remi-release-5*.rpm



php-mbstring 업데이트일 경우 

yum --enablerepo=remi upgrade php-mbstring

php-mbstring 새로 설치일경우 

yum --enablerepo=remi install php-mbstring


그리고 php.ini에 extension=php_mbstring.dll

모듈을 추가하고 아파치를 리스타트 하시면 됩니다.


https://www.lesstif.com/pages/viewpage.action?pageId=6979743

반응형