Migrate from MediaWiki to XWiki

A practical guide to moving a MediaWiki site into self-hosted XWiki with the MediaWiki XML filter and the Filter Streams Converter, covering what maps, what breaks, effort drivers and a parallel-run cutover.

On this page

Migrate from MediaWiki to XWiki: what the move involves

Moving a MediaWiki site into XWiki is an export, conversion, import and validation project, built on the XWiki MediaWiki XML filter and the Filter Streams Converter. Its effort depends on four things: the templates and parser functions the site relies on, the MediaWiki extensions that add behavior to pages, the number and size of uploaded files, and how the permission model maps onto XWiki rights and groups. Teams often expect the page text to be the hard part, but templates and extension output usually take more review, because a converted page can look correct while the logic behind it did not carry over. Confirm in the documentation for your XWiki version which MediaWiki export formats the filter reads before you fix the scope.

Duration can only be set after an inventory of the source wiki. The inventory should list every namespace in use, the templates and extensions reported on the wiki's version page, the file count and total size, the user accounts and groups, and any page protection or namespace restrictions. Confirm early whether revision history must be carried across, because that choice changes the import volume and the validation work. The inventory also shows which content can be archived and left out of the import. A written scope is how you get a quote: it should name the inventory findings, the conversion approach for each template and extension, the content and history in scope, the acceptance checks, and what your team must supply.

Your side of the project is access and decisions. You provide a read-only copy of the source wiki, a staging XWiki on infrastructure you control, and named content owners who approve converted sections. DeployOpen's side is the export, conversion, import runs and validation against the written scope, ending with a conversion log and a validation report. The largest cost drivers are the conversion work on templates and extensions, the number of import passes, and the validation effort on links and permissions, and these are one-time costs. Ongoing XWiki operation, upgrades and support are separate and can be agreed as a retainer. Ask any partner for the inventory method and the acceptance checks in writing before you compare quotes.

What maps cleanly from MediaWiki to XWiki and what needs rework

This table compares common MediaWiki features with their closest XWiki counterparts and marks each as a direct, partial or manual rebuild mapping. Use it to scope conversion work before the first import, since each status shows where pages will need review after conversion. Confirm every conversion with a test import on your own MediaWiki and XWiki versions, because converter behavior depends on both.

MediaWiki featureMapping to XWikiStatus and what to check
Page text and revision historyCurrent page text converts through the MediaWiki XML filter. Revisions are carried over with their history.Direct for text, partial for history. Confirm revision counts and authors on a test import.
NamespacesNamespace pages need a target space layout in XWiki that you design before the import runs.Partial. Decide the space tree first, then check page paths after the import.
CategoriesCategory tags usually arrive as page content and need a separate taxonomy design in XWiki.Manual rebuild. Plan category pages, tags or a structured data model in XWiki.
Internal and external linksInternal links are rewritten to XWiki link syntax during conversion. External URLs keep their targets.Partial. Validate every internal link after import, because page paths change.
TemplatesTemplate pages import as ordinary pages. Template calls and transclusion need XWiki macros or includes.Manual rebuild. Rewrite template calls with XWiki macros and test how each page renders.
Parser functionsLogic such as conditionals and switches has no one-to-one equivalent in XWiki syntax.Manual rebuild. Inventory each parser function and rebuild it with XWiki macros or scripting.
Extension tagsTags such as nowiki, ref and syntaxhighlight convert only where the syntax converter supports them.Partial. Check each tag type on sample pages and fix unsupported ones by hand.
Uploaded filesUploaded files are exported with their pages and attached where the importer can match them.Partial. Confirm file names, sizes and page links on a sample import.
Users, groups and page protectionAccounts, groups and protection rules are not page content, so they must be rebuilt as XWiki users, groups and rights.Manual rebuild. Map each group and protection level to XWiki rights, then test access.

Documented import paths for a MediaWiki to XWiki migration

