내용을 보다 알차게 한다는 전제조건 밑에서 참여자께서는 이 문서를 재편집하실 수 있습니다.
누가 언제 마지막으로 글을 썼으며 그리고 쓰고 있는지는 문서역사를 살펴 보시기 바랍니다.
죽은 링크 & 영어 번역


미디어위키 설치하기 +/-

이 부분의 본문은 미디어위키 설치법/설치법입니다.

윈도우즈 XP와 리눅스에서의 설치법, 그리고 기타 정보들이 있습니다. -- 2007년 10월 3일 (수) 10:02 (KST)

SVG 파일 업로드 가능하게 하기 +/-

현재, 미디어위키를 설치하면 SVG 파일 업로드가 안된다.(기본값) 따라서, 프로그램을 하나 설치하고, 설정을 고쳐주어야 한다.

해결책 +/-

$wgEnableUploads       = true;
$wgUseImageResize      = true;
$wgUseImageMagick = true;
#$wgImageMagickConvertCommand = "/usr/bin/convert";
$wgImageMagickConvertCommand = "C:/Program Files/ImageMagick-6.3.2-Q16/convert";

참고 +/-

이 부분의 원문은 mw:Manual:Image_thumbnailing#SVG입니다.

이 문서가 SVG 파일 업로드 하게 하는 거라고 하고, 컨버터 가동법이라는데, 해봐도 안된다. 위에서 언급한 것 처럼, 명령어 문장의 위치가 핵심인 거 같은데, 어디에 위치해야 에러가 안나는지 모르겠다.

MediaWiki supports SVG image rendering: if enabled, SVG images can be used like other image files; they will automatically be rendered as a PNG file on demand. To enable SVG support:

미디어 위키는 SVG 이미지 렌더링을 지원한다. 이 기능이 켜지면, SVG 이미지를 다른 이미지들 처럼 동일하게 사용할 수 있다. SVG 이미지는 PNG 파일로 자동으로 실시간 렌더링 될 것이다. 이 기능을 켜려면 다음과 같이 하라:

First, allow uplod of SVG files in the LocalSettings.php file: $wgFileExtensions[] = 'svg'; Note that MediaWiki will refuse SVG files containing JavaScript, for security reasons. To avoid some false positives, set $wgAllowTitlesInSVG = true;. If you get an error saying the file is corrupt, make sure mime type detection is working properly.

첫째, LocalSettings.php 을 다음과 같이 수정, 추가하라:

$wgFileExtensions[] = 'svg';
$wgAllowTitlesInSVG = true;

Second, set $wgSVGConverter to the renderer you want to use. Available options are ImageMagick, sodipodi, inkscape, batik, and rsvg. The default is ImageMagick, but it is recommended to use one of the other renderers if possible. If the converter program is not in the system path, you have to specify the directory that contains the program using $wgSVGConverterPath.

둘째, $wgSVGConverter를 설정하라. 기본값은 ImageMagick으로 되어 있다. 그러나, 다른 거 가능하면 다른 걸 추천한다. 이미지매직의 패스가 시스템 패스에 설정되어 있지 않다면, $wgSVGConverterPath 에서 그 Path를 설정해줘야 한다.

$wgSVGConverter = 'ImageMagick';
$wgSVGConverterPath = "C:/Program Files/ImageMagick-6.3.2-Q16";

추가사항 +/-

http://www.mediawiki.org/wiki/Manual:%24wgSVGConverters 여기에 이런 내용이 있다.

윈도우 XP에서는 하나 더 설정해줘야 할 거다. 즉 " "로 기본 실행명령을 묶어줘야 할 거다:

$wgSVGConverters = array(
    'Inkscape' => '"$path/Inkscape/inkscape" -z -w $width -f $input -e $output',
);

원래 기본값으로는 다음과 같이 되어 있다:

array(
  'ImageMagick' => '$path/convert -background white -geometry $width $input $output',
  'sodipodi' => '$path/sodipodi -z -w $width -f $input -e $output',
  'inkscape' => '$path/inkscape -z -w $width -f $input -e $output',
  'batik' => 'java -Djava.awt.headless=true -jar $path/batik-rasterizer.jar -w $width -d $output $input',
  'rsvg' => '$path/rsvg -w$width -h$height $input $output',
);

무슨말인지 헷갈릴지 모르겠는데, 정리하면, 윈도우 XP 사용자는 LocalSettings.php에 다음을 추가하라는 소리다:

$wgSVGConverters = array(
    'Inkscape' => '"$path/Inkscape/inkscape" -z -w $width -f $input -e $output',
);

멀뚱이 설치한 환경에서 이해하면, 이것은 LocalSettings.php에 다음을 추가하라는 소리다:

$wgSVGConverters = array(
    'ImageMagick' => '"C:/Program Files/ImageMagick-6.3.2-Q16/convert" -background white -geometry $width $input $output',
  );

주의사항: 미디어위키 셋팅에서는 C:\라고 안 쓴다. C:/로 쓴다. 헷갈리면 에러난다.

설치 성공 +/-

멀뚱이가 그동안, 위에서 설명한 대로 했는데도, 설치가 되지 않았다. 즉 LocalSettings.php 파일만 수정하면, 대문 페이지가 뜨지 않고 멈추었다. 그런데, 드디어 성공했다. 윈도우 XP에 설치했고, Imagemagick을 설치한 사용자라면, 다음을 복사해서 LocalSettings.php 파일에 추가하면 된다. 여기서 중요한 것은 제일 첫줄의 $wgScriptPath = "/mediawiki"; 이 부분에 맞춰서 삽입, 추가해줘야 한다는 점이다.

http://jimyblogger.blogspot.com/2007/03/success-i-upload-svg-files-to-my.html

여기에 성공한 사진이 있다. 아래는 성공한 소스입력 내용이다.

## The URL base path to the directory containing the wiki;
## defaults for all runtime URL paths are based off of this.
$wgScriptPath       = "/mediawiki";

$wgFileExtensions[] = 'svg';
$wgAllowTitlesInSVG = true;

$wgSVGConverters = array(
    'ImageMagick' => '"C:/Program Files/ImageMagick-6.3.2-Q16/convert" -background white -geometry $width $input $output',
  );


$wgSVGConverter = 'ImageMagick';

## For more information on customizing the URLs please see:
## http://www.mediawiki.org/wiki/Manual:Short_URL

$wgEnableEmail      = true;
$wgEnableUserEmail  = true;

위의 성공에 기초해서 살펴보면, 리눅스 등에서 미디어위키를 설치한 경우에는 다음과 같이 하면 작동될 것으로 보인다. 안해봐서 모른다. 물론 Imagemagick을 설치한 경우로 가정한다.

## The URL base path to the directory containing the wiki;
## defaults for all runtime URL paths are based off of this.
$wgScriptPath       = "/mediawiki";

$wgFileExtensions[] = 'svg';
$wgAllowTitlesInSVG = true;

$wgSVGConverter = 'ImageMagick';

## For more information on customizing the URLs please see:
## http://www.mediawiki.org/wiki/Manual:Short_URL

$wgEnableEmail      = true;
$wgEnableUserEmail  = true;

바깥 고리 +/-

미디어위키에 인터위키 설정하는 방법 +/-

이 부분의 원문은 meta:도움말:미디어위키에 인터위키 설정하기입니다.

예제는 멀뚱이가 직접 실행한 것이다.

mysql 시작하기 +/-

mysql -u <mysql 관리자 계정> -p

그리고 나서 암호를 입력한다.

mysql> USE <미디어위키 데이타베이스 이름>

예제:

[jimy@dhcp-323-95323 ~]$ su -
Password:
[root@dhcp-323-95323 ~]# mysql -u root -p
Enter password:
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 45 to server version: 5.0.22

Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

mysql>
mysql> use wdb
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A

Database changed
mysql>

인터위키 테이블 보기 +/-

여기서 interwiki는 혹시 테이블 prefix를 설정한 경우에는 yourprefix_interwiki를 쓰라는 의미이다.

interwiki<tab><tab> 탭키를 두번 누른다.

mysql> interwiki (엔터키 치지말고 탭키를 연속 두 번 누르기)
interwiki            interwiki.iw_prefix
interwiki.iw_local   interwiki.iw_url
mysql> interwiki 

예제:

Database changed
mysql> mw_interwiki (엔터키 치지말고 탭키를 연속 두 번 누르기)
mw_interwiki            mw_interwiki.iw_prefix  mw_interwiki.iw_url
mw_interwiki.iw_local   mw_interwiki.iw_trans
mysql> mw_interwiki

