mbstring, aws, amazon linux 2,

Install Mbstring on Amazon Linux 2

Nov 03, 2022 · 1 min read · Post a comment

As a PHP extension, Mbstring can be required for some application functionalities as a dependency. Let’s see how to install mbstring on Amazon Linux 2.

Prerequisites

  • Amazon Linux 2
  • sudo privileges
  • PHP installed

Install Mbstring on Amazon Linux 2

Step 1. Install mbstring.

sudo yum install php-mbstring

Step 2. Depending on your set up you will need to restart your PHP-FPM service or Apache server.

sudo service php-fpm restart
sudo service httpd restart

Step 3. To install mbstring for a specific PHP version, let’s say php80.

sudo yum install php80-php-mbstring

Conclusion

Feel free to leave a comment below and if you find this tutorial useful, follow our official channel on Telegram.