Manual:Wiki family/ko

다음은 하나 이상의 위키를 호스트하기 위한 미디어위키 설정 방법에 관한 지침입니다. 같은 서버에 위치한 여러 개의 위키를 위키 패밀리, 위키 팜이라고 합니다. 알려진 위키 팜 목록은 에서 볼 수 있습니다.

기본 원칙
위키 패밀리의 공통적인 설정은 미디어위키의 단일 버전으로 실행합니다. 다음의 일반적인 단계는 이 시나리오를 필요로 합니다:
 * 1) Install the first wiki as normal. 자세한 사항은, 를 참조합니다.
 * 2) Enable your web server to share your MediaWiki install with all wikis. For multiple (sub)domains, you can use listen on multiple server names. For multiple subdirectories, you could use rewrite rules, aliases, or symlinks.
 * 3) Add code to the top of , to detect the current wiki. For wikis by domain name:
 * 4) Configure settings that must differ for all wikis. For example:
 * 5) Configure per-wiki overrides. This should include at least   and  . This could be done from a separate file, e.g.:

To create a new wiki, create its database and add its settings first, and then run.

거대한 switch 문
이것은 동일 소스 코드 체크아웃을 이용하면서, 단일 서버에 하나 이상의 위키를 설치하도록 해줍니다.


 * 1) Install the first wiki as normal, via the web or CLI installer, which sets up your database and generates a  file.
 * 1) After installation, rename the generated   file to include the wiki ID (e.g. database name), like.
 * 1) 만들고 싶은 각 위키만큼 2단계와 3단계를 반복하여, 각 위키를 위한 새로운 LocalSettings.php를 만듭니다 (예를 들어, LocalSettings_anotherWiki.php, 등등)
 * 1) Create a new   file that will load the correct one.

같은 도메인에 있지만 경로가 다른 경우 (예를들면,,   등등) 다음과 같이 이용할 수 있습니다:

드루팔 스타일의 사이트
This setup has the advantage of being completely transparent to users and reasonably secure in terms of the images directory.


 * 1) Create a base directory to contain all your MediaWiki files e.g..
 * 2) Install MediaWiki and additional tools as usual to a version-declaring subdirectory (e.g.,  ).
 * 3) Link the version-declaring directory to a code directory. e.g.,
 * 4) Create a sites directory to contain our images and settings:
 * 5) Setup the wiki as normal from the /code directory.
 * 6) After successful installation, move   into a sites directory that will be a match when the site is checked. For example, to capture http://example.com/mywiki, one would create the directory example.com.mywiki. e.g.,  . See the Drupal's   file for more information on this.
 * 7) If you intend to use media files, create an images directory in your site directory. e.g.,  .  Make it writable as necessary.
 * 8) Place the Drupal-style   file in your main directory:
 * 9) Modify the   of each subsite to point to the right places:
 * 10) First comment out the code relating to , (lines 16-20 in 1.15.3) as this is set to the code directory by.
 * 11) Next insert the following two lines to ensure that image files are accessible, e.g.:  and . These need to be put somewhere after the call to   (line 25 in 1.15.3), as the variables will otherwise be reset.
 * 12) Make further modifications as required.
 * 13) Prepare your Apache 2 installation. Example site: wiki.example.com
 * 14) Create a link to the code directory, if required e.g.
 * 15) Create an appropriate VHost configuration:
 * 11. If you are setting the sites up locally, update your  file with the site names. 사이트가 이제 작동해야 합니다.

In my case, I made another copy of the code from which to install and update my  and databases. Note that in the companion Drupal code is undefined when running maintenance scripts from the command line, so this solution does not permit the use of maintenance scripts without some modification.

Ubuntu를 위한 수정된 드루팔 스타일의 메서드
A simplified method for multiple wikis and multiple (or nested) subwikis on Ubuntu/Kubuntu that is loosely based on the above method can be found at:
 * Ubuntuguide.org 미디어위키 팁

공용 자료를 공유하는 여러 위키
당신은 다른 언어에, 하나의 위키에서 같은 미디어 파일을 공유하는 어떤 위키를 가지고 싶어합니다.

예를 들어:


 * en.example.org -
 * fr.example.org -
 * de.example.org -
 * pool.example.org - (공용과 같은) 이러한 모든 위키를 위한 미디어 파일.

공유된 데이터베이스 테이블
Consider using shared database for user accounts. See for instructions on setting up shared database tables.

인터위키
You can create interwiki links between all wikis, by using. If the wikis are language editions, it is recommended to name the interwiki prefix after the exact language code. For example, "de" for the German wiki in your family. This way, you can connect pages about the same subject using language links.

Adding Hauptseite on your English "Main Page" will create a link "Deutsch" in the languages sidebar. For further information visit

If you have a central wiki for files, create a prefix for this as well. E.g.  to https://pool.example.org/wiki/$1 and enable the "Forward" checkbox to recognise it as a local wiki in the same family.

올리기
Make sure that folder "images" of the pool-wiki is writable.

It is useful to change the "Upload file"-Link of the language-wikis to point to poolwiki's upload-site. Open the "LocalSettings.php" of each language-wiki and add:

In 1.17, you'll also have to set  to be redirected to the pool-wiki on red links.

If you want to allow uploads only for your pool wiki, you may use something like this:

공유된 파일 사용
To use poolwiki's files in the languagewikis, open "LocalSettings.php" for each languagewiki and add:

Now you can integrate pool's files with (e.g. ) in the languagewikis.

그림 설명
In each languagewiki, open (as an admin) the message MediaWiki:Sharedupload-desc-here.

Change the text to something like:

This file is stored in our data-pool. For information and description, please visit the description there.

(And note the ':' at the beginning of the line, which stops 'pool' from being included in the interwiki list at the left of the page.)

If you want to output the media-description, stored in the PoolWiki, too, add to the "LocalSettings.php" of the languagewikis:

위키 팜 확장 기능
단일 코드 기반을 사용하여 여러 위키를 간단히 호스팅하기 위한 여러 미디어위키 확장 기능이 있습니다:


 * - beta.


 * : For localisation issues of the and customising the Skins regarding the files ,  ,  ,  ,  ,   respectively.

같이 보기

 * * [[Requests for comment/Configuration database|데이터베이스 구성 ]]
 * 미디어위키 파머 사용자 그룹 및 Wikifarm
 * 미디어위키 파머 사용자 그룹 및 Wikifarm
 * 미디어위키 파머 사용자 그룹 및 Wikifarm
 * 미디어위키 파머 사용자 그룹 및 Wikifarm
 * — the mechanism by which user accounts can have an extra 'central' identifier.