6

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

micstr
  • 5,080
  • 8
  • 48
  • 76
DusanP
  • 63
  • 1
  • 1
  • 5
  • 2
    Here's solution http://askubuntu.com/questions/772397/mbstring-is-missing-for-phpmyadmin-in-ubuntu-16-04 – Deepak Adhikari Jun 10 '16 at 08:10
  • 5
    Thanks Deepak after i run `sudo apt-get install php-mbstring php7.0-mbstring php-gettext libapache2-mod-php7.0` phpmyadmin was loaded normally. – DusanP Jun 10 '16 at 08:32
  • see the answer here: https://stackoverflow.com/questions/41035220/opensuse-phpmyadmin-error-the-mbstring-extension-is-missing/44944076#44944076 – Annapurna Jul 06 '17 at 08:55

5 Answers5

1

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

Phil Y
  • 186
  • 1
  • 4
0

I found the correct way (for me) to correct it... and it's fairly simple :)

Just add "universe" on the xenial-updates.

# cat /etc/apt/sources.list.d/*
deb [arch=amd64] http://fr.archive.ubuntu.com/ubuntu/ xenial-backports main
deb [arch=amd64] http://fr.archive.ubuntu.com/ubuntu/ xenial main universe
deb [arch=amd64] http://fr.archive.ubuntu.com/ubuntu/ xenial-proposed main
deb [arch=amd64] http://security.ubuntu.com/ubuntu xenial-security main
deb [arch=amd64] http://fr.archive.ubuntu.com/ubuntu/ xenial-updates main universe

to do that, just

sudo nano /etc/apt/sources.list.d/*

and then close all the windows, except the ones with xenial-updates where you add universe at the end of the line!

Ivar
  • 6,138
  • 12
  • 49
  • 61
stadja
  • 56
  • 6
0

You could also just do this:

sudo add-apt-repository universe

On older versions of Ubuntu, you might have to add a full deb source line:

sudo add-apt-repository "deb http://archive.ubuntu.com/ubuntu $(lsb_release -sc) universe"

After adding the repositories, do sudo apt-get update to update the package list.

Aaron Wallentine
  • 2,318
  • 24
  • 22
0
  1. check installed modules using; php -m in here you couldn't see mbstring module

  2. Then check the php version php -v

  3. Then install module using following command php5.6-mbstring

  4. Restart the apache server service apache2 restart

finally thats work fine.

0

I solve this problem from this post. 1-Install mbstring module according to your php version $ sudo apt-get install php7.2-mbstring 2-Install libapache2-mod module according your php version sudo apt-get install libapache2-mod-php7.2 3-Restart your apache2 services sudo service apache2 restart

Ressource Link

Omar
  • 1
  • https://www.codegrepper.com/code-examples/php/install+mbstring+php+7.2+ubuntu – Omar Aug 06 '22 at 12:34
  • Your answer could be improved with additional supporting information. Please [edit] to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers [in the help center](/help/how-to-answer). – Community Aug 09 '22 at 11:43