Z
Z
Zimaell2019-08-07 10:29:56
ubuntu
Zimaell, 2019-08-07 10:29:56

How to install new mbstring 7.2 php (ubuntu) module?

It was earlier than php 7.0, it was necessary to install 7.2, installed it, after the mbstring module stopped working, I try to enable it

sudo phpenmod mbstring

WARNING: Module mbstring ini file doesn't exist under /etc/php/7.2/mods-available
WARNING: Module mbstring ini file doesn't exist under /etc/php/7.2/mods-available
WARNING: Module mbstring ini file doesn't exist under /etc/php/7.3/mods-available

check php version
php -v
PHP 7.3.7-2+ubuntu16.04.1+deb.sury.org+1 (cli) 

phpinfo();
PHP Version 7.2.20-2+ubuntu16.04.1+deb.sury.org+1

As far as I understand, I have some kind of both 7.2 and 7.3 php installed, and there is no mbstring module ...
How can I reinstall everything so that there is a single version of php 7.2 and these modules are?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrey, 2019-08-07
@Zimaell

to start with
, sudo update-alternatives --set php /usr/bin/php7.2
so that the console php is also 7.2
// it's useless to delete, debian will either drag 7.3 during the update, or initially want to remove some global packages.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question