In php, mbstring modules in both linux and windows are not available by default. Next I will introduce how to install mbstring in different systems.
Under Centos:
Log on to Centos Using SSH and run the following command:
1. Execute
Yum install php-mbstring
2. Modify php. ini
Vi/etc/php. ini # Remove the semicolon before the following content. If this line does not exist, add a line of extension = mbstring. so
; Extension = mbstring. so
3. Restart web service
Service httpd restart
Windows:
1. Modify php. ini
Remove the semicolon before the following content. If this line does not exist, add a line of extension = php_mbstring.dll.
; Extension = php_mbstring.dll
If the modification is ineffective after the web server is restarted, copy php_mbstring.dll in the X:/PHP/EXT folder to the X:/WINDOWS/system32 folder.
Restart the web server.