주된 테이블은 'interwiki'이다.

이제 이 테이블의 내용들을 보자:

SELECT COUNT(*) FROM interwiki;

무엇이 있나 보자:

SELECT * FROM interwiki;

예제:

mysql> SELECT COUNT(*) FROM mw_interwiki;
+----------+
| COUNT(*) |
+----------+
|      179 |
+----------+
1 row in set (0.09 sec)

mysql> SELECT * FROM mw_interwiki;
+---------------------+-----------------------------------------------------------------------------------+----------+----------+
| iw_prefix           | iw_url                           | iw_local | iw_trans |
+---------------------+-----------------------------------------------------------------------------------+----------+----------+
| abbenormal          | http://www.ourpla.net/cgi-bin/pikie.cgi?$1                           |        0 |        0 |
| acadwiki            | http://xarch.tu-graz.ac.at/autocad/wiki/$1                           |        0 |        0 |
| acronym             | http://www.acronymfinder.com/af-query.asp?String=exact&Acronym=$1                 |        0 |        0 |
| advogato            | http://www.advogato.org/$1                           |        0 |        0 |
| aiwiki              | http://www.ifi.unizh.ch/ailab/aiwiki/aiw.cgi?$1                           |        0 |        0 |
| alife               | http://news.alife.org/wiki/index.php?$1                           |        0 |        0 |
| annotation          | http://bayle.stanford.edu/crit/nph-med.cgi/$1                           |        0 |        0 |
| annotationwiki      | http://www.seedwiki.com/page.cfm?wikiid=368&doc=$1                           |        0 |        0 |
| arxiv               | http://www.arxiv.org/abs/$1                           |        0 |        0 |
| aspienetwiki        | http://aspie.mela.de/Wiki/index.php?title=$1                           |        0 |        0 |
| bemi                | http://bemi.free.fr/vikio/index.php?$1                           |        0 |        0 |
| benefitswiki        | http://www.benefitslink.com/cgi-bin/wiki.cgi?$1                           |        0 |        0 |
| brasilwiki          | http://rio.ifi.unizh.ch/brasilienwiki/index.php/$1                           |        0 |        0 |
| bridgeswiki         | http://c2.com/w2/bridges/$1                           |        0 |        0 |
| c2find              | http://c2.com/cgi/wiki?FindPage&value=$1                           |        0 |        0 |
| cache               | http://www.google.com/search?q=cache:$1                           |        0 |        0 |
| ciscavate           | http://ciscavate.org/index.php/$1                           |        0 |        0 |
| cliki               | http://ww.telent.net/cliki/$1                           |        0 |        0 |
| cmwiki              | http://www.ourpla.net/cgi-bin/wiki.pl?$1                           |        0 |        0 |
| codersbase          | http://www.codersbase.com/$1                           |        0 |        0 |
| commons             | http://commons.wikimedia.org/wiki/$1                           |        0 |        0 |
| consciousness       | http://teadvus.inspiral.org/                           |        0 |        0 |
| corpknowpedia       | http://corpknowpedia.org/wiki/index.php/$1                           |        0 |        0 |
| creationmatters     | http://www.ourpla.net/cgi-bin/wiki.pl?$1                           |        0 |        0 |
| dejanews            | http://www.deja.com/=dnc/getdoc.xp?AN=$1                           |        0 |        0 |
| demokraatia         | http://wiki.demokraatia.ee/                           |        0 |        0 |
| dictionary          | http://www.dict.org/bin/Dict?Database=*&Form=Dict1&Strategy=*&Query=$1            |        0 |        0 |
| disinfopedia        | http://www.disinfopedia.org/wiki.phtml?title=$1                           |        0 |        0 |
| diveintoosx         | http://diveintoosx.org/$1                           |        0 |        0 |
| docbook             | http://docbook.org/wiki/moin.cgi/$1                           |        0 |        0 |
| dolphinwiki         | http://www.object-arts.com/wiki/html/Dolphin/$1                           |        0 |        0 |
| drumcorpswiki       | http://www.drumcorpswiki.com/index.php/$1                           |        0 |        0 |
| dwjwiki             | http://www.suberic.net/cgi-bin/dwj/wiki.cgi?$1                           |        0 |        0 |
| echei               | http://www.ikso.net/cgi-bin/wiki.pl?$1                           |        0 |        0 |
| ecxei               | http://www.ikso.net/cgi-bin/wiki.pl?$1                           |        0 |        0 |
| efnetceewiki        | http://purl.net/wiki/c/$1                           |        0 |        0 |
| efnetcppwiki        | http://purl.net/wiki/cpp/$1                           |        0 |        0 |
| efnetpythonwiki     | http://purl.net/wiki/python/$1                           |        0 |        0 |
| efnetxmlwiki        | http://purl.net/wiki/xml/$1                           |        0 |        0 |
| elibre              | http://enciclopedia.us.es/index.php/$1                           |        0 |        0 |
| eljwiki             | http://elj.sourceforge.net/phpwiki/index.php/$1                           |        0 |        0 |
| emacswiki           | http://www.emacswiki.org/cgi-bin/wiki.pl?$1                           |        0 |        0 |
| eokulturcentro      | http://esperanto.toulouse.free.fr/wakka.php?wiki=$1                           |        0 |        0 |
| evowiki             | http://www.evowiki.org/index.php/$1                           |        0 |        0 |
| eĉei               | http://www.ikso.net/cgi-bin/wiki.pl?$1                          |        0 |        0 |
| finalempire         | http://final-empire.sourceforge.net/cgi-bin/wiki.pl?$1                           |        0 |        0 |
| firstwiki           | http://firstwiki.org/index.php/$1                           |        0 |        0 |
| foldoc              | http://www.foldoc.org/foldoc/foldoc.cgi?$1                           |        0 |        0 |
| foxwiki             | http://fox.wikis.com/wc.dll?Wiki~$1                           |        0 |        0 |
| fr.be               | http://fr.wikinations.be/$1                           |        0 |        0 |
| fr.ca               | http://fr.ca.wikinations.org/$1                           |        0 |        0 |
| fr.fr               | http://fr.fr.wikinations.org/$1                           |        0 |        0 |
| fr.org              | http://fr.wikinations.org/$1                           |        0 |        0 |
| freebsdman          | http://www.FreeBSD.org/cgi/man.cgi?apropos=1&query=$1                           |        0 |        0 |
| gamewiki            | http://gamewiki.org/wiki/index.php/$1                           |        0 |        0 |
| gej                 | http://www.esperanto.de/cgi-bin/aktivikio/wiki.pl?$1                           |        0 |        0 |
| gentoo-wiki         | http://gentoo-wiki.com/$1                           |        0 |        0 |
| globalvoices        | http://cyber.law.harvard.edu/dyn/globalvoices/wiki/$1                           |        0 |        0 |
| gmailwiki           | http://www.gmailwiki.com/index.php/$1                           |        0 |        0 |
| google              | http://www.google.com/search?q=$1                           |        0 |        0 |
| googlegroups        | http://groups.google.com/groups?q=$1                           |        0 |        0 |
| gotamac             | http://www.got-a-mac.org/$1                           |        0 |        0 |
| greencheese         | http://www.greencheese.org/$1                           |        0 |        0 |
| hammondwiki         | http://www.dairiki.org/HammondWiki/index.php3?$1                           |        0 |        0 |
| haribeau            | http://wiki.haribeau.de/cgi-bin/wiki.pl?$1                           |        0 |        0 |
| herzkinderwiki      | http://www.herzkinderinfo.de/Mediawiki/index.php/$1                           |        0 |        0 |
| hewikisource        | http://he.wikisource.org/wiki/$1                           |        1 |        0 |
| hrwiki              | http://www.hrwiki.org/index.php/$1                           |        0 |        0 |
| iawiki              | http://www.IAwiki.net/$1                           |        0 |        0 |
| imdb                | http://us.imdb.com/Title?$1                           |        0 |        0 |
| infosecpedia        | http://www.infosecpedia.org/pedia/index.php/$1                           |        0 |        0 |
| jargonfile          | http://sunir.org/apps/meta.pl?wiki=JargonFile&redirect=$1                         |        0 |        0 |
| jefo                | http://www.esperanto-jeunes.org/vikio/index.php?$1                           |        0 |        0 |
| jiniwiki            | http://www.cdegroot.com/cgi-bin/jini?$1                           |        0 |        0 |
| jspwiki             | http://www.ecyrd.com/JSPWiki/Wiki.jsp?page=$1                           |        0 |        0 |
| kerimwiki           | http://wiki.oxus.net/$1                           |        0 |        0 |
| kmwiki              | http://www.voght.com/cgi-bin/pywiki?$1                           |        0 |        0 |
| knowhow             | http://www2.iro.umontreal.ca/~paquetse/cgi-bin/wiki.cgi?$1                        |        0 |        0 |
| ko                  | http://ko.wikipedia.org/wiki/$1                           |        1 |        0 |
| lanifexwiki         | http://opt.lanifex.com/cgi-bin/wiki.pl?$1                           |        0 |        0 |
| lasvegaswiki        | http://wiki.gmnow.com/index.php/$1                           |        0 |        0 |
| linuxwiki           | http://www.linuxwiki.de/$1                           |        0 |        0 |
| lojban              | http://www.lojban.org/tiki/tiki-index.php?page=$1                           |        0 |        0 |
| lqwiki              | http://wiki.linuxquestions.org/wiki/$1                           |        0 |        0 |
| lugkr               | http://lug-kr.sourceforge.net/cgi-bin/lugwiki.pl?$1                           |        0 |        0 |
| lutherwiki          | http://www.lutheranarchives.com/mw/index.php/$1                           |        0 |        0 |
| m                   | http://meta.wikipedia.org/wiki/$1                           |        1 |        0 |
| mathsongswiki       | http://SeedWiki.com/page.cfm?wikiid=237&doc=$1                           |        0 |        0 |
| mbtest              | http://www.usemod.com/cgi-bin/mbtest.pl?$1                           |        0 |        0 |
| meatball            | http://www.usemod.com/cgi-bin/mb.pl?$1                           |        0 |        0 |
| mediazilla          | http://bugzilla.wikipedia.org/$1                           |        1 |        0 |
| memoryalpha         | http://www.memory-alpha.org/en/index.php/$1                           |        0 |        0 |
| meta                | http://meta.wikipedia.org/wiki/$1                           |        1 |        0 |
| metaweb             | http://www.metaweb.com/wiki/wiki.phtml?title=$1                           |        0 |        0 |
| metawiki            | http://sunir.org/apps/meta.pl?$1                           |        0 |        0 |
| metawikipedia       | http://meta.wikimedia.org/wiki/$1                           |        0 |        0 |
| moinmoin            | http://purl.net/wiki/moin/$1                           |        0 |        0 |
| mozillawiki         | http://wiki.mozilla.org/index.php/$1                           |        0 |        0 |
| muweb               | http://www.dunstable.com/scripts/MuWebWeb?$1                           |        0 |        0 |
| netvillage          | http://www.netbros.com/?$1                           |        0 |        0 |
| oeis                | http://www.research.att.com/cgi-bin/access.cgi/as/njas/sequences/eisA.cgi?Anum=$1 |        0 |        0 |
| openfacts           | http://openfacts.berlios.de/index.phtml?title=$1                           |        0 |        0 |
| openwiki            | http://openwiki.com/?$1                           |        0 |        0 |
| opera7wiki          | http://nontroppo.org/wiki/$1                           |        0 |        0 |
| orgpatterns         | http://www.bell-labs.com/cgi-user/OrgPatterns/OrgPatterns?$1                      |        0 |        0 |
| osi reference model | http://wiki.tigma.ee/                           |        0 |        0 |
| pangalacticorg      | http://www.pangalactic.org/Wiki/$1                           |        0 |        0 |
| patwiki             | http://gauss.ffii.org/$1                           |        0 |        0 |
| personaltelco       | http://www.personaltelco.net/index.cgi/$1                           |        0 |        0 |
| phpwiki             | http://phpwiki.sourceforge.net/phpwiki/index.php?$1                           |        0 |        0 |
| pikie               | http://pikie.darktech.org/cgi/pikie?$1                           |        0 |        0 |
| pmeg                | http://www.bertilow.com/pmeg/$1.php                           |        0 |        0 |
| ppr                 | http://c2.com/cgi/wiki?$1                           |        0 |        0 |
| purlnet             | http://purl.oclc.org/NET/$1                           |        0 |        0 |
| pythoninfo          | http://www.python.org/cgi-bin/moinmoin/$1                           |        0 |        0 |
| pythonwiki          | http://www.pythonwiki.de/$1                           |        0 |        0 |
| pywiki              | http://www.voght.com/cgi-bin/pywiki?$1                           |        0 |        0 |
| raec                | http://www.raec.clacso.edu.ar:8080/raec/Members/raecpedia/$1                      |        0 |        0 |
| revo                | http://purl.org/NET/voko/revo/art/$1.html                           |        0 |        0 |
| rfc                 | http://www.rfc-editor.org/rfc/rfc$1.txt                           |        0 |        0 |
| s23wiki             | http://is-root.de/wiki/index.php/$1                           |        0 |        0 |
| scoutpedia          | http://www.scoutpedia.info/index.php/$1                           |        0 |        0 |
| seapig              | http://www.seapig.org/$1                           |        0 |        0 |
| seattlewiki         | http://seattlewiki.org/wiki/$1                           |        0 |        0 |
| seattlewireless     | http://seattlewireless.net/?$1                           |        0 |        0 |
| seeds               | http://www.IslandSeeds.org/wiki/$1                           |        0 |        0 |
| senseislibrary      | http://senseis.xmp.net/?$1                           |        0 |        0 |
| shakti              | http://cgi.algonet.se/htbin/cgiwrap/pgd/ShaktiWiki/$1                           |        0 |        0 |
| slashdot            | http://slashdot.org/article.pl?sid=$1                           |        0 |        0 |
| smikipedia          | http://www.smikipedia.org/$1                           |        0 |        0 |
| sockwiki            | http://wiki.socklabs.com/$1                           |        0 |        0 |
| sourceforge         | http://sourceforge.net/$1                           |        0 |        0 |
| squeak              | http://minnow.cc.gatech.edu/squeak/$1                           |        0 |        0 |
| strikiwiki          | http://ch.twi.tudelft.nl/~mostert/striki/teststriki.pl?$1                         |        0 |        0 |
| susning             | http://www.susning.nu/$1                           |        0 |        0 |
| svgwiki             | http://www.protocol7.com/svg-wiki/default.asp?$1                           |        0 |        0 |
| tavi                | http://tavi.sourceforge.net/$1                           |        0 |        0 |
| tejo                | http://www.tejo.org/vikio/$1                           |        0 |        0 |
| terrorwiki          | http://www.liberalsagainstterrorism.com/wiki/index.php/$1                         |        0 |        0 |
| theopedia           | http://www.theopedia.com/$1                           |        0 |        0 |
| tmbw                | http://www.tmbw.net/wiki/index.php/$1                           |        0 |        0 |
| tmnet               | http://www.technomanifestos.net/?$1                           |        0 |        0 |
| tmwiki              | http://www.EasyTopicMaps.com/?page=$1                           |        0 |        0 |
| turismo             | http://www.tejo.org/turismo/$1                           |        0 |        0 |
| twiki               | http://twiki.org/cgi-bin/view/$1                           |        0 |        0 |
| twistedwiki         | http://purl.net/wiki/twisted/$1                           |        0 |        0 |
| uea                 | http://www.tejo.org/uea/$1                           |        0 |        0 |
| unreal              | http://wiki.beyondunreal.com/wiki/$1                           |        0 |        0 |
| ursine              | http://ursine.ca/$1                           |        0 |        0 |
| usej                | http://www.tejo.org/usej/$1                           |        0 |        0 |
| usemod              | http://www.usemod.com/cgi-bin/wiki.pl?$1                           |        0 |        0 |
| visualworks         | http://wiki.cs.uiuc.edu/VisualWorks/$1                           |        0 |        0 |
| w                   | http://www.wikipedia.org/wiki/$1                           |        1 |        0 |
| warpedview          | http://www.warpedview.com/index.php/$1                           |        0 |        0 |
| webdevwikinl        | http://www.promo-it.nl/WebDevWiki/index.php?page=$1                           |        0 |        0 |
| webisodes           | http://www.webisodes.org/$1                           |        0 |        0 |
| webseitzwiki        | http://webseitz.fluxent.com/wiki/$1                           |        0 |        0 |
| why                 | http://clublet.com/c/c/why?$1                           |        0 |        0 |
| wiki                | http://c2.com/cgi/wiki?$1                           |        0 |        0 |
| wikia               | http://www.wikia.com/wiki/index.php/$1                           |        0 |        0 |
| wikibooks           | http://en.wikibooks.org/wiki/$1                           |        1 |        0 |
| wikicities          | http://www.wikicities.com/index.php/$1                           |        0 |        0 |
| wikif1              | http://www.wikif1.org/$1                           |        0 |        0 |
| wikimedia           | http://wikimediafoundation.org/wiki/$1                           |        0 |        0 |
| wikinews            | http://en.wikinews.org/wiki/$1                           |        0 |        0 |
| wikinfo             | http://www.wikinfo.org/wiki.php?title=$1                           |        0 |        0 |
| wikiquote           | http://en.wikiquote.org/wiki/$1                           |        1 |        0 |
| wikisource          | http://sources.wikipedia.org/wiki/$1                           |        1 |        0 |
| wikispecies         | http://species.wikipedia.org/wiki/$1                           |        1 |        0 |
| wikitravel          | http://wikitravel.org/en/$1                           |        0 |        0 |
| wikiworld           | http://WikiWorld.com/wiki/index.php/$1                           |        0 |        0 |
| wikt                | http://en.wiktionary.org/wiki/$1                           |        1 |        0 |
| wiktionary          | http://en.wiktionary.org/wiki/$1                           |        1 |        0 |
| wlug                | http://www.wlug.org.nz/$1                           |        0 |        0 |
| wlwiki              | http://winslowslair.supremepixels.net/wiki/index.php/$1                           |        0 |        0 |
| ypsieyeball         | http://sknkwrks.dyndns.org:1957/writewiki/wiki.pl?$1                           |        0 |        0 |
| zu                  | http://zu.wikipedia.org/wiki/$1                           |        1 |        0 |
| zwiki               | http://www.zwiki.org/$1                           |        0 |        0 |
| zzz wiki            | http://wiki.zzz.ee/                           |        0 |        0 |
+---------------------+-----------------------------------------------------------------------------------+----------+----------+
179 rows in set (0.05 sec)
mysql>


