Get your own copy of openresearch

From Openresearch
Revision as of 08:58, 19 March 2021 by Tim Holzheim (talk | contribs) (wikipush toolkit)
Jump to: navigation, search

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
  • Semantic Cite
  • Semantic MediaWiki
  • Semantic Result Formats
  • Nuke
  • Page Forms
  • Renameuser
  • Replace Text
  • Cite
  • Header Tabs
  • ImageLink
  • ImageMap
  • MagicNoCache
  • Maps
  • MsUpload
  • ParserFunctions
  • PDFEmbed
  • SyntaxHighlight


Necessary Admin Extensions

Admin_Links

  • UserFunctions
  • WikiEditor


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::+]]"

What is the copyright?