PHP XML 扩展:未安装

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/38793676/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-26 01:43:22  来源:igfitidea点击:

PHP XML Extension: Not installed

phpxmlubuntumybb

提问by Forrest

So i'm currently installing mybb and went through a very long tutorial on how to do it. The problem is when I get to the requirements check this shows up

所以我目前正在安装 mybb 并经历了一个很长的关于如何做到这一点的教程。问题是当我达到要求时检查这是否显示

enter image description here

在此处输入图片说明

How does one go about fixing this? I read that I may need to do

如何解决这个问题?我读到我可能需要做

sudo apt-get install php-xml

须藤 apt-get 安装 php-xml

I have done this and everything went ok but still doesn't change it to installed.

我已经这样做了,一切顺利,但仍然没有将其更改为已安装。

FYI: I have only been using this OS for a few days so please go nice on me :)

仅供参考:我只使用了几天这个操作系统,所以请对我好一点:)

回答by William Booth

You're close

你很近

sudo apt-get install php-xml

Then you need to restart apache so it takes effect

然后需要重启apache才能生效

sudo service apache2 restart

回答by Rewieer

Had the same problem running PHP 7.2. I had to do the following :

运行 PHP 7.2 时遇到同样的问题。我必须执行以下操作:

sudo apt-get install php7.2-xml

sudo apt-get install php7.2-xml

回答by Enmanuel

I solved this issue with commands bellow:

我用下面的命令解决了这个问题:

$ sudo apt-get install php7.3-intl

$ sudo /etc/init.d/php7.3-fpm restart

These commands works for me in homestead with php7.3

这些命令适用于我在 php7.3 的宅基地