The installation from package sources of the distribution will be omitted. Parsoid is installed under /opt. Go there with the following command:
To download Parsoid, the software "git" must be installed(
apt install git).
Start the download with:
git clone --depth 1 --branch v0.10.0 https://gerrit.wikimedia.org/r/p/mediawiki/services/parsoid parsoid
Install Parsoid with the following commands:
cd parsoid; \ npm install
Create the configuration file
In the BlueSpice codebase, you can find two files in the folder
Copy them to the folder
Parsoid is already fully configured and should work in standard setup without further changes.
Installing Parsoid and checking the configuration
To test the installation and the configuration, run the command
node bin/server.js in the
Parsoid should now start without an error message.
Quit Parsoid by pressing "Ctrl+C". Keep the command prompt open and go to the next step.
Installing Parsoid as a service
To run Parsoid in the background in the future, you must additionally install pm2 via Node.js:
npm install -g pm2
Then start Parsoid via pm2:
pm2 start /opt/parsoid/bin/server.js
Now save the pm2 process list — this adds parsoid to the pm2 services:
Finally, add pm2 to the system startup:
# Render startup-script for a specific platform, the [platform] could be one of: # ubuntu|centos|redhat|gentoo|systemd|darwin|amazon pm2 startup [platform]
If you have completed all steps successfully, you can proceed to the next step " Python".