I migrated a Laravel 5 webapp from one server to new server. This webapp is working with nginx and php-fpm. I installed php by downloading php tar file and compiling.
When I do curl http://127.0.0.1:80 I have the following error:
: Call to undefined function Illuminate\\Foundation\\Bootstrap\\mb_internal_encoding() in on line :在第行的调用未定义函数Illuminate \\ Foundation \\ Bootstrap \\ mb_internal_encoding()
I know that I get files related to mbstring on path /opt/php-5.6.30/ext/mbstring
I enabled zend.multibyte = On
and extension=php_mbstring.dll
on php.ini
localted on /usr/local/php/php.ini
. I rebooted and executed php-fpm
but I'm without success.
Nginx version 1.12.2, PHP version 5.6.36. Redhat 7.6.
I can't install by yum install php-mbstring
. Configure Command ./configure --enable-fpm --with-mysql
on php.ini
.
How can I enable mbstring?
You need to upgrade your php version to 7+. You cannot use php 5.6 unless you are using laravel 5.4 or below
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.