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. 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.
The authorization 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): echo 'exte...