Page 1 of 1

PHP XML/DOM extension

Posted: Sun Dec 16, 2018 3:27 pm
by fanmail
Hi everyone :)

I'm trying to install PHP XML/DOM extension.

Message board version: phpBB-3.2.4
PHP Version: PHP 7.3.0
CentOS 7

Code: Select all

PHP XML/DOM support
In order for phpBB to function correctly, the PHP XML/DOM extension needs to be available.
What command line can i use to install the PHP XML/DOM extension on my server please?

Thank you :mrgreen:

Re: PHP XML/DOM extension

Posted: Sun Dec 16, 2018 3:33 pm
by 3Di
PHP 7.3.0 is not fully supported by phpBB yet, firstly.
Then you should ask your host about such extension.

Re: PHP XML/DOM extension

Posted: Sun Dec 16, 2018 4:19 pm
by fanmail
What do you mean by not fully supported by phpBB yet?
What do you mean by ask your host about such extension? :geek:

Re: PHP XML/DOM extension

Posted: Sun Dec 16, 2018 4:24 pm
by david63
fanmail wrote:
Sun Dec 16, 2018 4:19 pm
What do you mean by not fully supported by phpBB yet?
phpBB 3.2.4 does not work with PHP 7.3.0 is what he means.
fanmail wrote:
Sun Dec 16, 2018 4:19 pm
What do you mean by ask your host about such extension?
That is a server extension that your host, or you if it is your own server, will need to add.

Re: PHP XML/DOM extension

Posted: Sun Dec 16, 2018 4:28 pm
by fanmail
That is a server extension that your host, or you if it is your own server, will need to add.
That's the purpose of my thread :) I would like to know the command line i can use to install the PHP XML/DOM extension on my server :)

Re: PHP XML/DOM extension

Posted: Sun Dec 16, 2018 4:32 pm
by 3Di
yum install php-xml may be?

Re: PHP XML/DOM extension

Posted: Sun Dec 16, 2018 4:34 pm
by Mick
You really need to speak to whoever looks after your server, our knowledge of webserver setup is limited.

Re: PHP XML/DOM extension

Posted: Sun Dec 16, 2018 4:37 pm
by stevemaury
This is not a phpBB support question, but this may be helpful - https://www.hostwinds.com/guide/install ... -centos-7/

Also, if you have WHM, you can use EasyApache.

Re: PHP XML/DOM extension

Posted: Sun Dec 16, 2018 4:56 pm
by fanmail
3Di wrote:
Sun Dec 16, 2018 4:32 pm
yum install php-xml may be?
I tried: yum search php-xml

Code: Select all

[root@SPU5-2-6-18 ~]# yum search php-xml
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: repos.mia.quadranet.com
 * epel: d2lzkl7pfhq30w.cloudfront.net
 * extras: repos.mia.quadranet.com
 * remi-php73: mirror.team-cymru.com
 * remi-safe: mirror.team-cymru.com
 * updates: repos.mia.quadranet.com
============================= N/S matched: php-xml =============================
php-xml.x86_64 : A module for PHP applications which use XML
php-xmlrpc.x86_64 : A module for PHP applications which use the XML-RPC protocol
php-xmlseclibs.noarch : PHP library for XML Security
php54-php-xml.x86_64 : A module for PHP applications which use XML
php54-php-xmlrpc.x86_64 : A module for PHP applications which use the XML-RPC
                        : protocol
php55-php-xml.x86_64 : A module for PHP applications which use XML
php55-php-xmlrpc.x86_64 : A module for PHP applications which use the XML-RPC
                        : protocol
php56-php-xml.x86_64 : A module for PHP applications which use XML
php56-php-xmlrpc.x86_64 : A module for PHP applications which use the XML-RPC
                        : protocol
php70-php-xml.x86_64 : A module for PHP applications which use XML
php70-php-xmlrpc.x86_64 : A module for PHP applications which use the XML-RPC
                        : protocol
php71-php-xml.x86_64 : A module for PHP applications which use XML
php71-php-xmlrpc.x86_64 : A module for PHP applications which use the XML-RPC
                        : protocol
php72-php-xml.x86_64 : A module for PHP applications which use XML
php72-php-xmlrpc.x86_64 : A module for PHP applications which use the XML-RPC
                        : protocol
php73-php-xml.x86_64 : A module for PHP applications which use XML
php73-php-xmlrpc.x86_64 : A module for PHP applications which use the XML-RPC
                        : protocol

  Name and summary matches only, use "search all" for everything.
Then: sudo yum install -y php73-php-xml.x86_64 (my PHP version is 7.3) :geek:

and restarted the server: apachectl restart

When i try to install the phpbb message board i still get:
PHP XML/DOM support
In order for phpBB to function correctly, the PHP XML/DOM extension needs to be available.
:lol:

Re: PHP XML/DOM extension

Posted: Sun Dec 16, 2018 5:07 pm
by Lumpy Burgertushie
and still, this is not the place to ask for help with server setup issues. this is not about phpbb, has nothing to do with phpbb. try a site that deals with apache and /or php etc.

most hosting for websites already has this setup properly apparently so we would not see this error normally.

luck,
robert

Re: PHP XML/DOM extension

Posted: Sun Dec 16, 2018 5:08 pm
by canonknipser
did you include it in your php.ini? -> see comments here: http://php.net/manual/en/dom.setup.php

Re: PHP XML/DOM extension

Posted: Sun Dec 16, 2018 6:13 pm
by fanmail
canonknipser wrote:
Sun Dec 16, 2018 5:08 pm
did you include it in your php.ini? -> see comments here: http://php.net/manual/en/dom.setup.php
I have added "extension=dom.so" to the PHP.ini but it does not work :|

In my PHP.ini file:
extension_dir = "/usr/lib64/php/modules"
and my files are here: "/opt/remi/php73/root/usr/lib64/php/modules/"

:arrow: https://centos.pkgs.org/7/remi-x86_64/p ... 4.rpm.html

Re: PHP XML/DOM extension

Posted: Mon Dec 17, 2018 11:10 am
by warmweer
fanmail wrote:
Sun Dec 16, 2018 6:13 pm
...
and my files are here: "/opt/remi/php73/root/usr/lib64/php/modules/"

:arrow: https://centos.pkgs.org/7/remi-x86_64/p ... 4.rpm.html
Still seeing php7.3??

Have you tried with a lower php-version?

Re: PHP XML/DOM extension

Posted: Tue Dec 18, 2018 3:06 pm
by jjndig
Don't use php-xml, use php7.2-xml and then configure your web server to use php 7.2 instead of 7.3 (or get rid of php7.3 since most things aren't ready yet as it's a very new release) and it should work. Since I don't use CentOS (I use Debian) this is what I have to do, I'd assume it's the same or similar procedure (you might need to add the repositories in manually, and from a quick google search you do - and you'll have to use php72 rather than php7.2 like on Debian).

https://www.rosehosting.com/blog/how-to ... -centos-7/