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 #
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 --
One, Linux host installation mbstring Extension Library Guide (source installation)
The following command is entered at the command line:
1, use the CD command to enter the source code directory of PHP under the etc/mbstring directory, such as
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
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
Php's mbstring extension will cause some problems if it is not installed: Example 1: when logging on to phpMyAdmin, the system will prompt no string encoding or string processing library php_mbstring, in some programs, the mb_substr function is used
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. ExecuteYum install
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 the Linux system environment, PHP installation mbstring expansion of the two methods, we refer to the use of the bar1. The execution code is as follows: Yum install php-mbstring 2. modifying php.ini (This step is
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.