Install the mbstring extension module in PHP

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.