ABOUT ME

-

Today
-
Yesterday
-
Total
-
  • 도쿠위키 dokuwiki
    컴터 2009. 1. 22. 10:43
    위키위키의 매력에 빠져서 한동안 wikispaces에서 살고 있었는데,

    개인용 위키위키를 만들어 보려고 이것 저것 알아보았다.

    * Mediawiki는 사용자층이 넓으나, 속도가 느리다고 하고, 무엇보다 설치에 실패 --;

    * 모인모인은 예쁜 스킨이 없어서..--;

    * 결국 도쿠위키로 결정하고

    www.oranc.co.kr 무료 호스팅에 설치하였습니다. 

    퍼미션을 777로 하고 설치해야 되는 문제가 있지만, 작동은 잘 한다고 생각하고 있었는데...

    퍼미션 문제가 발목을 잡네요...


    이것 저것 알아보다가 결국 홈피에 질문날리고 기다리는 중입니다.

    좋은 호스팅 환경을 제공해 주셔서 감사합니다.

    오란씨에 Dokuwiki를 깔아서 blog처럼 운영하려고 합니다.

    설치와 실행은 잘 되는데,

    dokuwiki가 php 언어로 되어 있고, 그 프로세스가 user id: 2, group: 2 로 실행이 됩니다.

    제가 ftp로 접속을 하면 다른 user ID와 group로 접속이 되는데요.

    문제는 dokuwiki가 만든 파일이나 폴더를 제가 ftp로 접속해서 삭제나 변경을 할 수 가 없습니다.

    많이 불편한데요.

    혹시 php process의 id 나 GROUP (안되면 GROUP만이라도) 제가 접속할 때 받는 것으로 되도록 할 수 없을 까요?

    이게 안되면, DOKU WIKI가 문서를 생성할 때 퍼미션을 777로 하도록 해야되는데, 아시겠지만 이것은 누구나 만질 수 있는 것이기 때문에 너무 위험합니다.

    답변 기다리겠습니다 감사합니다.

     오란씨의 답변입니다.

    안녕하세요..

    user id: 2, group: 2 는 daemon 권한으로 웹권한입니다.

    웹권한은 웹에서 어떠한 프로그램을 실행했을때 웹권한으로 생성되는것입니다.

    (예를 들면 제로보드4 의 data 같은 폴더)

    이럴때 ftp 에서 제어가 불가능하게 됩니다. (계정권한이 아니라 웹권한으로 생성되기때문에)

    하지만 약간 불편하지만 웹프로그램을 만들어서 웹에서 제어를 할수가 있습니다.

    현재로서는 웹권한으로 생성되는 폴더나 파일제한은 이방법뿐이네요.

    더 궁금한 사항 있으시면 문의 주세요..

    원하던 것을 얻지는 못하였지만 한나절도 지나가기 전에 답변을 해주네요... 서비스는 좋습니다.

    파란 호스팅으로 해결했습니다. 퍼미션 문제도 없고, User ID 문제도 없네요. 오란씨는 안녕...^;


    배포 및 설명 사이트
    퍼미션설정법

    The following permissions must be modified for the respective DokuWiki functions to work:

    • data/ and data/tmp/ directory: All files in and below these directories must be writable by the web process for DokuWiki to work.
    • lib/plugins/ directory: This directory must be writable by the web process for the plugin-Manager to work
    • lib/ directory: This directory must be readable by the public for style sheets to display. 755 works fine.

    The following files are copied by the installer.php from the respective*.dist files and given the correct permissions for the web processautomatically:

    • conf/ directory, following files must be writable by the web process:
      • local.php for the installer and for subsequent web configuration to work.
      • users.auth.php and acl.auth.php for the ACL web configuration and usermanager to work.

    http://www.splitbrain.org/blog/2008-12/24-setup_dokuwiki_on_free_hosting_in_less_than_15_minutes?s[]=dokuwiki

    http://wiki.splitbrain.org/wiki:tips:disabled_functions

    파란.
    Your PHP process seems to run with the UID 3344 () and the GID 1000 ()

    도쿠위키설치기

    즉시이동 하기 index.html
    <script type="text/javascript">
    location.replace("URL");
    </script>


    위치로그 사용하지를 않아서 소스 몇개 추가해서 제로보드 게시판 넣어습니다.
    이소스는 내용물이 많아지면 자동으로 스크롤 된다는 점입니다.
    사용하고 있는 스킨의 skin.html을 열어서 아래 소스를 넣어줍니다.

    <script Language='javascript'>
    var ifrmHeight;
    var objFrame;
    var str;
    var cstr;

    function init() {
                    try{
                            objFrame = document.all["ifrm"];
                            str = window.clipboardData.getData("Text");
                            cstr = str.split("|");
                            ifrmHeight= eval(cstr[1]);        
            }catch(e){
                    }
    }

    function reSize() {
                    try{                        
                            if (ifrmHeight > 240) {
                                            objFrame.style.height = ifrmHeight;
                            }else{
                                            objFrame.style.height = 240;
                            }                       
            }catch(e){
                    }
    }

    function init_iframe() {        
            reSize();        
            setTimeout("init_iframe()",100);
    }

    init_iframe();
    </script>

    두번째 변경하고자 하는 위치에 아래 소스를 넣어 줍니다.
    <iframesrc="게시판 주소" name="ifrm" width="100%" height="100%" marginwidth="0"marginheight="0" frameborder="no" onload="init()"scrolling="no"></iframe>

    게시판 관리에 들어가서게시판 하단에 출력될 내용에 아래 소스를 추가해 줍니다.
    <script language="javascript">
    window.clipboardData.setData('Text', document.body.scrollWidth+"|"+document.body.scrollHeight);
    </script>
    그럼 끝입니다.
Designed by Tistory.