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 important, and some lxadmin versions cannot be modified automatically)
The Code is as follows:
Echo 'extension = mbstring. so'>/etc/php. ini # depends on the php installation directory.
3. Restart web service
For apache: service httpd restart
Method 2:
Python 5.36
Installation Directory:/usr/local/php
The Code is as follows:
# Cd/usr/src/php-5.3.6/ext/mbstring
#/Usr/local/php/bin/phpize
#./Configure -- with-php-config =/usr/local/php/bin/php-config
# Make & make install
Echo 'extension = mbstring. so'>/usr/local/php/lib/php. ini
#/Usr/local/apache2/bin/apachectl restart
Use/usr/local/php/bin/php-v # Check whether the configuration is correct
Use php.info to check whether mbstring is successfully installed.