1. Run the following commands on the Linux host to install the mbstring extension Library: 1. Run the cd command to enter the etcmbstring directory under the php source code directory, for example, srcphp5.2.5, that is, cdsrcphp5.2.5; 2. Run #
Mbstring library full name is multi-byte string that all languages have their own encoding, their number of bytes is not the same, the current PHP internal encoding only supports ISO-8859-*, EUC-JP, other coding languages for UTF-8 are not available
In linux, install mbstring1. Go To The extmbstring directory of the php source package $ cdhomephpextmbstring2. run phpize $ usrlocallibphpbinphpize3. compile mbstring $ in the mbstring directory under the php installation directory. configure --
Add mbstring extension and linuxmbstring extension to php in Linux
1. Today, a php function (mb_strcut) is used in the development project, and an error "call to undefind function mb_strcut" is prompted when running the code. First, check whether
Install the mbstring extension in php in linux. 1. run the Copy code as follows: yuminstallphp-mbstring2. modify php. ini (this step is very important, some lxadmin versions cannot be automatically modified) copy the code as follows: echo 'exte 1.
1. problem: the php mbstring extension cannot be loaded normally. 2. environment: centos7.2 virtual machine, PHPVersion & amp; gt; 7.0.8 my php is installed through yum, the installation source uses webstatic, and the mbstring extension also uses
Without re-compiling php, add a dynamic module (taking the mbstring module as an example). 1. enter the mbstring directory in the php source code directory.
Cd/usr/local/src/php-5.2.4/ext/mbstring/
2. execute the bin/phpize file in the directory
This article mainly introduces two methods for installing the mbstring extension in php in a linux system. For details, refer to use it. 1. Execute
The Code is as follows:
Yum install php-mbstring
2. Modify php. ini (this step is very
1. ExecuteYum install PHP-mbstring
2. Modify PHP. ini (this step is very important, and some lxadmin versions cannot be modified automatically)Echo 'extension = mbstring. so'>/etc/PHP. ini # depends on the PHP installation directory.
3. Restart
Install the mbstring extension of php in CentOS
If the mbstring extension of php is not installed, some problems may occur:
Example 1: When logging on to phpMyAdmin, the system will prompt no string encoding and no string processing library
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.