前端错误消息:
datetime
我正在使用来自印度的开发团队来建立一个新平台 当他们使用自己的服务器时,一切都很好,但现在他们使用PHP7在我的VPS Centos 6.9上迁移网站 现在似乎是mbstring扩展的问题,我已经检查过了 " php -m"和扩展名mbstring和exif在这里和#34; php --ini"
在php.ini文件上的我注释掉extension_dir和扩展本身 (在几个帖子中看到)但仍然是问题在这里 我将不胜感激任何帮助,因为我不是服务人员而我与之合作的团队并没有真正帮助,谢谢
A PHP Error was encountered
Severity: Core Warning
Message: PHP Startup: Unable to load dynamic library '/opt/cpanel/ea-php70/root/usr/lib64/php/modules/php_mbstring.so' - /opt/cpanel/ea-php70/root/usr/lib64/php/modules/php_mbstring.so: cannot open shared object file: No such file or directory
Filename: Unknown
Line Number: 0
Backtrace:
在php.ini文件
上Configuration File (php.ini) Path: /opt/cpanel/ea-php70/root/etc
Loaded Configuration File: /opt/cpanel/ea-php70/root/etc/php.ini
Scan for additional .ini files in: /opt/cpanel/ea-php70/root/etc/php.d
Additional .ini files parsed: /opt/cpanel/ea-php70/root/etc/php.d/02-pecl.ini,
/opt/cpanel/ea-php70/root/etc/php.d/20-bcmath.ini,
/opt/cpanel/ea-php70/root/etc/php.d/20-calendar.ini,
/opt/cpanel/ea-php70/root/etc/php.d/20-ctype.ini,
/opt/cpanel/ea-php70/root/etc/php.d/20-curl.ini,
/opt/cpanel/ea-php70/root/etc/php.d/20-dom.ini,
/opt/cpanel/ea-php70/root/etc/php.d/20-exif.ini,
/opt/cpanel/ea-php70/root/etc/php.d/20-ftp.ini,
/opt/cpanel/ea-php70/root/etc/php.d/20-gd.ini,
/opt/cpanel/ea-php70/root/etc/php.d/20-iconv.ini,
/opt/cpanel/ea-php70/root/etc/php.d/20-imap.ini,
/opt/cpanel/ea-php70/root/etc/php.d/20-json.ini,
/opt/cpanel/ea-php70/root/etc/php.d/20-mbstring.ini,
/opt/cpanel/ea-php70/root/etc/php.d/20-mcrypt.ini,
/opt/cpanel/ea-php70/root/etc/php.d/20-mysqlnd.ini,
/opt/cpanel/ea-php70/root/etc/php.d/20-pdo.ini,
/opt/cpanel/ea-php70/root/etc/php.d/20-phar.ini,
/opt/cpanel/ea-php70/root/etc/php.d/20-posix.ini,
/opt/cpanel/ea-php70/root/etc/php.d/20-simplexml.ini,
/opt/cpanel/ea-php70/root/etc/php.d/20-sockets.ini,
/opt/cpanel/ea-php70/root/etc/php.d/20-sqlite3.ini,
/opt/cpanel/ea-php70/root/etc/php.d/20-tokenizer.ini,
/opt/cpanel/ea-php70/root/etc/php.d/20-xml.ini,
/opt/cpanel/ea-php70/root/etc/php.d/20-xmlwriter.ini,
/opt/cpanel/ea-php70/root/etc/php.d/20-xsl.ini,
/opt/cpanel/ea-php70/root/etc/php.d/30-mysqli.ini,
/opt/cpanel/ea-php70/root/etc/php.d/30-pdo_mysql.ini,
/opt/cpanel/ea-php70/root/etc/php.d/30-pdo_sqlite.ini,
/opt/cpanel/ea-php70/root/etc/php.d/30-wddx.ini,
/opt/cpanel/ea-php70/root/etc/php.d/30-xmlreader.ini,
/opt/cpanel/ea-php70/root/etc/php.d/php_exif.ini,
/opt/cpanel/ea-php70/root/etc/php.d/php_mbstring.ini
答案 0 :(得分:0)
好的,我找到了 我只是删除旧的PHP版本5.5和5.6,现在错误消失了:)
yum remove ea-php55*
yum remove ea-php56*
重启apache和php-fpm,一切正常