Difference between revisions of "Get your own copy of openresearch"

From Openresearch
Jump to: navigation, search
(Extensions)
(wikipush toolkit)
Line 117: Line 117:
 
$ wikipush -s or -t wikiId -q "[[Modification date::+]]"
 
$ wikipush -s or -t wikiId -q "[[Modification date::+]]"
 
</syntaxhighlight>
 
</syntaxhighlight>
 +
To copy the templates and forms fun the following commands:
 +
<syntaxhighlight>
 +
$ wikipush -s or -t wikiId -q "[[Template:+]]"
 +
</syntaxhighlight>
 +
<syntaxhighlight>
 +
$ wikipush -s or -t wikiId -q "[[Form:+]]"
 +
</syntaxhighlight>
 +
Note: Currently not all forms and templates are copied. If a specific page X is missing run:
 +
<syntaxhighlight>$ wikipush -s or -t wikiId -p "X"</syntaxhighlight>
  
 
== What is the copyright? ==
 
== What is the copyright? ==

Revision as of 10:17, 19 March 2021

Is OPENRESEARCH open source?

YES, the software is open source and the data as well.

Software

LAMP

A LAMP stack: Linux, Apache, mySQL, PHP is needed as a basis. See https://www.mediawiki.org/wiki/Manual:Running_MediaWiki_on_Debian_or_Ubuntu#Install_LAMP_Stack

Linux

e.g. Ubuntu 20.04 / Debian or similar Operating System. Could also be a virtual machine or a docker environment.

Apache

apt-get install apache2

mySQL

apt install mariadb-server
sudo mysql_secure_installation
root@confident02:~# mysql
Welcome to the MariaDB monitor.  Commands end with ; or \g.
Your MariaDB connection id is 55
Server version: 10.3.22-MariaDB-0+deb10u1 Debian 10

Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

MariaDB [(none)]> show databases;
+--------------------+
| Database           |
+--------------------+
| information_schema |
| mysql              |
| performance_schema |
+--------------------+
3 rows in set (0.000 sec)

PHP

apt-get install php7.3
apt-get install php7.4 ✔

MediaWiki

Semantic Media wiki

Extensions

see https://rq.bitplan.com/index.php/List_of_Extensions

Necessary Extensions

Header Tabs


Necessary Admin Extensions


Optional Extensions

wikipush toolkit

Prerequirements

Installation

Install py-3rdparty-mediawiki/

pip install py-3rdparty-mediawiki

Usage

py-3rdparty-mediawiki provides tools to push wiki pages to a new/existing wiki. A documentation of py-3rdparty-mediawiki can be found here.

To create a copy of OPENRESEARCH you must first register OPENRESEARCH to the py-3rdparty-mediawiki toolkit.

$ wikiuser
email: john@doe.com
scriptPath: /mediawiki
user: jd
url: https://www.openresearch.org
version: Mediawiki 1.31.7
wikiId: or
password: *****
shall i store jd smw? yes/no y/ny

You will have to do the same for the wiki you want to push the copy. In the following the target wiki will be referenced with the id wikiId After you registered the wiki you can create a copy with the following command:

$ wikipush -s or -t wikiId -q "[[Modification date::+]]"

To copy the templates and forms fun the following commands:

$ wikipush -s or -t wikiId -q "[[Template:+]]"
$ wikipush -s or -t wikiId -q "[[Form:+]]"

Note: Currently not all forms and templates are copied. If a specific page X is missing run:

$ wikipush -s or -t wikiId -p "X"

What is the copyright?