Jump to content

Topic on Project:Support desk/Flow

[RESOLVED] Fatal error attempting to run install (Class 'DOMDocument' not found)

9
216.194.14.34 (talkcontribs)

I uploaded mediawiki to my server, renaming the folder to simply, "wiki" first.

I go to my server URL/wiki/ and see the install link.

When I click on that setup link, I immediately get the folowing error:

Fatal error: Class 'DOMDocument' not found in /var/www/html/wiki/includes/LocalisationCache.php on line 542

How can I fix this so I can proceed?

Thanks, Chris

Ciencia Al Poder (talkcontribs)

You need to compile PHP with XML support. If your PHP install is provided by a distribution, try installing the php-xml package.

Ciencia Al Poder (talkcontribs)

Also, I've filled bug 42205 since I think the installer should fail more gracefully for those unmet requirements.

80.11.26.130 (talkcontribs)

Hello I have the same problem but I have php-xml, can you please help me I'm running mediawiki 1.23.15 with mysql 5.5, php 5.6 on Unbuntu 18.04, I know that my configuration sounds crazy but I need it this way

Ciencia Al Poder (talkcontribs)

You may need to enable the xml module after installing it, in php.ini, and restart apache after that.

Beveled Cube (talkcontribs)

How do i do that

Ciencia Al Poder (talkcontribs)

Search "Enable the xml php module" in your favorite search engine, and narrow the search to your webserver and php execution mode (mod_php, fcgi, fpm)