52

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
  • 567
  • 1
  • 5
  • 10
  • 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

98

You're close

sudo apt-get install php-xml

Then you need to restart apache so it takes effect

sudo service apache2 restart
BuBy
  • 59
  • 5
William Booth
  • 1,146
  • 8
  • 9
  • 1
    for rhel/cent os yum install php-xml –  Jun 04 '18 at 16:52
  • 1
    At the time of writing, you should now be using sudo apt-get install php7.3-xml – Cody MacLeod Apr 17 '20 at 01: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 – Jules Colle Aug 18 '20 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 '22 at 18:42
49

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

sudo apt-get install php7.2-xml

ancyrweb
  • 1,220
  • 12
  • 12
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
  • 37
  • 1
2

In Centos

 sudo yum install php-xml

and restart apache

sudo service httpd restart
David
  • 307
  • 3
  • 7
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")

David Brun
  • 109
  • 1
  • 4