Two ways to install mbstring extensions under linux systems

  • 2020-12-18 01:47:20
  • OfStack

1. Perform


yum install php-mbstring

2. Modify ES5en.ini (this step is very important, some versions of lxadmin cannot be modified automatically)


echo  ' extension=mbstring.so' >>/etc/php.ini # more php The installation directory depends 

Restart web service

If apache: service httpd restart


Method 2:
php 5.36
Installation directory: /usr/local/php


#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 # see if configuration errors
Use ES40en.info to see if mbstring was installed successfully


Related articles: