Install the mbstring PHP Extension with EasyApache 3 InMotion Hosting ContributorUpdated on August 16, 2021 3 Minute Read When configuring a website to work with different languages on a Linux server, the mbstring extension will need to be installed on the server for the website functionality to work. The mbstring extension is what php uses to parse different language encoding’s. This article will explain how to install the mbstring extension through shell. NOTE: cPanel has recently announced the deprecation of EasyApache 3 (EA3) and that the last version of cPanel to support EA3 is version 11.62. This means that in order to upgrade to cPanel’s latest Release (as of August 22, 2017: version 11.66), you will first need to update EasyApache 3 to EasyApache 4. To update EasyApache, you can follow the steps in our guide How to Update EasyApache 3 to EasyApache 4 to complete this process. Checking for the mbstring through shell Check your server for the mbstring extension through Linux Command line. Running the following command will display the mbstring information on your server. root@vps#### [~]# php -m | grep mbstring If the results show nothing, then the mbstring is not installed on the server. The next section will explain how to install the mbstring extension through shell with Root access. Steps to install the mbstring extension The mbstring extension can be installed through shell by using Easy Apache. The following steps will explain how to install mbstring through Easy Apache. Important! This is for Virtual Private Servers or Dedicated server with ROOT ACCESS. If you do not have root access, you will need to have support install the mbstring extension for you. Shell (SSH) into the server. Start a screen session by typing the following. root@vps#### [~]# screen -S screenname You can check the screen by typing the following. root@vps#### [~]# screen -ls There is a Screen on: 22342.upgrade (Attached) 1 Socket in /var/run/screen/S-root The screen session will allow the server to run in the background. This is to prevent the process from being interupted during the recompile process. If the window is closed, The process can still be found on the server. Otherwise, the process will be killed which could break the server. Type the path for Easy Apache. root@vps#### [~]# /scripts/easyapache When you get the “cPanel update available” box saying “would you like to update now,” select No and hit Enter. Select Start customizing based on profile and hit Enter. On the “Please choose which apache to build screen,” leave the selected build. Select Next step and hit Enter. Leave the selected php version on the “Please choose which specific PHP version (s) to build” screen. Select Next Step and hit Enter. The “Short Options List”will appear. Select “Exhaustive options list” and hit Enter. Page down till you see the Mbstring extension listed. Arrow down to the Mbstring extension and hit the space bar to select the Mbstring. Select Next Step and hit enter. Now the server will ask “What do you want to do now?” !! EXTREMELY IMPORTANT !! IF YOU ARE NOT IN A SCREEN SESSION. DO NOT INTERUPT THE SERVER PROCESS. Interrupting the server process will break the server and will require systems support to fix the apache configuration. If you are not comfortable continuing, please contact support and we can do this for no charge. Select Save and Build and hit enter. In the Confirm build screen, Select Yes and hit Enter. Easy Apache will finally ask to Please acknowledge. Select “I Understand” and hit Enter. Apache and PHP will now rebuild. Wait for the process to finish. The process time can vary; however, typically it should take ~10 to 30 minutes. Once the process is finished, check your phpinfo. You should see the Mbstring extension in the phpinfo now. Share this Article Related Articles How to Install HTTP/2 in WebHost Manager (WHM) EasyApache 3 Has Reached End-Of-Life How to Upgrade PHP using EasyApache 4 Remove Older PHP Versions in WHM How to Install a PHP Extension Using EasyApache 4 How to Update EasyApache 3 to EasyApache 4 How to Remove a Custom EasyApache 4 Profile How to Upgrade Apache with EasyApache Install the mbstring PHP Extension with EasyApache 3 How to Revert an EasyApache Migration