duanbinmi8970 2019-07-04 22:05
浏览 86

由于mbstring,Laravel 5 Web应用程序无法正常工作

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:

Fatal error: Call to undefined function Illuminate\Foundation\Bootstrap\mb_internal_encoding() in /var/www/php/dashboard/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/LoadConfiguration.php on line 43

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?

  • 写回答

1条回答 默认 最新

  • doujuyang1764 2019-07-04 22:25
    关注

    You need to upgrade your php version to 7+. You cannot use php 5.6 unless you are using laravel 5.4 or below

    评论

报告相同问题?

悬赏问题

  • ¥15 如何在scanpy上做差异基因和通路富集?
  • ¥20 关于#硬件工程#的问题,请各位专家解答!
  • ¥15 关于#matlab#的问题:期望的系统闭环传递函数为G(s)=wn^2/s^2+2¢wn+wn^2阻尼系数¢=0.707,使系统具有较小的超调量
  • ¥15 FLUENT如何实现在堆积颗粒的上表面加载高斯热源
  • ¥30 截图中的mathematics程序转换成matlab
  • ¥15 动力学代码报错,维度不匹配
  • ¥15 Power query添加列问题
  • ¥50 Kubernetes&Fission&Eleasticsearch
  • ¥15 報錯:Person is not mapped,如何解決?
  • ¥15 c++头文件不能识别CDialog