SQL 테이블 내용에 대해 보다 자세한 것은 다음을 참조: http://dev.mysql.com/doc/refman/5.1/en/retrieving-data.html

인터위키 테이블 편집하기 +/-

나만의 인터위키 추가하기 +/-

매우 간단하다. 그냥 통째로 복사해다가 붙여넣기 한다.

가령, bugzilla-interwiki.sql 파일에 아래와 같은 내용이 들어있다.

REPLACE INTO interwiki (iw_prefix,iw_url,iw_local) VALUES
('kdebug','http://bugs.kde.org/show_bug.cgi?id=$1',0),
('mozbug','http://bugzilla.mozilla.org/show_bug.cgi?$1',0),
('gentoobug','http://bugs.gentoo.org/show_bug.cgi?$1',0);

그러면 위 내용을 그대로 블럭으로 잡아 복사한다.

그리고 나서

mysql>

이 상태에서 마우스 오른쪽 버튼을 누르고, 붙여넣기 한다. 그럼 원하는 인터위키가 추가된다.

예제: 위의 interwiki를 mw_interwiki 고쳤다는 것만 주의하면 된다.

mysql> REPLACE INTO mw_interwiki (iw_prefix,iw_url,iw_local) VALUES
    -> ('kdebug','http://bugs.kde.org/show_bug.cgi?id=$1',0),
    -> ('mozbug','http://bugzilla.mozilla.org/show_bug.cgi?$1',0),
    -> ('gentoobug','http://bugs.gentoo.org/show_bug.cgi?$1',0);