Four import components connect in a fixed order: the MediaWiki XML filter reads the export, the Filter Streams Converter reshapes it, the XWiki importers write it into a target, and a disposable instance absorbs test runs first. Each step has its own input format, options and history behavior, so confirm them against the XWiki documentation for the exact version you deploy.

MediaWiki XML filter for the export

The MediaWiki XML filter reads the XML export your source wiki produces and turns pages, revisions and file references into a stream that the rest of the chain can process. Decide early which namespaces, page revisions and uploaded files go into the export, because anything left out cannot be recovered later without a new export. Confirm the accepted input format, the export options and which revision history the filter carries over for the XWiki version you deploy.

Filter Streams Converter step

The Filter Streams Converter takes the stream from the MediaWiki filter and converts it into the form the XWiki filter stream importers read. This is the step where MediaWiki-specific structure is rewritten, so run it on a copy of the export and keep the original file untouched for reruns. Review what the converter reports for each page, and confirm the input and output formats, command options and any conversion limits against the XWiki documentation for your version.

XWiki filter stream importers

The XWiki filter stream importers write the converted stream into the target instance as pages and page history. Import into an instance that runs the same XWiki version and database as production, so that results are comparable with what production will do. Confirm which history entries survive the import, how attachments and author references are handled, and whether users and rights come across or must be rebuilt separately before you schedule the cutover.

Disposable test instance for dry runs

Run every import first against a disposable test instance that is rebuilt from scratch for each attempt. It should match the target version, database and Tomcat setup, so a dry run is a fair preview of production. Use it to check internal links, page titles, macros that did not convert and the permissions you rebuilt by hand, then record what failed so the next run can be compared against it. Confirm with the XWiki documentation for that version how a clean instance is set up for import.

Where MediaWiki syntax loses fidelity after conversion

Plain prose, headings, bold and italic text, internal links and lists are the parts of a MediaWiki site that usually survive the move with the least rework. The main risk here lies in structure: heading levels, section anchors and link targets are where a page can look correct while navigation breaks. Check these first, because every other tab depends on the pages that carry them.

  • Heading levels: confirm that level 2 and level 3 headings map to the expected levels in XWiki, since a shifted hierarchy changes the table of contents and section links.
  • Section anchors: links to #Section_name anchors need testing, because anchor IDs can be generated differently after import.
  • Internal links: confirm that links between pages resolve to the new page names, including titles with spaces, colons or namespace prefixes.
  • Categories and namespaces: decide the target space and page naming for MediaWiki namespaces and categories before the test import begins.
  • Basic formatting: bold, italic and list markup usually converts cleanly, so sample a few pages and spend most review time on the items above.

