2

I just upgraded from 17.04 to 17.10 and ever since my phpmyadmin is not working anymore. It displays: The mbstring extension is missing. Please check your PHP configuration.

I have tried all the options here: mbstring is missing for phpmyadmin in ubuntu 16.04 but to no avail. sudo apt install php7.0-mbstring doesn't work because it has no install candidate, but I did install php-mbstring. I also enabled the mods, but when I then hit php -i in my console I get: Unable to load dynamic library '/usr/lib/php/20151012/mbstring.so'

I did of course (plenty of) apache restarts. How do I get this to work again?

1 Answers1

2

The problem appeared to be that 17.10 uses php7.1 and not php7.0 as indicated by Videonauth. I resolved it as follows:

sudo apt remove php7.0
sudo apt autoremove
sudo apt install php7.1
sudo service apache2 restart

For some reason it does install php7.1, but somehow not everything php7.1 requires (such as php7.1-cli), so I installed it manually to get the missing dependencies. In my case some other php7.0 packages remained such as php7.0-common and php7.0-cli which I removed after the autoremove.

For me, phpmyadmin itself was removed as well when I removed php7.0, so I did another

sudo apt install phpmyadmin
sudo service apache2 restart

to get everything to work.