Jump to content

Topic on User talk:Alexandroslee

我想讓我建立的維基 也能這樣的討論頁?我該怎麼做?

12
Alexandroslee (talkcontribs)

我想讓我建立的維基 也能這樣的討論頁?我該怎麼做?

Wargo (talkcontribs)
Alexandroslee (talkcontribs)

但是 安裝的前置作業 好複雜! 我裝不起來

Wargo (talkcontribs)

描述你的问题

Alexandroslee (talkcontribs)

我有下載 也裝到 Extension/Flow 了

但是 對於前置作業 看不懂?

required Extension:Echo for notifications (e.g. replies to your post) 這個下載也裝進去了

It is required to have an object cache. It is recommended that you use memcached for this. You may encounter problems with Redis currently. 看不懂

Extension:ParserFunctions for the templates that are automatically installed (e.g. #time) 這個預設裝了

$wgContentHandlerUseDB. Required for Special:EnableStructuredDiscussions and to avoid corruption if you change the content model of namespaces (towards or away from StructuredDiscussions) if there are already pages in that namespace. 看不懂 不知道要怎麼改

strongly recommended Parsoid for the option to store posts as HTML ($wgFlowContentFormat = 'html';) which improves performance. This is how WMF wikis are configured, and hence is the most tested configuration by far. If you use MediaWiki-Vagrant, enabling StructuredDiscussions enables Parsoid and sets the format to 'html'.看不懂 請問是改 localSeeting.php 嗎?

請問要如何安裝 Parsoid ?

https://www.mediawiki.org/wiki/Parsoid

新手上路 請見諒!

--~~~~

Alexandroslee (talkcontribs)

use memcached 是指在 LocalSetting.php 改這個嗎?

## Shared memory settings

$wgMainCacheType = CACHE_NONE;

$wgMemCachedServers = array();

還是 打開這個

#$wgCacheDirectory = "$IP/cache";

抱歉 我很外行 !

Alexandroslee (talkcontribs)

$wgFlowContentFormat = 'html'; 我是放在 LocalSetting.php

不知道是不是應該改 include 裡面的 DefaultSettings.php ?

Alexandroslee (talkcontribs)

$wgContentHandlerUseDB 不知道 要怎樣改 EnableStructuredDiscussions

我因為不懂怎麼改 namespace 所以 應該不會衝撞

也不清楚要改哪一個檔案?

是 mysql 的 php.ini 還是 LocalSetting.php 還是 DefaultSettings.php ?

Alexandroslee (talkcontribs)

請問要如何安裝 Parsoid ?

https://www.mediawiki.org/wiki/Parsoid

我去 github 下載好了!

https://github.com/wikimedia/parsoid

但是 我看這個安裝說明 完全傻眼 我是用 虛擬主機 都用 ftp 傳輸

所以 看到這一段 不知如何下手

Windows[編輯]

Requirements:

  • Install Nodejs x86
  • Install Git x86

With nodejs you have to install the build tools (as administrator)

npm install --global --production windows-build-tools

You may need to update your npm version to avoid errors

npm -g install npm@latest

npm@next is broken. See https://github.com/npm/npm/issues/16037

If your current directory is in C:\windows\system32, Perform the following command

cd %USERPROFILE%

Install parsoid

npm install parsoid

Copy the default config and configure parsoid for Windows Vista/7

copy %USERPROFILE%\node_modules\parsoid\localsettings.example.js %USERPROFILE%\node_modules\parsoid\localsettings.js

or for Windows 8+

copy %APPDATA%\npm\node_modules\parsoid\localsettings.example.js %APPDATA%\npm\node_modules\parsoid\localsettings.js

Run parsoid

C:\Users\USERNAME\node_modules\parsoid>node bin/server.js

or on Windows 10+

cd %APPDATA%\npm\node_modules\parsoid
node bin/server.js

You should open your php.ini file and uncomment the next php modules:

  • extension=php_curl.dll
  • extension=php_openssl.dll

otherwise you will get troubles with Parsoid

Alexandroslee (talkcontribs)

我的 notebook 有安裝 XAMPP

但是 還沒有裝 MEDIAWIKI

因為不會用 composer! 慘!

虛擬主機是用 BITNAMI 的 one click 裝的 但是 只有 1.26版

想裝 1.31 或 1.32 版 不會裝!

localhost 跟 虛擬主機 都不會裝

在local 跑 composer 跑很久 檔案一直跑 但是 結果還是看不知來該怎麼設定 路徑 或 json 等

所以 現在只能用 1.26 版在遠端執行

Alexandroslee (talkcontribs)

會進入 XAMPP 的 sheel

但是 缺乏一些基本知識 尤其對於 npm 不了解

我想這是核心問題 我看了很久 還是一知半解

Alexandroslee (talkcontribs)
Reply to "我想讓我建立的維基 也能這樣的討論頁?我該怎麼做?"