MediaWiki VisualEditor在共享主机上安装

时间:2016-11-27 13:58:02

标签: editor hosting mediawiki shared

在共享主机上安装MediaWiki可视化编辑器的教程未在其网站上更新。 MediaWiki Visual Installation Guide 可能它是为旧版本的localhostsettings.js编写的,因为它与当前版本不匹配。

表格MediaWiki网站,他们说:

Open localsettings.example.js, and change parsoidConfig.setMwApi according to your wiki:
    The first parameter is the "prefix". The "prefix" is the name given to this wiki configuration in the deprecated Parsoid v1 API - Leave this option as default 'localhost'.
    The second parameter is "domain". The "domain" is used for communication with Visual Editor and RESTBase - Leave this optoin as default 'localhost'.
    The third parameter is "uri". The "uri" is the URL to your API (normally this is in the root-folder and called api.php) - Change this option according your wiki (For example http://wiki.example.com/api.php or http://example.com/w/api.php or something like that).
    "Proxy" parameter leave as default.
    If you use SSL on your wiki with a self-signed certificate you should uncomment parsoidConfig.strictSSL = false; in Line 102. You should still use HTTP in the URL above instead of HTTP! Note that, in at-least one instance for a Wiki on SSL having redirect rules for HTTP to HTTPS, using http://example.com/w/api.php instead of https://example.com/w/api.php gave an: "Error loading data from server: 500:docserver-http:HTTP 500." error. This was fixed on using https:// or on removing the redirect rule.

但它并不匹配。任何人都可以解释我需要更改哪些设置才能让它运行?

0 个答案:

没有答案