Topic on Project:Support desk

Parsoid installation?

4
Bekircem (talkcontribs)

Hi,

I want to use VisualEditor extension on my wiki. VisualEditor extension needs to Parsoid. So, i must install Parsoid. I am using Digital Ocean VPS with Serverpilot.

Do you know better guide for that? And if i install to Parsoid, must i install NodeJS?

Thank you for answers.

Bekircem (talkcontribs)

I installed Parsoid and NodeJS.

I have error: "parsoidserver http 0"

require_once "$IP/extensions/VisualEditor/VisualEditor.php";

Localsettings.php

// Enable by default for everybody

$wgDefaultUserOptions['visualeditor-enable'] = 1;

// Don't allow users to disable it

$wgHiddenPrefs[] = 'visualeditor-enable';

$wgVisualEditorParsoidURL = 'http://localhost:8142';

$wgVirtualRestConfig['modules']['parsoid'] = array(

// URL to the Parsoid instance

// Use port 8142 if you use the Debian package

'url' => 'http://localhost:8142',

// Parsoid "domain", see below (optional)

'domain' => 'localhost',

// Parsoid "prefix", see below (optional)

'prefix' => 'localhost'

);

Settings.js

parsoidConfig.setMwApi({ prefix: 'localhost', uri: 'http://viki.gameofthronestr.com/api.php' });

Malyacko (talkcontribs)

See Parsoid for installation instructions. If you run into errors, feel free to post the exact error message and steps how to get the error message. (In the last comment I have no idea what is copied from some file and what is some output and what is some comment text, due to missing text formatting)

Bekircem (talkcontribs)

Hi Malyacko,

When i click edit link i get an error. This is the error:

"parsoidserver-http: HTTP 0 problem"

How i fix it?

Reply to "Parsoid installation?"