FREEDOM. FRIENDS. FEATURES. FIRST. 페도라 한국 사용자 모임

media wiki 설치 퀵 가이드

게시판 Tech/Tip media wiki 설치 퀵 가이드

  • This topic has 2개 답변, 2명 참여, and was last updated 14 years, 3 months 전에 by
    인베인. This post has been viewed 1080 times
  • #12093
    인베인
    참가자
      게시글147 댓글412 총합559
    @leemgs
     

    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 & 윈윈전략을 도모할 지언정 절대 공짜(무료)임을 뜻하지 않는다.치

1 답변 글타래를 보이고 있습니다
    • #12681
      ELem
      참가자
        게시글74 댓글719 총합793
      @Bardisch
       

      미디어위키 좋아하는 ㅋㅋㅋ
      나중에 서버 사면 세번째로 열게 위키;;

       
    • #12682
      인베인
      참가자
        게시글147 댓글412 총합559
      @leemgs
       

      저는 개인적으로 db가 필요없이 이동성이 간편한 moniwiki를  좋아하는 편입니다만, 대중적인 위키가 되어 버린 mediawiki를 의무감으로 사용해야 하는....

       

      * 오픈소스는 Open Innovationa & 윈윈전략을 도모할 지언정 절대 공짜(무료)임을 뜻하지 않는다.치

       
1 답변 글타래를 보이고 있습니다
  • 답변은 로그인 후 가능합니다.

지금 이 순간


윈도우XP와 페도라16의 멀티부팅 질문합니다..ㅠㅠ
페도라 한글화 부분 진행 - 지역 언어 부분
지금 윈도우 비스타 노트북인데..
고수님들..! cdemu-deamon init script와 systemctl unit 파일 검증 부탁합니다.
2009 Open Source Symposium
14 스크린샷!
리눅스 마스터 2급 합격했습니다!!ㅋㅋ
SQLite 관리 프로그램들 모음
libcec-2.2.0 페도라 20용 rpm 파일 입니다.
가입 인사 드립니다.