

opt/lampp/bin/php /opt/lampp/apps/mediawiki/htdocs/maintenance/importDump.php -conf /opt/lampp/apps/mediawiki/htdocs/LocalSettings.php /dwarffortresswikiorg- date-current.xml Step 4: Import your images

In my case, where XAMPP is run from its default /opt/lampp location, the import command looks like this: If you used the XAMPP stack, the script you want will be located at /apps/mediawiki/htdocs/maintenance/importDump.php Best is to use the importDump.php script, but even that took its time. The special page might work, but i had issues getting the file uploaded due to its size. I used a very simple XAMPP + mediawiki stack provided by Bitnami Step 3: Import your pages To get a list of current namespaces on the Wiki, check the Special:RandomByNamespace page, and tick the box at the top to display the namespace numbers To avoid this, you can apply the -exnamespaces flag, together with a comma-seperated list of namespaces to skip. While the -curonly flag will make it skip histories, the default namespace options mean it will still download ALL pages, including file definitions and talk pages. The most useful of which is the -resume option, that will let you restart a stalled/killed/stopped dump operation The arguments are mostly self-explanatory, and there are many, many more. Python dumpgenerator.py -api -index -xml -images -curonly -path dfwiki I did this by using the scripts provided by wikiteam. Once its dumped to file, you import it into a local MediaWiki instance that can be started on-demand. The basic idea is that you aim a script at a mediawiki and have it create a dump of the XML and images in a format thats compatible with the standard MediaWiki import utilities.

Ok so im mostly just dumping my process here in the hopes that it gets picked up and cleaned/formatted to fit the rest of the wiki
Media wiki offline install#
1.2 Step 2: Get a Mediawiki install going.
