Mediawiki install/setup issue

I’m running the DietPi x86 proxmox iso inside a couple of VMs without issue. I just created a new VM and installed Mediawiki with Apache.

When I go to the ip addr/wiki I see Mediawiki 1.45.1 LocalSettings.php not found. Please set up the wiki first.

I click that link and get ‘MediaWiki internal error.’ and bunch of details, including Error: Class “Wikimedia\Parsoid\DOM\HTMLDocument" not found.

I’ve tried restarting the VM, deleting and recreating the VM, and a few other things but results are the same. I’ve read the (non DietPi) Wikimedia manual installation docs, but everything I check has already been done by DietPi.

I’m new at all this and would appreciate some tips on where to go from here.

Did you had a look to the online docs? Social and Publishing Software Options - DietPi.com Docs

Does this fit?

Alright I made a test installation (and using Lighttpd as web server) and when accessing /wiki no installation wizard is coming up, instead I get these errors:

MediaWiki internal error.

Original exception: [52f8c5560b769aad0888c6cc] /wiki/mw-config/index.php Error: Class "Wikimedia\Parsoid\DOM\HTMLDocument" not found
Backtrace:
from /var/www/wiki/vendor/wikimedia/parsoid/src/Utils/DOMCompat.php(112)
#0 /var/www/wiki/includes/parser/ContentHolder.php(96): Wikimedia\Parsoid\Utils\DOMCompat::newDocument()
#1 /var/www/wiki/includes/parser/ParserOutput.php(368): MediaWiki\Parser\ContentHolder::createEmpty()
#2 /var/www/wiki/includes/Output/OutputPage.php(439): MediaWiki\Parser\ParserOutput->__construct()
#3 /var/www/wiki/includes/context/RequestContext.php(331): MediaWiki\Output\OutputPage->__construct()
#4 /var/www/wiki/includes/Setup.php(571): MediaWiki\Context\RequestContext->getOutput()
#5 /var/www/wiki/includes/WebStart.php(72): require_once(string)
#6 /var/www/wiki/mw-config/index.php(27): require(string)
#7 {main}

Exception caught inside exception handler: [52f8c5560b769aad0888c6cc] /wiki/mw-config/index.php Wikimedia\Rdbms\DBConnectionError: Cannot access the database: Access denied for user 'wikiuser'@'localhost' (using password: NO) (localhost)
Backtrace:
from /var/www/wiki/includes/libs/rdbms/loadbalancer/LoadBalancer.php(1163)
#0 /var/www/wiki/includes/libs/rdbms/loadbalancer/LoadBalancer.php(840): Wikimedia\Rdbms\LoadBalancer->reportConnectionError()
#1 /var/www/wiki/includes/libs/rdbms/loadbalancer/LoadBalancer.php(827): Wikimedia\Rdbms\LoadBalancer->getServerConnection()
#2 /var/www/wiki/includes/libs/rdbms/database/DBConnRef.php(107): Wikimedia\Rdbms\LoadBalancer->getConnectionInternal()
#3 /var/www/wiki/includes/libs/rdbms/database/DBConnRef.php(125): Wikimedia\Rdbms\DBConnRef->ensureConnection()
#4 /var/www/wiki/includes/libs/rdbms/database/DBConnRef.php(369): Wikimedia\Rdbms\DBConnRef->__call()
#5 /var/www/wiki/includes/libs/rdbms/querybuilder/SelectQueryBuilder.php(779): Wikimedia\Rdbms\DBConnRef->selectField()
#6 /var/www/wiki/includes/language/LCStoreDB.php(52): Wikimedia\Rdbms\SelectQueryBuilder->fetchField()
#7 /var/www/wiki/includes/language/LocalisationCache.php(553): LCStoreDB->get()
#8 /var/www/wiki/includes/language/LocalisationCache.php(599): LocalisationCache->isExpired()
#9 /var/www/wiki/includes/language/LocalisationCache.php(510): LocalisationCache->initLanguage()
#10 /var/www/wiki/includes/language/LocalisationCache.php(390): LocalisationCache->loadSubitem()
#11 /var/www/wiki/includes/language/LocalisationCache.php(406): LocalisationCache->getSubitem()
#12 /var/www/wiki/includes/language/MessageCache.php(1194): LocalisationCache->getSubitemWithSource()
#13 /var/www/wiki/includes/language/MessageCache.php(1134): MessageCache->getMessageForLang()
#14 /var/www/wiki/includes/language/MessageCache.php(1027): MessageCache->getMessageFromFallbackChain()
#15 /var/www/wiki/includes/language/Message/Message.php(1535): MessageCache->get()
#16 /var/www/wiki/includes/language/Message/Message.php(1035): MediaWiki\Message\Message->fetchMessage()
#17 /var/www/wiki/includes/language/Message/Message.php(1137): MediaWiki\Message\Message->format()
#18 /var/www/wiki/includes/exception/MWExceptionRenderer.php(251): MediaWiki\Message\Message->text()
#19 /var/www/wiki/includes/exception/MWExceptionRenderer.php(189): MediaWiki\Exception\MWExceptionRenderer::msg()
#20 /var/www/wiki/includes/exception/MWExceptionRenderer.php(103): MediaWiki\Exception\MWExceptionRenderer::reportHTML()
#21 /var/www/wiki/includes/exception/MWExceptionHandler.php(123): MediaWiki\Exception\MWExceptionRenderer::output()
#22 /var/www/wiki/includes/exception/MWExceptionHandler.php(224): MediaWiki\Exception\MWExceptionHandler::report()
#23 /var/www/wiki/includes/exception/MWExceptionHandler.php(195): MediaWiki\Exception\MWExceptionHandler::handleException()
#24 [internal function]: MediaWiki\Exception\MWExceptionHandler::handleUncaughtException()
#25 {main}

It’s a problem with Parsoid and they are on it. You would need to wait until 1.45.2 is released or you try the workarounds mentioned in the thread (or downgrade to php 8.3, seems like it is not affected)
https://phabricator.wikimedia.org/T409283

Thanks! That is my exact issue. I’ll have look at the thread workarounds