- This topic has 2개 답변, 2명 참여, and was last updated 15 years, 1 month 전에 by 인베인. This post has been viewed 1140 times
-
-
0. Links
http://ko.wiktionary.org/wiki/emotion
http://askdrwiki.com/mediawiki/1. 요구사항
-mediawiki 1.11.0 이상 버젼: PHP5가 필요.
-mediawiki 1.6.10 이하 버젼: PHP4가 필요.2. 설치하기 (설치방법 상당히 간단하고 쉬움.)
cent5#> w g e t http://download.wikimedia.org/mediawiki/1.6/mediawiki-1.6.10.tar.gz
w g e t http://download.wikimedia.org/mediawiki/1.9/mediawiki-1.9.6.tar.gz
cent5#> chmod 777 ./mediawiki/config
cent5#> firefox http://localhost/mediawiki/config/index.php (웹환경으로 셋팅.)
cent5#> mv ./mediawiki/config/LocalSetting.php ./mediawiki/
cent5#> rm -rf ./mediawiki-version/config
cent5#> firefox http://localhost/mediawiki/
(웹환경 셋팅에서 입력한 admin id/pass이용하여 로그인.)4. FCKeditor 설치하기
cent5#> cd ./mediawiki/
cent5#> w g e t http://jaist.dl.sourceforge.net/sourceforge/fckeditor/FCKeditor_2.5.1.tar.gz
cent5#> tar xzf ./FCKeditor_2.5.1.tar.gz
cent5#> mv ./FCKeditor/editor/dialog/fck_image.html ./FCKeditor/fck_image_html
cent5#> mv ./FCKeditor/editor/dialog/fck_image/fck_image.js ./FCKeditor/fck_image_js
cent5#> vi ./FCKeditor/fckconfig.js
------------------------------------------------------------------------------
// ******************************************************************// section modified image dialog
FCKConfig.LinkDlgHideTarget = true ;
FCKConfig.LinkDlgHideAdvanced = true ;
FCKConfig.ImageDlgHideLink = true ;
FCKConfig.ImageDlgHideAdvanced = true ;
FCKConfig.FlashDlgHideAdvanced = true ;FCKConfig.LinkBrowser = false ;
FCKConfig.ImageBrowser = false ;
FCKConfig.FlashBrowser = false ;
FCKConfig.LinkUpload = false ;
FCKConfig.ImageUpload = false ;
FCKConfig.FlashUpload = false ;FCKConfig.mwScriptPath = ""; // When using the modified image dialog
// you must set this variable. It must correspond to
// $wgScriptPath in LocalSettings.php.// end section modified image dialog
FCKConfig.ToolbarSets["Wiki"] = [
['Source','-','Save','NewPage','-'],
['Cut','Copy','Paste','PasteText','PasteWord','-','Print'],
['Undo','Redo','-','Find','Replace','-','SelectAll','RemoveFormat'],
['Bold','Italic','Underline','StrikeThrough','-','Subscript','Superscript'],
['OrderedList','UnorderedList','-','Outdent','Indent'],
['JustifyLeft','JustifyCenter','JustifyRight','JustifyFull'],
['Link','Unlink','Anchor'],
['Image','Table','Rule','Smiley','SpecialChar','PageBreak','UniversalKey'],
['Style','FontFormat','FontName','FontSize'],
['TextColor','BGColor'],
['FitWindow','-','About']
] ;
-------------------------------------------------------------------------------
cent5#> vi ./mediawiki/LocalSettings.php
-------------------------------------------------------------------------------
/* Installing this extension may lead to security and technical problems
* as well as data corruption.
*/
require_once("extensions/FCKeditor.php");$wgFCKUseEditor = false; // When set to 'true' the FCKeditor is the default editor.
$wgFCKEditorDir = "FCKeditor";
$wgFCKEditorToken = "__USE_EDITOR__";
$wgFCKEditorToolbarSet = "Wiki";
$wgFCKEditorHeight = "600";
$wgFCKEditorAllow_a_tags = true; // : Set this to true if you want to use the **external** link
// generator of the FCKeditor.
$wgFCKEditorAllow_img_tags = true; // : Set this to true if you want to use the
// file browser and/or the smilies of the FCKeditor.
$wgFCKexcludedNamespaces = array(8,1,-1); // eg. "8" for disabling the editor within the MediaWiki namespace./**
* Enable use of AJAX features.
*/
$wgUseAjax = true;
$wgAjaxExportList[] = 'wfSajaxSearchImageFCKeditor';
-------------------------------------------------------------------------------5. TroubleShooting
5.1 mediawiki 1.6.0 설치후, 다음과 같은 에러가 나오면서 데이터 입력이 되지 않을 때가 있다.(설치환경: (php 5 / mysql 5 / DB Collocation euc-kr)
"Article::insertOn". MySQL returned error "1062: Duplicate entry '0-' for key 2 (localhost)"이 경우 mediawiki 를 모두 삭제하고, 재설치하면서
Database charset -----
( ) Backwards-compatible UTF-8
(*) Experimental MySQL 4.1/5.0 UTF-8* 오픈소스는 Open Innovationa & 윈윈전략을 도모할 지언정 절대 공짜(무료)임을 뜻하지 않는다.치
- 답변은 로그인 후 가능합니다.