Difference between revisions of "Parsoid"
From SME Server
Jump to navigationJump to searchUnnilennium (talk | contribs) (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...") |
Unnilennium (talk | contribs) |
||
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
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
- https://www.mediawiki.org/wiki/Parsoid/Setup
- https://www.centos.org/forums/viewtopic.php?f=47&t=53223&p=225372#p225372