Before cutover, compare the heading outline and internal link results for a sample of pages against the source, then search the converted space for leftover [[ characters to find links the converter did not resolve.

Each MediaWiki hand-off must clear a check before the next phase

The diagram starts with a MediaWiki export of pages and files, taken inside the source environment. That export is the artifact that crosses the source boundary. The Filter Streams Converter turns it into an XWiki filter stream, which is imported into a test XWiki instance inside the target boundary. Syntax review, user and permission rebuild, and link and attachment checks run there before anything moves toward production. A parallel run compares both wikis before cutover, and the MediaWiki site is kept as a read-only archive afterward. Confirm each hand-off before starting the next phase.

Phases and hand-offs from MediaWiki export to the read-only archive.

Migration sequence from inventory to decommission

This sequence moves a MediaWiki site into XWiki in controlled stages, from a complete inventory through a tested pilot to a documented cutover and an archived, decommissioned MediaWiki. Each stage closes with a written check that content, links and access rules match the source. The client signs off at each gate named below, so no stage moves forward on assumption.

  1. Inventory content, users and extensions

    DeployOpen works with your wiki administrators to list every page, namespace, template, extension, uploaded file and user account on the MediaWiki site, and records the owner of each space. You provide read access to the wiki database and upload directory, the list of skins and extensions in use, and the names of the people who approve content. The team flags stale, duplicate and out-of-scope content so it is not carried over by default. The step closes when content owners sign off the inventory, which becomes the baseline for every later comparison.

  2. Export the pilot and build the test instance

    Two tracks run side by side. DeployOpen exports a pilot subset of pages and the files they reference from MediaWiki, chosen to cover each namespace and a mix of templates and attachments. In parallel, the team builds a test XWiki on the image line you choose, such as the stable, LTS or intermediate LTS line, with the MySQL, PostgreSQL or MariaDB variant that fits your database standards. You provide the pilot page list, the database choice and the hosting target. The step closes when the export is checksummed, the test instance starts and passes a health check, and the content owners sign off the pilot scope.

  3. Convert and import the pilot

    DeployOpen runs the MediaWiki XML export through the MediaWiki XML filter and the Filter Streams Converter, then imports the converted pilot into the test instance. Expect some pages to fail or import with markup the converter cannot map cleanly. Each failing page is logged with its source title, so every error can be reviewed and assigned. You confirm the target spaces and that imported titles and hierarchy match the inventory. The step closes when the pilot import has a written log covering every page, file and error, and you accept that log as the input for syntax work.

  4. Fix syntax and template gaps

    Syntax conversion is where most manual effort concentrates. The team reviews the pilot pages against the source, fixing MediaWiki constructs that do not map directly into XWiki syntax, such as template calls, parser functions, tables and extension tags. Templates that do not convert cleanly are rebuilt as XWiki pages or macros. Each fix is logged by pattern so the same change can be applied to the full content set. You review rendered pages in the test instance and confirm that meaning is preserved, not only layout. The step closes when the pilot pages pass your review and each remaining conversion gap has a named owner.

  5. Rebuild users and permissions

    Do not assume the import carries users, groups and page rights across. Confirm what the pilot log shows, then the team rebuilds the access model in XWiki from the inventory. DeployOpen maps MediaWiki groups to XWiki groups, sets space and page rights, and agrees with you how accounts are created, whether as local accounts or through an external directory and single sign-on. You provide the group-to-role mapping, the list of accounts to keep and the people who approve access for each space. Test accounts for each role confirm they can view, edit and administer only what the mapping grants. The step closes when your access owners sign off the role test results.

  6. Validate links and attachments

    Links and attachments break in quiet ways after a move, so the team checks them on the pilot and again on the full content set before cutover. Internal links are tested for target, namespace and letter case. Interwiki and external links are listed for review. Each attachment is compared with the source by name, size and checksum, and images and files are opened from the page where they are referenced. You provide the external domains that must keep working and the people who review broken-link reports. The step closes when the report shows no unresolved internal links and every exception has an owner and a decision.

  7. Run parallel sync and cut over

    Before cutover, the team runs MediaWiki and XWiki in parallel for a period agreed with you in writing, using either an edit freeze on MediaWiki or a defined sync rule that re-imports changed pages into XWiki. The rule states which system is the record during the period, who can override it and how conflicts are resolved. Cutover switches links, redirects and access to XWiki and runs from a checklist that repeats the inventory counts and the link report. The step closes when content owners sign off the final delta and the cutover checklist is complete.

  8. Archive and decommission MediaWiki

    After cutover, the team takes a final export of MediaWiki, including the database dump and upload directory, and stores it in an archive location you control with a record of its checksums. MediaWiki is then made read-only or otherwise blocked from editing, and kept for the retention period your records owners set. Only after that is the server, database and web endpoint decommissioned. You receive the archive manifest, the decommission record and the final inventory comparison. The engagement closes when your owner signs off the archive and decommission record.

Rebuilding MediaWiki users and permissions in XWiki

The page content import does not replace an identity plan, so the team has to decide how users, groups and page or space rights get recreated in XWiki before cutover. Moving pages, revisions and files leaves accounts behind or carries them in a form that still needs work. Start by confirming, for the XWiki version you will run and the MediaWiki import route you have chosen, which account data is carried: usernames, email addresses, password handling, group memberships, and the authors of revisions and uploads. Record the answer in writing. Any account data that is not carried becomes a named work item with an owner, not an assumption that it will be handled during cutover.

The core task is to map each MediaWiki group to an XWiki group. Read the group definitions and the rights granted in LocalSettings.php through $wgGroupPermissions, then list each group with its members and what it can do: read, edit, move, delete, protect or manage users. For each group, choose the XWiki group that serves the same purpose, and decide whether its rights apply across a whole space or only to selected pages. Keep administrative rights narrow. MediaWiki's sysop group often carries deletion and protection rights, and those should map to a small, named XWiki group that few people belong to. Also decide how anonymous readers and editors are handled, since public and internal wikis need different answers.

Then review protected pages one by one. MediaWiki protection on edit and move actions has to be recreated as page or space rights in XWiki, so build the list from Special:ProtectedPages, note the level and reason for each entry, and check it against the imported content. Test each result with an account from each group, because a page that was locked to administrators may now be open to every member of a broad XWiki group. If you want one identity source for sign-in, the xwiki-contrib OpenID Connect extension can authenticate XWiki users against an external OpenID Connect provider. Confirm that it supports your XWiki line, and confirm whether provider claims can carry group membership, since sign-in alone does not rebuild rights.

Effort drivers that set the cost and duration of a MediaWiki to XWiki migration

This table lists the drivers that move the effort and schedule of a MediaWiki to XWiki move, with what makes each one larger and what keeps it contained. Read each row against your own wiki before you ask for a quote. The main takeaway is that a quote should show each driver as a line item tied to the written scope, so you can see which choices change the price.

DriverWhat raises effortWhat lowers it
Page count and revision depthLarge page count and long revision histories that you decide to carry over into XWikiMigrate current versions only, or a set history window, agreed in writing before the export
Template and extension useHeavy use of MediaWiki templates, parser functions and extensions that must be rebuilt as XWiki macros or applicationsFew templates and a short list of extensions with known XWiki equivalents or no equivalent needed
File volumeMany uploaded files, large media and multiple file versions that must be exported, linked and checkedOnly files still linked from live pages, with unused uploads archived outside the wiki
Syntax varietyMixed wikitext, raw HTML and hand-written markup that the converter handles unevenlyOne dominant syntax style, with a sample conversion reviewed before the full run
Permission model complexityPer-namespace or per-page rights, group mappings and exceptions that must be rebuilt in XWikiSimple groups mapped to a small set of XWiki groups, with the rights model agreed before import
Identity and SSO requirementsCentral sign-in, directory group sync and an OpenID Connect or directory integration to configure and testLocal accounts only, or one identity source with a clear mapping of MediaWiki users to XWiki users
Reviewers for validationMany page owners or departments who must sign off on converted content and linksOne named reviewer per space with a short checklist for links, layout and macros
Parallel runKeeping MediaWiki editable while XWiki runs, which needs delta imports or a second pass before cutoverA single freeze window with a final export, if the business can accept a read-only period

What usually goes wrong in a MediaWiki to XWiki move and how to prevent it

Most failed MediaWiki to XWiki moves fail quietly. The import completes, pages look right in a browser, and the problems surface later with users, auditors or the first person who searches for a procedure. Each card below names one failure point and one step an owner can take before cutover.

Internal links that pass a quick check

Pages that open without errors can still point at the wrong targets. MediaWiki links use its own title rules, namespaces and redirects, and a link that resolves to a page with a similar name can look correct on a spot check. Assign one owner to crawl every internal link after the test import and compare each target against the source title list, including redirects, namespace prefixes and links to files. Record every mismatch before cutover, because a broken link in a runbook is often found during an incident.

Templates that render wrongly

MediaWiki templates, parser functions and magic words may not map one to one onto XWiki macros, so a page can import with its text intact and its layout broken. Infoboxes, navigation boxes and transcluded sections are the usual suspects. Build a list of every template in use on the source site and test each one on a sample page after conversion, comparing the rendered output with the original. Confirm from the conversion output which templates were converted, which were flattened and which were dropped, and give that review to someone who reads the wiki every day.

Permissions opened wider than the source

Rebuilt access rules can end up broader than the MediaWiki original. Groups such as sysop and bureaucrat, along with per-page protection, have to be recreated in XWiki, and a team that reconstructs them from memory may grant view or edit rights to a whole group by default. Map every MediaWiki group and page restriction to an XWiki group and right before any user is invited, then test each mapping with an account from every role and with an anonymous visitor. Keep the mapping in a shared document so a reviewer can sign off on it.

Attachment history that does not carry over

Uploaded files are often the part of a wiki that teams trust most, and earlier versions of a file are easy to lose in transit. Confirm whether the export and import path brings across each file's previous revisions, upload comments and uploader names, or only the current version. Ask the content owners to name the attachments whose earlier versions must survive, then check one file with several revisions after the test import. Where older versions matter for records, keep the MediaWiki export as the archive of record.

Edits lost during the parallel run

A parallel run leaves two live wikis, and any page edited in MediaWiki after the export never reaches XWiki unless someone carries the change across. The gap grows the longer the run lasts and is hardest to notice on pages that few people edit. Set a named editing freeze on the MediaWiki site at cutover, or assign one owner to list every page changed since the export and reapply those changes by hand or with a second import. Put the freeze time in the cutover plan so users know where to edit.

Assuming importer parity without a sample review

An import log shows what the tool processed, not whether the pages look right to the people who use them. Treating a clean log as proof of correct content skips the check that catches most of the problems above. Select a sample of pages by hand that covers each namespace, template and permission group, and have a subject owner approve the rendered result before cutover. Record what the sample did not cover so the gap stays visible to the people who accept the migration.

Questions buyers ask before moving MediaWiki to XWiki

What does a MediaWiki to XWiki migration cost, and what drives the price?

The cost is the work done by people, the infrastructure XWiki runs on, and any paid tools or support, and the scope decides how much of each you need. The main line items are the export and conversion of pages, files and templates, the rebuild of users, groups and rights, link validation after import, and the hosting and operations that continue after cutover. XWiki SAS lists consulting at 1200 EUR per day, a rate that requires a Business or Enterprise support plan (XWiki pricing). Costs rise with the number of wikis and spaces, attachment volume, custom templates and extensions, macros that need hand conversion, and the depth of the permission model. Ask for a quote that separates one-time work from recurring support and hosting, and that lists the assumptions made about the source. DeployOpen sets a price only from a written scope.

How long does a MediaWiki to XWiki migration take?

The duration depends on the size and condition of the source, so no single figure applies to every site. Confirm the timeline against your own export before you commit to a date. Four things set it: the number of pages and files, how much markup needs manual conversion after import, how many users and permission groups must be rebuilt, and how many rounds of test import and link validation your team wants before cutover. A test import on a copy of the export exposes conversion gaps early, and each extra round adds time. Environment work counts too, including provisioning XWiki on infrastructure you control, the database, the reverse proxy, and single sign-on if it is in scope. Ask any partner for a phased plan with a test import milestone, a cutover window, and the decision points where scope can change. DeployOpen agrees timelines in writing before fixed-scope work starts.

What does the migration need from our team?

The migration needs named owners for content, access and infrastructure, with their time committed at the points where decisions are made. Most projects need four roles:

  • A content owner for each wiki or space, who decides what to keep, archive or drop.
  • An identity owner who confirms how MediaWiki accounts map to XWiki users and groups, and whether single sign-on is in scope.
  • An infrastructure owner for hosting, backups, the database and network access.
  • A reviewer who checks converted pages and links against a sample list agreed at the start.

Confirm also who signs off the cutover and who can explain old templates, custom extensions and special pages. Without those people, validation tends to slip to the end, where fixes are most expensive.

Can our own team migrate MediaWiki to XWiki without a partner?

Yes, a team with Linux, Java and Tomcat, database and wiki administration skills can run the export and import itself, and XWiki Standard is the free open source version. The work that usually stretches an in-house team is the conversion gaps: MediaWiki syntax that does not map cleanly to XWiki syntax, templates and extensions with no direct equivalent, and the permission rebuild. Check whether you have people who can own each step, repeat test imports, and keep the new instance patched after go-live. XWiki SAS offers on-premises professional support, installation and configuration help, and training if you want vendor help for part of the work. DeployOpen scopes engagements in writing, so the work can cover the whole migration or only the parts your team chooses to hand over. List the steps, then name an owner for each one before you decide.

Can MediaWiki stay online during a migration to XWiki?

MediaWiki can stay online during build and testing, but the final cutover needs a plan so that edits made after the export are not lost. A first export is a snapshot, and pages edited after it will be missing from XWiki unless you run a second export and agree how to reconcile the changes. Common options are a short read-only window on MediaWiki during the final export, or a parallel period in which the team re-enters a small number of late edits by hand. Confirm with a test import which approach your content volume and editing pattern support. Plan redirects as well: old MediaWiki URLs and links from other systems need a mapping after cutover, and missed redirects are a common source of broken links.

Is there a paid tool that migrates MediaWiki to XWiki?

The paid migration tool XWiki SAS sells, Confluence Migrator Pro, migrates Confluence spaces, pages, users, groups, permissions and attachments, and it does not apply to MediaWiki. The MediaWiki route uses a MediaWiki XML export with the XWiki filter stream tools, including the Filter Streams Converter, and the syntax gaps, permission rebuild and link checks still need hands-on work after import. Confirm in writing with any vendor, including XWiki SAS, which MediaWiki versions, extensions and file types they cover before you assume a paid tool exists for your site. Ask for a conversion of a sample of your own pages so you can review the output before you pay for anything. The Confluence tool is priced from 2000 EUR, according to the Confluence Migrator Pro listing, and that price applies only to Confluence sources.

How DeployOpen scopes and delivers a MediaWiki to XWiki migration

DeployOpen plans and delivers a MediaWiki to XWiki migration inside your own infrastructure, from the first export through to the handover. The work runs against your page inventory, your files and your access model, so the scope reflects what your wiki actually contains. Engagements are fixed-scope, with deliverables and timelines agreed in writing before work starts.

How we scope

  • Inventory namespaces, pages, templates, uploaded files and the extensions your wiki depends on before choosing an export method.
  • Agree in writing which content moves, which is archived, and which is dropped, with the owner of each decision named.
  • Record the users, groups and page restrictions to rebuild in XWiki as a separate task.

How we build

  • Export pages and files, then run the Filter Streams Converter on a test copy of the data.
  • Log syntax conversion gaps, such as MediaWiki templates and extension tags, and decide how each is rebuilt or cleaned up.
  • Run the import into a staging XWiki instance and check that internal links, attachments and categories resolve.

How we hand over

  • Deliver the export and import scripts, conversion log and link validation results, written for your team to rerun.
  • Document the rebuilt permission model and the cutover checklist, so administrators can confirm access before users return.
  • Hand over the instance with a runbook for operating and backing up XWiki in infrastructure you control.

How we support

  • Ongoing support, upgrades and continuous testing can run under a retainer after cutover.
  • Plan the post-cutover window for link fixes, user reports and any pages that need manual rework.
  • Support scope, response expectations and who fixes what should be written into the agreement before work starts.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.