I need this php extension in order to use one of my Magento extension. How do I install php mbstring extension to my Nginx Ubuntu 14.04?
mbstring
PHP mbstring extension is not enabled by default as stated in PHP docs. Try these:
PHP 5:
sudo apt-get install php5-mbstring
PHP 7:
sudo apt-get install php7.0-mbstring
Now you should see mbstring as enabled in a file with below code (check above FelixEve's answer):
<?php echo phpinfo(); ?>
You might need to use the right extension name for your PHP version:
For example:
sudo apt-get install php5.6-mbstring
sudo apt-get install php7.1-mbstring
After the installation of mbstring
, you may need to restart your server (apache2
/ nginx
etc). Just use the following command.
sudo service apache2 restart
or
sudo service nginx restart
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With