I had php 5.4 on centOs and I have removed that and installed php 7. Now One of my codes on server return the following error:
PHP Fatal error: Call to undefined function mb_internal_encoding()
And when I run yum install php-mbstring I got the following error:
Error: php70u-common conflicts with php-common-5.4.16-43.el7_4.x86_64
Error: php70u-json conflicts with php-common-5.4.16-43.el7_4.x86_64
I have removed and installed php7 several times but I didn't work. It seems that centOs want to install an older version of the package but I don't know how to tell it to download the latest version of mbstring
yumto locate possible PHP 7 packages (hint: They seem to have a common prefix in their name). Due to the major version upgrade, you can't expect the package name to remain the same, but maybe something will fit. That said, PHP 7.1 is out, so I'd skip 7.0. - Ulrich Eckhardt