Difference between revisions of "Taking the Wiki Offline"

From DFN Wiki
Jump to: navigation, search
(Tag: visualeditor)
Line 4: Line 4:
 
=== Set Up redis-server for mwoffliner ===
 
=== Set Up redis-server for mwoffliner ===
  
# Modify the <code>Unix socket</code> section of the redis-server config (<code>/etc/redis/redis.conf</code>) so that the unix socket is created and has the correct permissions.
+
Modify the <code>Unix socket</code> section of the redis-server config (<code>/etc/redis/redis.conf</code>) so that the unix socket is created and has the correct permissions.
  
  unixsoxket /dev/shm/redis.sock
+
unixsoxket /dev/shm/redis.sock
  unixsocketperm 777
+
unixsocketperm 777
  
# Run mwoffliner
+
Run mwoffliner
  
  mwoffliner --mwUrl=https://wiki.dfn.net.au --adminEmail=-adminEmail=foo@bar.net --mwApiPath=/api.php --mwWikiPath=/ --mwModulePath=/load.php
+
mwoffliner --mwUrl=https://wiki.dfn.net.au --adminEmail=-adminEmail=foo@bar.net --mwApiPath=/api.php --mwWikiPath=/ --mwModulePath=/load.php

Revision as of 15:01, 10 April 2019

Install mwoffliner

Following the instructions here: https://github.com/openzim/mwoffliner.

Set Up redis-server for mwoffliner

Modify the Unix socket section of the redis-server config (/etc/redis/redis.conf) so that the unix socket is created and has the correct permissions.

unixsoxket /dev/shm/redis.sock
unixsocketperm 777

Run mwoffliner

mwoffliner --mwUrl=https://wiki.dfn.net.au --adminEmail=-adminEmail=foo@bar.net --mwApiPath=/api.php --mwWikiPath=/ --mwModulePath=/load.php