PHP XML Extension: Not installed

邮差的信 提交于 2020-12-29 02:40:35

问题


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

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

sudo apt-get install 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 :)


回答1:


You're close

sudo apt-get install php-xml

Then you need to restart apache so it takes effect

sudo service apache2 restart



回答2:


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

sudo apt-get install php7.2-xml




回答3:


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




回答4:


In Centos

 sudo yum install php-xml

and restart apache

sudo service httpd restart



回答5:


If you are working with php in windows, you can just access to the file "php.ini" located in your php instalation folder and uncomment the ";extension=xmlrpc" line deleting the ";" ("extension=xmlrpc")



来源:https://stackoverflow.com/questions/38793676/php-xml-extension-not-installed

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!