apt install php-mbstring code example
Example: install php-mbstring in ubuntu
sudo apt-get install php7.2-mbstring
sudo apt-get install libapache2-mod-php7.2
sudo service apache2 restart
sudo apt-get install php7.2-mbstring
sudo apt-get install libapache2-mod-php7.2
sudo service apache2 restart