Query OK, 3 rows affected (0.28 sec)
Records: 3  Duplicates: 0  Warnings: 0

mysql>

아래와 같은 방법도 있다는데, 어렵다. 비추천이다.

mysql -u <username> -p <nameofyourdatabase> < <filename.sql>

mysql -u wikiuser -p wikidb < bugzilla-interwiki.sql

This does not report success when it works. If you want to double check, you have to check the interwiki table.

위키백과의 인터위키 목록을 사용하기 +/-

미디어위키 디렉토리에 보면, maintanance/wikipedia-interwiki.sql 파일이 있는데, 여기에 위키백과가 현재 사용하고 있는 인터위키 목록이 있다.

대략 일부만을 보면 다음과 같은 내용들이 있다:

REPLACE INTO interwiki (iw_prefix,iw_url,iw_local) VALUES
('w','http://www.wikipedia.org/wiki/$1',1),
('m','http://meta.wikipedia.org/wiki/$1',1),
('meta','http://meta.wikipedia.org/wiki/$1',1),
('zu','http://zu.wikipedia.org/wiki/$1',1);

뭐, 이것도 역시 위에서 말한 방법으로 그냥 복사해서 붙여넣으면 자동으로 다 실행된다.

그러나 더 간단한 방법을 소개한다.

mysql> \. /var/www/localhost/mediawiki-1.3.0/maintenance/wikipedia-interwiki.sql
Query OK, 155 rows affected (0.24 sec)
Records: 155  Duplicates: 0  Warnings: 0

mysql>  

예제:

mysql> \. /var/www/html/homewiki/maintenance/wikipedia-interwiki.sql
Query OK, 155 rows affected (0.24 sec)
Records: 155  Duplicates: 0  Warnings: 0

mysql>  

그러나, 그 파일 내용안에interwiki 앞에 프리픽스를 달아서 고쳐준 다음에 저 명령을 실행해야 한다.

wikipedia-interwiki.sql의 내용은 아래와 같다. 그거 맨 위에 interwiki만 앞에 접두어 제대로 달아주면 된다.

예를들어, ko:user:멀뚱이의 프리픽스는 위에서 본 바와 같이 mw_이다. 따라서

REPLACE INTO /*$wgDBprefix*/interwiki (iw_prefix,iw_url,iw_local) VALUES

이것을

 
REPLACE INTO /*$wgDBprefix*/mw_interwiki (iw_prefix,iw_url,iw_local) VALUES

이것으로 고쳐주면 된다. mw_ 라는 프리픽스만 추가해 주었다.

wikipedia-interwiki.sql의 내용:

-- For convenience, here are the *in-project* interwiki prefixes
-- for Wikipedia.

REPLACE INTO /*$wgDBprefix*/interwiki (iw_prefix,iw_url,iw_local) VALUES
('q','http://en.wikiquote.org/wiki/$1',1),
('b','http://en.wikibooks.org/wiki/$1',1),
('n','http://en.wikinews.org/wiki/$1',1),
('aa','http://aa.wikipedia.org/wiki/$1',1),
('ab','http://ab.wikipedia.org/wiki/$1',1),
('af','http://af.wikipedia.org/wiki/$1',1),
('ak','http://ak.wikipedia.org/wiki/$1',1),
('als','http://als.wikipedia.org/wiki/$1',1),
('am','http://am.wikipedia.org/wiki/$1',1),
('an','http://an.wikipedia.org/wiki/$1',1),
('ang','http://ang.wikipedia.org/wiki/$1',1),
('ar','http://ar.wikipedia.org/wiki/$1',1),
('arc','http://arc.wikipedia.org/wiki/$1',1),
('as','http://as.wikipedia.org/wiki/$1',1),
('ast','http://ast.wikipedia.org/wiki/$1',1),
('av','http://av.wikipedia.org/wiki/$1',1),
('ay','http://ay.wikipedia.org/wiki/$1',1),

뭐, 간단한 편집기로 위의 한 줄에 interwiki 만 mw_interwiki로 고쳐주고서, 그냥 통째로 복사해서

mysql> 여기서 마우스 오른쪽 클릭, 붙여넣기 해버리면 끝난다.

인터위키 누르면 새로운 창에서 열리게 하는 방법 +/-

무슨 말인지 몰라서 번역 안했다.

  1. Edit the Interwiki-table, the interwiki-link
  2. Add
" TARGET="_blank

with the quotes just like that at the end of the interwiki-link.

It should look like this:

http://de.wikipedia.org/wiki/$1" TARGET="_blank

see also: Opening external links in a new window

mysql 사용법의 추가 도움말 +/-

Mysql Help

위에 설명한 방법보다 phpMyAdmin 를 사용하기를 더 권장한다 +/-

