gpt4 book ai didi

PHP 7.2 和模块 'dom' 、 'mbstring' 和 'simplexml'

转载 作者:可可西里 更新时间:2023-10-31 23:00:55 25 4
gpt4 key购买 nike

我在我的服务器上安装了 PHP 7.2,除了这三个问题外一切正常:

我面临这些问题:

The PHP extension dom is not loaded. Please contact your server administrator or visit http://php.net/manual/en/dom.installation.php for installation.

PHP extension mbstring is not loaded. Please contact your server administrator or visit http://php.net/manual/en/mbstring.installation.php for installation.

PHP extension simplexml is not loaded. Please contact your server administrator or visit http://php.net/manual/en/simplexml.installation.php for installation.

...

现在,当我输入 php -m 时,

[root@localhost php.d]# php -m
[PHP Modules]
bz2
calendar
Core
ctype
curl
date
exif
fileinfo
filter
ftp
gd
gettext
hash
iconv
json
ldap
libxml
mcrypt
mysqli
mysqlnd
openssl
pcntl
pcre
PDO
pdo_mysql
pdo_sqlite
Phar
readline
Reflection
session
sockets
SPL
sqlite3
standard
tokenizer
zlib

[Zend Modules]

[root@localhost php.d]#

它表明没有任何mbstringdomsimplexml 模块。

我已经尝试了在 google 上可以找到的所有内容,但我似乎无法安装这三个模块。

php -v 返回:

PHP 7.2.7 (cli) (built: Jun 20 2018 08:21:26) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies

怎么了?

最佳答案

尝试安装缺少的模块:

sudo yum install php7.2-dom

sudo yum install php7.2-mbstring

sudo yum install php7.2-simplexml

安装后不要忘记重启服务器。

关于PHP 7.2 和模块 'dom' 、 'mbstring' 和 'simplexml',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51238919/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com