41

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

Forrest
  • 457
  • 1
  • 5
  • 9
  • Have you restarted your webserver after you installed php-xml? – apokryfos Aug 05 '16 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 05 '16 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 05 '16 at 16:26
  • eyy it worked thanks a bunch! Learning things about this OS loads quite enjoying it too, : ) Thanks – Forrest Aug 05 '16 at 16:34

5 Answers5

70

You're close

sudo apt-get install php-xml

Then you need to restart apache so it takes effect

sudo service apache2 restart
BuBy
  • 49
  • 5
William Booth
  • 866
  • 7
  • 9
41

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

sudo apt-get install php7.2-xml

Rewieer
  • 890
  • 9
  • 7
  • Thanks , it worked for me . i just ran the following commands. -> sudo apt-get install php7.3-xml -> sudo service apache2 restart ->composer install – kishan maharana Mar 23 '21 at 12:18
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

Enmanuel
  • 29
  • 1
1

In Centos

 sudo yum install php-xml

and restart apache

sudo service httpd restart
David
  • 65
  • 5
0

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

David Brun
  • 51
  • 4