영어판에는 그렇게 써놨는데, phpMyAdmin을 설치하는 거 의외로 까다롭다. 그러나 일단 phpMyAdmin가 설치되었다면 더 간단하다고 설명하고 있다. 번역 안했다.

http://www.stanton-finley.net/fedora_core_5_installation_notes.html#phpMyAdmin

ko:user:멀뚱이는 페도라 코어 5를 쓰는데, 여기에 phpMyAdmin을 설치하는 법 굉장히 쉽게 써 있다. 그대로 복사해다가 붙여넣기만 하면 된다. 아파치 웹서버네 기타 필요한 것도 매우 쉽게 설명해 놓았다.

If your server uses the software phpMyAdmin, you can simply select the database that uses the wiki (remember that your actual wikidb and wikiuser name were specified by you, and are stored in LocalSettings.php ), then select the table "interwiki" from the sidebar. To use the graphical interface, just select "browse" at the top and then you can opt to "insert new row" (at the bottom of the table) following the pattern established for the other items ("$1" is what will be replaced with whatever follows the interwiki prefix in your code; it will usually be at the end of the URL for the site for which you want to make a shortcut). Then click go or opt to insert another record until you are done.

미디어위키 commons 설정 가능? +/-

이 부분의 원문은 위키백과:사랑방/2007년 2월#미디어위키 commons 설정 가능?입니다.

위키백과에 위키미디어 공용(Wikimedia Commons)이 연결되어 있지요. 마찬가지로 제가 설치한 미디어위키를 위키미디어 공용이나 위키백과와 연결시켜서 그림 파일을 사용할 수 있게 하는 방법이 없나요? ― 사용자:Yes0song/nametag 2007년 2월 3일 (토) 14:47 (KST)

아마 아직 안 될 겁니다. InstantCommons라는 것이 제안되어 있어요. --Puzzlet Chung 2007년 2월 3일 (일) 15:14 (KST)
그럼 언사이클로피디어 쪽은 어떻게 한 걸까요? 자체적으로 Uncyclomedia Commons(UnCommons)를 구축했는데요. ― 사용자:Yes0song/nametag 2007년 2월 3일 (일) 22:52 (KST)
UnCommons에서 UnCy에 대해서만 문을 열어줬다고 생각한다면 말 되는 비유가 아닐까요. 위키공용은 아마 위키미디어재단 사이트에만 문을 열어줬겠죠. --Kjoonlee 2007년 2월 3일 (일) 23:22 (KST)
그렇다면 위키미디어 공용을 쓰는 건 안 되더라도, 특정 위키끼리 연동시키는 건 가능하다는 말씀? ― 사용자:Yes0song/nametag 2007년 2월 4일 (일) 09:03 (KST)
특정 위키들을 한 자료 위키와 연동시키는 기능을 pool 기능이라고 부르나봅니다. mw:Manual:Wiki_family#Scenario 3: Multiple wikis sharing common resources --Kjoonlee 2007년 2월 4일 (일) 11:08 (KST)
실제 구현은 제가 생각했던 것과는 많이 다른 것 같네요. InstantCommons에 “현재의 연동 기능은 같은 파일시스템 내에서만 작동한다”라고 적혀있습니다. --Kjoonlee 2007년 2월 4일 (일) 11:20 (KST)

미디어위키에 커먼스 사진 쓰기가 불가능한데, 앞으로는 가능하게 하느니 마느니 하고 있습니다만, 전 그 이유를 이렇게 봅니다. 만약 커먼스를 아무나에게 허용하면, 위키피디아 자료를 몽창 복사해다가 자신의 사이트에서 마음대로 편집하고 뭐할 수 있겠죠. 즉, 기존 위키피디아 서버들을 무력화할 수 있습니다. 적극적 회원이 좀 되는 이념단체나 뭐 기타등등...이런 곳에서 말이죠. 그래서 공개를 못하는게 아닐까요? 그냥 그런 생각도 드는군요...^^ -- 멀뚱이 (토론기여카운터로그e-Mail) 2007년 2월 24일 (일) 16:37 (KST)

