54

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

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

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 :)

4
  • Have you restarted your webserver after you installed php-xml?
    – apokryfos
    Aug 5, 2016 at 16:22
  • restarted it? I just place it in a folder and its up and running. Not sure I understand what you mean :P
    – Forrest
    Aug 5, 2016 at 16:24
  • 4
    I mean have you tried turning it off and on? Restarting is probably the simplest way to do this or you can type sudo service apache2 restart in your terminal (assuming you're using apache).
    – apokryfos
    Aug 5, 2016 at 16:26
  • eyy it worked thanks a bunch! Learning things about this OS loads quite enjoying it too, : ) Thanks
    – Forrest
    Aug 5, 2016 at 16:34

5 Answers 5

100

You're close

sudo apt-get install php-xml

Then you need to restart apache so it takes effect

sudo service apache2 restart
4
  • 1
    for rhel/cent os yum install php-xml
    – user1642018
    Jun 4, 2018 at 16:52
  • 1
    At the time of writing, you should now be using sudo apt-get install php7.3-xml Apr 17, 2020 at 1:53
  • 1
    sudo apt-get install php-xml works fine if you are using PHP 7.4. My guess is that this command just checks your PHP version and installs the correct package based on that Aug 18, 2020 at 10:42
  • @JulesColle not really, I have php8.0 and it installs php8.1-xml with apt install php-xml. So the newest version is installed.
    – Timo
    Mar 15, 2022 at 18:42
50

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

sudo apt-get install php7.2-xml

2
  • Thanks , it worked for me . i just ran the following commands. -> sudo apt-get install php7.3-xml -> sudo service apache2 restart ->composer install Mar 23, 2021 at 12:18
  • I guess this is the case for Ubuntu 18 & apache2.4.
    – Ibrahim.H
    Jul 27, 2021 at 11:39
2

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

1
  • 2
    this is intl and not xml
    – Player1
    Jul 10, 2020 at 15:07
2

In Centos

 sudo yum install php-xml

and restart apache

sudo service httpd restart
1

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")

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.