Ubuntu 16.04 The mbstring extension is missing

DusanP picture DusanP · Jun 10, 2016 · Viewed 28.2k times · Source

I want to migrate my web server from unsupported version of ubuntu 12.10. I installed 16.04 and installed apache2, php7, mysql and phpmyadmin.

When I want to use phpmyadmin I have error that mbstring missing.

In PHP.ini file, there is only to enable this extension for windows only.

When I install mbstring package, then when I reload phpmyadmin page, I get blank page without any error.

I installed following packages:

apache2, php, libapache2-mod-php, php-mysql, php-mbstring, php7.0-mbstring, mysql-server, phpmyadmin

When i uninstall mbstring packages, after phpmyadmin reload I see mbstring extension error...

What to do? I spent two days to fix this but have been unsuccessful... Thanks

Answer

Phil Y picture Phil Y · May 15, 2021

After you have installed the php7.0-mbstring module, you'll need to restart apache2 for it to take effect: sudo apachectl graceful