그렇지 않습니다. 만약 그런 의도였다면 GFDL을 사용하지도 않았을 것이고요. 이미 위키백과를 그대로 박사해다가 서비스하는 곳이 여러 군데 있습니다만(위키백과:사랑방/2007년 1월#위키백과의 내용을 보여주는 사이트가 있는데요,, 위키백과:사랑방/2007년 1월#goo에서도 위키백과의 내용을 보여주네요.) 그렇다고 위키백과가 무력화되지는 않습니다. 기술적으로 서비스할 준비가 덜 되었거나 트래픽이 많아서 그렇다면 또 몰라도요. --Klutzy 2007년 2월 24일 (일) 16:43 (KST)

미디어위키 소프트웨어에 대한 사용법 불만 등 게시판 +/-

mw:Project:Support_desk

썸네일 사용시 에러발생 +/-

미디어위키를 처음에 설치하고서 썸네일 이미지 사용시, 즉 [[그림:acb.jpg|thumb|400px|abc 그림설명]] 처럼 thumb 사용시, 다음과 같은 에러가 날 수 있다:

Incomplete GD library configuration: missing function imagecreatefromjpeg

해결책 +/-

$wgEnableUploads       = true;
$wgUseImageResize      = true;
$wgUseImageMagick = true;
#$wgImageMagickConvertCommand = "/usr/bin/convert";
$wgImageMagickConvertCommand = "C:/Program Files/ImageMagick-6.3.2-Q16/convert";

참고자료 +/-

http://www.linuxquestions.org/questions/showthread.php?t=529292

ParserFunctions 설치 +/-

이 부분의 원문은 meta:ParserFunctions#Installation입니다.
ParserFunctions의 현재 버전은 php5 를 사용한다.

아래의 두 파일을 다운받는다. 미디어위키 디렉토리 아래에 extensions 디렉토리에 ParserFunctions라는 이름으로 새 디렉토리를 만든다.

php5를 사용하지 않는다면, 다음의 구버전을 다운받는다:

그리고 나서 mw:LocalSettings.php 파일 맨 아래에 다음을 추가한다:

require_once( "$IP/extensions/ParserFunctions/ParserFunctions.php" );

You can also browse the code tree here:


주의사항:

require_once( "includes/DefaultSettings.php" );
require_once( "{$IP}/extensions/Cite/Cite.php" );
require_once( "$IP/extensions/ParserFunctions/ParserFunctions.php" );

이렇게 require_once( "includes/DefaultSettings.php" ); 아래에 바로 붙어서 위치해야 에러가 안난다. 그냥 맨 하단에 한 줄 추가하니까 에러가 난다.

효과 +/-

뭐, 뭐가 좋은지는 모르겠고, 이 문서 위에 새 글 쓰기...이걸 그대로 복사해서 내 미디어위키에서 작동하게 하려면 ParserFunctions를 설치해야 작동이 된다.

주석 기능 설치하기 +/-

이 부분의 원문은 meta:Cite/Cite.php입니다.

다운로드 +/-

아래 영어는 모르겠고, 세 파일을 다운받는다.
Required by Cite.php or else you'll get a pretty blank page!

Warning! Cite.i18n.php contains certain characters that will be converted to ? when you click on the link above. To prevent this, right-click and select save link as....

버전이 낮은 경우(version 1.9 or older) 다음의 파일을 다운받길 바란다. PHP버전이 낮아 하위 미디어위키를 쓰는 경우 이 파일을 다운받아야 한다.

요구사항 +/-

Mediawiki 1.6x 버전 이상에서 가능하다.

설치하기 +/-

  1. extensions/ 디렉토리의 아래에 Cite 디렉토리를 새로 만들어서, 두 파일을 여기다가 복사해라.
  2. LocalSettings.php에 다음 한 줄을 추가하라:
require_once( "{$IP}/extensions/Cite/Cite.php" );

Note: The require_once() line needs to be placed under the call to include DefaultSettings.php. 뭐라는 소리인지 모르겠다.

주의사항:

require_once( "includes/DefaultSettings.php" );
require_once( "{$IP}/extensions/Cite/Cite.php" );
require_once( "$IP/extensions/ParserFunctions/ParserFunctions.php" );

이렇게 require_once( "includes/DefaultSettings.php" ); 아래에 바로 붙어서 위치해야 에러가 안난다. 그냥 맨 하단에 한 줄 추가하니까 에러가 난다.


추가 안내사항: Mediawiki2.0을 사용중이라면 Cite 다운로드 페이지에서 2.0선택 후 다운로드 받으시고 require_once구문을 제일 하단에 입력하셔도 됩니다.

주석 사용법 +/-

생략. 이거 되게 쉽다. 멀뚱이가 자주 쓴다.

미디어위키 불만 피드백 +/-

http://www.mediawiki.org/wiki/Project:Support_desk#Somethig_bad...mediawiki

  • 1. 너무 느리다. module 방식을 쓰는데, fastcgi 가 빠르다고 하는데...설치법 모른다...ㅜㅜ
  • 2. Instant Commons...왜 아직도 무소식일까? 커먼스의 사진을 쓰고 싶다.
  • 3. SVG 업로드가 안된다...how?

미디어위키를 왜 개인용으로 쓰는가? +/-

간단하다. 개인용은 저작권법 적용이 없다. 기타 모든 귀찮은 법령이 다 적용없다. 한국법? 미국법? 다 적용없다. 따라서, 막펌질도 되고, 이게 모두 데이타베이스화가 가능하다. 필요한 것은 인터위키로 기존의 주요 위키백과들의 자료가 다 연동된다. 문제는, 커먼스 사진인데, 그거 아직도 무소식이라 좀 그렇지만, 언젠가는 지원될 거고...따라서...막강한 개인용 데이타베이스가 구축된다. 뭐, 그걸 언제 다 구축하겠냐고 하나, 그냥 평소 조금씩 필요한 메모나 펌질을 하면 된다. 그게 다 링크가 되는 거고, 집약이 된다. 정보가 집약되면, 상당히 유용해진다. 즉 퍼블리쉬된 위키백과는 법령이 까다롭지만, 개인용은 모든 법령이 다 적용되지 않는다. 따라서, 기존 위키백과 100만 항목에, 내 개인 정보를 합치고, 막펌질을 합치고, 프라이버시 관련 정보들을 합치고 뭐하고 하면...상당히 강력해진다.

인터위키의 경우에, 현재는 :ko:아무개 라고 해야 한국어 위키백과에 연결되고 :en:abc 라고 해야 영어 위키백과에 연결되는데, 그걸 다 없애고 기본값으로 한국어 위키백과에 연결되고 영어 위키백과에 연결되면 더 강력할 거다. 물론 내 백과사전 항목의 내부링크 문서가 존재하면, 그게 우선 적용되면 될 거고...아니면, 내부링크에 오히려 :my:아무개 라고 해야 링크가 되면 좋겠다.

즉, 영어판+한국어판+커먼스 사진, 동영상+알파...이 알파가 바로 개인용이지...자기 필요에 맞게 자기가 꾸민...그런 특화된 부분이지...기존에 세 서비스는 그냥 "연동 지원"만 되는 거고...

다른 위키엔진이 있는데, 왜 하필 미디어위키인가? 간단하다. 다른 위키엔진에 연동할 100만 항목 백과사전이 있나? 연동할 수십만 파일이 올라와 있는 커먼스가 있나? 없다. 연동할 "대량정보"가 없는데, 그 엔진이 작고 빠른다 한들 쓸 이유가 없지...혼자 놀면 뭐하나? "연동"이 핵심이지...

그런데, 아직 미디어위키를 윈도우 XP에 설치해서 쓰기엔...너무 느린게 흠인 것 같다. 특히 커먼스나 기존 위키백과에 저장된 사진들 사용이 안되는 건 치명적이고, 그리고, 외부 사진링크 a href였나? 뭐, 그 태그사용이 왜 안되는지 모르겠다. 되게 편할텐데...

여러 위키백과를 구축해서 미디어 파일 자료를 공동으로 사용하기 +/-

이 부분의 원문은 mw:Manual:Wiki family입니다.

여러 언어 버전으로 위키를 만들었을 경우, 미디어 파일 자료들을 상호간에 공동으로 사용할 수 있다.

예제:

  • en.yourwiki.org - english language
  • fr.yourwiki.org - french language
  • de.yourwiki.org - german language
  • pool.yourwiki.org - Commons와 같이 공동으로 쓰는 미디어 파일이 저장된 곳이다.

설치 +/-

파일 시스템에서 각각의 위키를 설치할 폴더를 새로 만든다. 위에 언급한 영어, 프랑스어, 독일어, Commons의 모든 위키를 설치한다.

설정 +/-

인터위키 +/-

Now you have to set Interwikilinks between all wikis, by editing their MySQL-Databases

  • Table Interwiki
    • iw_prefix - enter the language-code of the wikis, "de" for german, "en" for english, "fr" for france and "pool" for the mediapoolwiki
    • iw_url - this is the place for the complete URL to the wikis, e.g. "http://de.yourwiki.org/index.php/$1" for the german wiki (don't forget the "$1" !!!).

Now you can link an article to the same in another languages. Adding [[de:Hauptseite]] on your english Main_Page will create a link "Deutsch" (under the Navigation bar) which leads to the Main_Page of the german wiki (Hauptseite). For further information visit Help:Interwiki linking

파일 업로드 +/-

공동으로 사용할 pool 위키의 "images" 폴더가 쓰기가능하게 권한설정이 되어 있어야만 한다.

각 언어별 위키의 "Upload file" 링크를 다음과 같이 수정한다. 각 언어별 위키의 "LocalSettings.php" 파일에 다음 명령을 추가한다:

$wgUploadNavigationUrl = 'http://pool.yourwiki.org/index.php/Special:Upload';

공용 파일 사용 +/-

각 언어별 위키에서 poolwiki의 파일들을 사용하기 위해서, 각 언어별 위키의 "LocalSettings.php" 파일에 다음 명령들을 추가하라:

$wgUseSharedUploads = true;
$wgSharedUploadPath = 'http://pool.yourwiki.org/images';
$wgSharedUploadDirectory = '/(LOCALPATH)/POOL-FOLDER/images/';
$wgHashedSharedUploadDirectory = true;

이제, 각 언어별 위키에서 [[Image:MyLogo.png]] 라고 입력하면, poolwiki의 사진을 자동으로 읽어 올 것이다.

그림 설명 +/-

In each languagewiki, open (as an admin) the message MediaWiki:Sharedupload.

Change the text to something like:

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

[[:pool:Image:{{PAGENAME}}|description there]]. 

( And note the : at the beginning, if not, it would be parsed as another language (at least in 19alpha) )

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

$wgFetchCommonsDescriptions = true;
$wgSharedUploadDBname = 'pool';  # DB-Name of PoolWiki
$wgSharedUploadDBprefix = 'wiki_'; # Table name prefix for PoolWiki
$wgRepositoryBaseUrl = "http://pool.yourwiki.org/index.php/Image:"; 

Shared ExtensionSettings.php file +/-

If you have multiple wikis, you may be interested in sharing similar settings across them all. Here is how to do that.

  • Step 1
    Create a file called ExtensionSettings.php with the following contents, and place it anywhere outside of your wikis. (it can be anywhere you want, it's just easier to think of it as a global file if it's not in any single wiki directory.)
<?php
### Add globalized Extension settings below

?>
  • Step 2
    Edit the LocalSettings.php file of each wiki that you want to use the shared settings, and add the following.
require_once( "/absolute/path/to/ExtensionSettings.php" );
  • Step 3
    Now just add all the settings that you would like to be the same across all your wikis. Here are some examples of what to include.
    • References to your various extensions
    • Your database user name and password
    • Even your database table/prefix information can be included with a special technique
    • Really, almost everything that you currently customize in your LocalSettings.php file

미디어위키에 Commons 사진 사용하기 +/-

mw:InstantCommons, 현재는 가능합니다.

미디어위키에서 봇 돌리기 +/-

이에 대한 정보를 모을 생각입니다.

meta:Pywikipedia bot on non-Wikimedia projects 여기에 설명이 나와 있습니다. 아래에 번역하여 게재합니다.

나만의 미디어위키에서 봇 사용하기 +/-

If you need more help on setting up your pywikipediabot you can come for help on #pywikipediabot @ freenode server.

만약 당신이 당신만의 파이위키피디아봇을 셋업하기 위해 더 많은 도움이 필요하다면, 프리노드 IRC 서버의 #pywikipediabot 채널에서 채팅을 해 보아라.

The pywikipedia bot may be used to do all kind of things that are important for the maintenance of a MediaWiki project. When this software is to be used outside of the Wikimedia projects, some configuration needs to be done.

파이위키피디아봇은 미디어위키 프로젝트의 유지보수를 위해 중요한 모든 일들을 처리할 수 있다. 위키피디아 프로젝트 이외에서 이 봇을 사용하려면, 컨피규레이션을 좀 설정해줘야 한다.

Some non-Wikimedia projects, or families, are already supported; which is in the families folder [2]in which you downloaded. Using the existing files as examples, it should be easy to adapt the bot to your own project. (Simply modify the existing files, or create a new file in a notebook.txt file, saving the file in the families folder, with a name such as mediawiki_family.py)

몇몇의 논위키피디아 프로젝트, 또는 패밀리들은 이미 봇이 지원되고 있다. 이 패밀리들에 대한 폴더는 여기에서 다운로드할 수 있다. 여기에 존재하는 파일들을 이용하면, 당신만의 프로젝트를 위한 봇 설정을 쉽게 할 수 있을 것이다. (간단하게, 존재하는 파일들을 약간 수정만 하거나, notebook.txt에 새 파일을 만들어라. 그리고 패밀리 폴더에 저장하라. mediawiki_family.py 이런식의 이름으로 설정하면 된다.)

예제: 모질라 위키 +/-

The Mozilla Foundation's wiki, wiki.mozilla.org, is a very simple example because it is only available in one language.

This is the contents of families/mozilla_family.py. Hints for you to write your own family specification are underlined.

모질라 재단의 위키이다. 주소는 wiki.mozilla.org이다. 이것은 오직 하나의 언어만을 사용한다. 그래서 간단하다. 한가지 언어만 지원하는 미디어위키는 이것을 고쳐서 쓰면 쉽다. 미디어위키 설치 디렉토리내에서, families/mozilla_family.py 여기에 있다. 밑줄그은 부분이 도움이 될 것이다.

 # -*- coding: utf-8  -*-
 
 import family
 
 # The official Mozilla Wiki. #여기에 프로젝트의 요약 설명을 하라.
 
 class Family(family.Family):
 
     def __init__(self):
         family.Family.__init__(self)
         self.name = 'mozilla' #패밀리 네임을 설정하라; 이것은 파일명과 같아야만 한다.
                      #파일명이 families/mozilla_family.py 이므로 mozilla라고 설정되었다.
         self.langs = {
             'en': 'wiki.mozilla.org', #여기에서 호스트네임을 설정하라.
         }
         self.namespaces[4] = {
             '_default': u'MozillaWiki', #여기에서 프로젝트 네임스페이스를 설정하라. 다른
         }                               #네임스페이스들은 MediaWiki 을 기본값으로 한다.
 
         self.namespaces[5] = {
             '_default': u'MozillaWiki talk',
         }
 
     def version(self, code):
         return "1.4.2"  #미디어위키의 버전이다. 대부분 별로 중요하지 않다.
 
     def path(self, code):
         return '/index.php' #index.php의 경로를 설정하라.

나만의 미디어위키에서 봇 사용 사례 +/-

(작성자: 최상일 sichoi@mbc.co.kr)

이원룡님의 도움으로 나만의 위키에서 봇 사용에 성공했습니다. 사례를 올려봅니다.

나의 미디어위키가 서버에 구축되었다고 하고, 그 위키 안에서 봇을 돌리는 것입니다.

봇을 돌리기 위한 준비는 이원룡님의 글을 참조하십시오. 저는 윈도XP에서 한글문제가 해결이 안돼 결국 리눅스(우분투 7.10)를 설치하여 해결했습니다. 이원룡님 말씀대로, 한글을 써야 한다면 저 역시 우분투 사용을 추천합니다.

우분투 설치 후(주의: 설치시 언어는 한글, 키보드는 맨 위에 있는 Korea, Republic of 를 선택해야 합니다. 그 아래 Korea, Republic of. 102/104 key Compatible을 선택하면 한글이 안됩니다. 추기: 우분투 8.04 에서는 이렇게 해도 한글이 안되는군요. 한글을 쓰려면 아직 7.10을 써야 합니다), 인터넷이 작동하는 것을 확인한 후(환경에 따라서는 인터넷이 안되는 경우도 있음. 회사 컴에서 처음에는 되다가 안되어 다시 깔고 몇번 부팅하니 됩니다), Python 프로그램을 깔아줍니다.(이 과정도 이원룡님 글 참조. 우분투 터미날창에서 글자 몇개 입력하면 됨.)

저는 동일하게 잘못 입력된 다량의 페이지를 봇이 일괄 수정하도록 하였습니다. 제 위키사이트의 이름을 folkwiki라 하고 여기서 돌리는 봇의 계정을 uribot이라고 하여 설명합니다. Python이 깔리면 우분투의 사용자 폴더에 pywikipedia 폴더가 생성됩니다.

먼저 Pywikipedia 폴더로 들어가 user-config.py 파일을 만듭니다. 우분투 터미널창을 열고 gedit user-config.py 엔터 하면 작성이 시작됩니다. 우분투의 프로그램>보조프로그램>텍스트편집기(gedit) 열어서 작성해도 됩니다. 자신의 위키를 family(wikipedia가 아닌 미디어위키 사이트)로 등록시키는 것이 핵심입니다. 파일 내용은 다음과 같이 합니다

mylang='ko'
family='folkwiki'
usernames['folkwiki']['ko']='uribot'

다음은 pywikipedia 하위 폴더인 families 폴더 안에 자신의 family 파일을 만들어줍니다. gedit로 위의 모질라 패밀리 파일을 수정하여 folkwiki_family.py 이름으로 저장하면 됩니다.

# -*- coding: utf-8  -*-
 
import family
 
# The official Mozilla Wiki. #프로젝트 요약 설명.
 
class Family(family.Family):
 
    def __init__(self):
         family.Family.__init__(self)
         self.name = 'folkwiki', #패밀리 네임. 파일명과 동일.

         self.langs = {
             'ko': '????.co.kr', #호스트네임. 
         }
         self.namespaces[4] = {
             '_default': u'FolkWiki', 
         }
         self.namespaces[5] = {
             '_default': [u'UrisoriOriWiki토론', 
         }
 
     def version(self, code):
         return "1.10.2"  #사용중인 미디어위키의 버전
 
     def path(self, code):
         return '/index.php' #index.php의 경로. 

이제 터미널창에서 서버에 로긴하고,

sic@sic: ~/uribot python ~/pywikipedia/login.py
암호 입력

이제 봇을 돌립니다. 저는 주로 글자 치환(replace) 봇을 사용합니다. 다음은 '지시어'라는 분류에 해당하는 모든 페이지에서 '이것'이란 글자를 '저것'으로 바꾸는 명령입니다.

sic@sic: ~/uribot python ~/pywikipedia/replace.py -cat:지시어 "이것" "저것" -putthrottle:1

끝에 putthrottle 파라미터는 봇이 한 페이지 수정하고 대기하는 시간입니다. 기본으로 10초가 설정돼 있어 1로 해주었습니다. replace.py 설명에 보면 이 파라미터를 user-config.py 파일에 적어주면 기본으로 설정된다고 하는데, 저는 해도 안되더군요. 그래서 봇 명령줄 끝에 일일히 써주고 있습니다. 이 부분 해결되시면 좀 알려주시고요. 그 밖에도 수정할 페이지를 지정하기 위한 많은 파라미터가 있습니다.

연속작업을 할 경우 gedit로 스크립트를 작성하여 사용자 폴더에 두고 쓰면 편합니다. 이 과정은 이원룡님이 잘 설명하신 바 있습니다.

리플레이스 봇 돌릴 때는 처음 얼마간은 화면을 주시하고 결과를 확인해야 실수가 없습니다. 혹시 잘못되고 있으면 즉시 Ctrl+C 마구 눌러 중지시킨 후 스크립트 파일을 열어 점검합니다. 참고가 되시길...

미디어위키 FAQ +/-

아래 페이지에 있습니다. 메타의 FAQ은 mediawiki.org로 옮겨질 거라는 태그가 붙어있군요. 한국어 버전 제가 만들던 게 보입니다.

질문: 미디어위키에 0 추가하는 법 +/-

이 부분의 본문은 wikipedia:ko:위키백과:사랑방/2007년 3월#질문: 미디어위키에 0 추가하는 법입니다.

현재 한국어판 위키백과에서는 편집 버튼 옆에 문서의 첫 부분(섹션0)만을 편집하는 0 버튼이 있습니다. 이를 이런 기능이 없는 위키책이나 자기 위키에 도입하려면 en:Wikipedia:WikiProject_User_scripts#monobooks.js를 참조해주세요.

Featured Article 만들기 +/-

{{Featured article}}을 문서 맨 상단에 추가해주시면, 문서가 특집 문서(Featured Article)로 바뀝니다.

영어 위키백과 메인 페이지에 오늘의 특집 문서 해서 나옵니다. 특집 문서란, 위키백과 내에서도 아주 잘 만들어진 문서를 말합니다. 내용과 질이 좋은 정보를 특집 문서라고 합니다.

mw:Extension:ImageMap에 설치방법이 나옵니다.

설치 가이드 +/-

  1. extensions 디렉토리에 ImageMap 서브디렉토리를 새로 만드다. 새폴더 만들기.
  2. subversion 여기에 있는 파일들 다 다운로드 받는다.
  3. "require_once( "$IP/extensions/ImageMap/ImageMap.php" );" 한 줄을 LocalSettings.php 파일에 추가한다.

테스트:

  1. mw:Image:Foo.jpg 그림을 다운로드하고 미디어위키에 업로드한다.
  2. Make a new Article ImageMap and copy & paste the text of this article (at least section "syntax example") to your article (무슨말인지 모름)

주의사항 +/-

여기서도 역시 require_once( "$IP/extensions/ImageMap/ImageMap.php" ); 이 명령어의 위치가 중요합니다. 아래처럼, 제가 설치한 위치에 이 문장을 삽입하면 에러가 안 납니다.

require_once( "$IP/extensions/ImageMap/ImageMap.php" );


## If you want to use image uploads under safe mode,
## create the directories images/archive, images/thumb and
## images/temp, and make them all writable. Then uncomment
## this, if it's not already uncommented:
# $wgHashedUploadDirectory = false;

## If you have the appropriate support software installed
## you can enable inline LaTeX equations:
$wgUseTeX           = false;

$wgLocalInterwiki   = $wgSitename;

$wgLanguageCode = "ko";

미디어위키에 위키피디아 인터위키 설정하기 +/-

  • 윈도우즈 환경에서의 사용례임
  • 윈도우즈 환경에서 사용하려면, http://www.vim.org 에 가서 윈도우즈용 VI 에디터(빔이라고 부름)를 설치할 것을 강력히 추천. 아니면 에러가 날 수 있음
  • 미디어위키 설치파일에 보면 maintenance 라는 폴더가 있음. 거기에 wikipedia-interwiki.sql 파일이 있음.
  • 빔으로 4번째 줄 고침. 메모장은 에러남. 빔을 씁시다!
    • REPLACE INTO /*$wgDBprefix*/interwiki (iw_prefix,iw_url,iw_local) VALUES
    • 이것을 아래로 고쳤음. 개인마다 다름. 미디어위키 설치할 때, 데이타베이스 prefix를 뭘로 설정했는가 알아야 함.
    • REPLACE INTO /*$wgDBprefix*/mp_interwiki (iw_prefix,iw_url,iw_local) VALUES
    • 빔에서 모두 복사
  • cmd 실행
  • mysql -u root -p
  • 암호 입력
  • use wikidb 입력. 혹시 데이타베이스 이름 모르면 show database; 라고 입력해서, 위키피디아를 설치한 데이타베이스 이름을 찾을 것. 쉽게 찾아짐.
  • 마우스 오른쪽 버튼 클릭, 붙여넣기
  • 설치완료!
  • 요약하면, wikipedia-interwiki.sql 파일에 데이타베이스 프리픽스만 넣어주고 전체 복사해서 붙여넣기 하면 설정 끝. 처음이 오래걸리지, 한번만 하면 나중에 다시 할 때는 1분도 안 걸림. 10초?

윈도우즈 XP에서 미디어위키 10초만에 설치하기 +/-

  • 설치는 매우 쉽습니다. 그냥 클릭만 하면 다 자동설치됩니다.
  • 그러나 설정부분에서 애를 먹는데, 최초 설치시에만 그렇습니다.
  • APM 설치시, 에러가 나면 제어판 프로그램 설치에서 삭제하고 다시 설치하세요. 그게 가장 빠르고 쉽습니다.


  • 설정부분에서의 주의사항
    • 아파치 설치시, 도메인네임과 호스트네임은 모두 localhost 로 해주세요.
    • PHP 설치시, 아파치 서버의 httpd.conf 디렉토리를 묻습니다. 아파치 서버를 기본값으로 설치하셨다면 C:\Program Files\Apache Software Foundation\Apache2.2\conf 로 설정해주면 됩니다. Apache2.2 이건 버전마다 다를 수 있겠군요. 이거 설정 에러나면, 다시 지우고 다시 설치하시는게 빠릅니다. 아니면 복잡하죠. 뭐 설치하는데, httpd.conf 에러가 어쩌고 떴다? 그럼 바로 이 이야기입니다. 삭제하고 다시 설치하세요.
    • 뭐 설치할 때, 선택하는게 뜹니다. Apache2.x module 로 선택해 주세요.
    • PHP 설치시, Extra 에 MySql 을 기본 설치로 설정해 주세요.

대문 로고 이미지 변경하기 +/-

  • 미디어위키의 설치 파일 폴더에 하부 폴더 skins\common\images 가 있다.
  • 여기에 wiki.png 파일을 변경하면 대문의 로고 이미지가 바뀐다.

백업하기 +/-

  • 갑 컴퓨터의 미디어위키 정보를 모두 백업해서 을 컴퓨터의 미디어위키에 덧붙이기 하려면?
$ mysql -u root -p
mysql> use wikidb
mysql> show tables
...
mysql> quit
$ cp -a /var/www/html/wiki [backupfiles]
$ mysqldump wikidb -u wiki -p --skip-opt > [dbbackupfile]

참고: http://www.zaptech.com/howto/mediawiki.php

미디어위키에서 봇 사용하기 +/-

위키미디어 프로젝트에서는 봇을 사용하는데, 내 컴퓨터에 설치한 미디어위키에서는 어떻게 봇을 돌리는가?

일단 봇 부터 설치해야 합니다.

한국어 위키피디아에서건 어디에서건, 봇에 대한 설명서도 제대로 된 것이 없습니다. 그래서 제가 만든 비공식 한국어 버전 봇 도움말 사용자토론:이원룡/봇 사용법 여기에 봇 설치하는 법이 나와 있습니다.

이제, 설정을 좀 해야 겠죠?

meta:Pywikipedia bot on non-Wikimedia projects 참조.

MBC의 최상일 피디님이 최초로 성공해서, 관련글을 올려주셨어요. 사용자:이원룡/미디어위키#미디어위키에서 로봇 돌리기를 참고하세요. ^^ -- 이원룡 2008년 5월 6일 (화) 15:43 (KST)

사용자:Nichetas의 미디어위키 설치 방법 +/-

  • 아래는 나의 경험을 바탕으로 작성된 것이다.
  • 작업 환경은 Windows XP이다.
  • 개인 홈페이지를 미디어위키 형식으로 작성할 때 유용할 것이다.
  1. 가장 먼저 APM 다운로드 에 접속하여 APM 프로그램을 다운 받는다. 2007.11.현재 APM 6 버전이 나와있다. 요걸 다운받아서 프로그램 설치를 한다. 특별한 일이 없다면, C:/APM_Setup 이라는 폴더가 생성되고 여기에 여러가지 파일이 생성된다.
  2. 익스플로러 창에서 http://127.0.0.1/myadmin/ 에 접속한다. IP주소 127.0.0.1 은 "localhost"를 뜻한다.
  3. 입력창에 사용자명 "root", 비밀번호는 공백인 채로 접속한다.
  4. 새 데이터베이스 만들기에서 wikidb 데이터베이스를 생성한다.
  5. 사용권한 항목에서 새로운 사용자 nichetas(상황에 맞게^^)를 생성한다.
  6. 위 사용자 nichetas에 모든권한을 부여한다.
  7. http://www.mediawiki.org/wiki/MediaWiki 에서 미디어위키를 다운 받는다.
  8. 임의의 폴더에 미디어위키를 다운받는다.
  9. 미디어폴더의 모든 파일을 위에서 설치한 C:/APM_Setup의 하위폴더인 htdocs 폴더에, 원래의 폴더를 빼고서, 복사한다.
  10. http://localhost/index.php 로 접속한다.
  11. 주어진 메뉴에 따라 미디어위키를 설치한다.