5. Install and activate the WordPress Importer plugin, log in as an
administrative user, then go to the Dashboard.
6. Go to Tools, select Import, then select the exported WXR file.
NOTE: One import step is required for each of the exported WXR files. For each
user that created content in macOS Server Wiki, the migration process will
present a UI that allows mapping of that user to an existing WordPress user, or
creation of a new WordPress user.
7. Manually edit each page then move it from Draft to Published status.
8. If necessary, add access control.
Export a browsable wiki HTML snapshot to file system
You can export the latest revision of all pages in all or selected wikis to the file
system, in a location and format where they can be browsed with Safari.
1. Before exporting wikis, plan a replacement for Wikis Access Control
Lists, which are not exported. Apache can be configured to restrict
access to exported Wiki content, using file-based authentication realms.
Detailed guidance on this process is not available in this document, but
in general it includes:
• Devising an authorization scheme to determine which groups have
access to which Wikis, based on the pre-export ACLs from the
macOS Server Wiki.
• Configuring mod_authnz_od_basic to require authenticated
membership in specific Open Directory groups.
• Editing desktop Apache's config file to implement the authorization
scheme, by adding Directory blocks and Require od_group and Limit
directives.
2. Prepare a location for export by running the following commands:
A. sudo mkdir /Library/WebServer/Documents/ExportedWikis
B. sudo chown _teamsserver /Library/WebServer/Documents/
ExportedWikis
3. Export the wikis to the file system as .html pages. To export all of the
wikis, run the following command:
wikiadmin export -all -format pages -path /Library/
WebServer/Documents/ExportedWikis
4. The files are only readable by user _teamsserver. To make them
accessible to the others, run the following command:
sudo chown -R admin:_www /Library/WebServer/Documents/
ExportedWikis
5. To browse the exported pages locally, by opening the generated index
file, without going through the web server by running the following
commands:
A. cd /Library/WebServer/Documents/ExportedWikis
B. open index.html
6. To browse the exported pages remotely, through the web server, enter
this URL in Safari:
https://(hostname):8080/ExportedWikis
NOTE: When macOS Server is promoted, the “Desktop” version of apache runs
on port 8080. If macOS Server isn’t promoted, then it runs on port 80.