1. Execute
Copy code The code is as follows:
yum install php-mbstring
2. Modify php.ini (this step is very important, some lxadmin versions cannot be modified automatically)
Copy the code The code is as follows:
echo 'extension=mbstring.so' >>/etc/php.ini #Depends on the PHP installation directory
3. Restart web service
If it is apache: service httpd restart
Method 2:
php 5.36
Installation directory: /usr/local/php
Copy the code 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 wrong
Use php.info to check whether mbstring is installed successfully
http://www.bkjia.com/PHPjc/718628.htmlwww.bkjia.comtruehttp: //www.bkjia.com/PHPjc/718628.htmlTechArticle1. Execute the copied code as follows: yum install php-mbstring 2. Modify php.ini (This step is very important , some lxadmin versions cannot be modified automatically) Copy the code as follows: echo 'exte...