Difference between revisions of "Parsoid"

From SME Server
Jump to navigationJump to search
(Created page with "{{WIP box}} this how to is to install wikimedia parsoid server on a SME9 install epel repo yum install nodejs npm vim-enhanced git policycoreutils-python --enablerepo=epel...")
 
Line 6: Line 6:
  
 
  yum install nodejs npm vim-enhanced git policycoreutils-python --enablerepo=epel
 
  yum install nodejs npm vim-enhanced git policycoreutils-python --enablerepo=epel
 +
cd ~
  
 +
Download the latest Parsoid form the Git:
 +
git clone https://gerrit.wikimedia.org/r/p/mediawiki/services/parsoid
 +
 +
 +
Copy the Paroid to /opt:
 +
cp -rv ~/parsoid /opt/
 +
 +
 +
Go to /opt/parsoid/
 +
cd /opt/parsoid/
 +
 +
 +
Install Parsoid in node.js:
 +
npm install
 +
 +
 +
Create the file local settings :
 +
mkdir /opt/parsoid/etc
 +
cp /opt/parsoid/config.example.yaml /opt/parsoid/etc/config.yaml
 +
vim /opt/parsoid/etc/config.yaml
 +
 +
set the required parameters
 +
uri: 'http://wiki.medi.com/api.php'
 +
and optionals as per example
 +
domain: 'wiki.medi.com'  # optiona
  
 
===Sources===
 
===Sources===

Revision as of 04:26, 27 June 2017

Warning.png Work in Progress:
This page is a Work in Progress. The contents off this page may be in flux, please have a look at this page history the to see list of changes.


this how to is to install wikimedia parsoid server on a SME9


install epel repo

yum install nodejs npm vim-enhanced git policycoreutils-python --enablerepo=epel
cd ~

Download the latest Parsoid form the Git:

git clone https://gerrit.wikimedia.org/r/p/mediawiki/services/parsoid


Copy the Paroid to /opt:

cp -rv ~/parsoid /opt/


Go to /opt/parsoid/

cd /opt/parsoid/


Install Parsoid in node.js:

npm install


Create the file local settings :

mkdir /opt/parsoid/etc
cp /opt/parsoid/config.example.yaml /opt/parsoid/etc/config.yaml
vim /opt/parsoid/etc/config.yaml

set the required parameters

uri: 'http://wiki.medi.com/api.php'

and optionals as per example

domain: 'wiki.medi.com'  # optiona

Sources

  1. https://www.mediawiki.org/wiki/Parsoid/Setup
  2. https://www.centos.org/forums/viewtopic.php?f=47&t=53223&p=225372#p225372