사용자 도구

사이트 도구


dokuwiki

문서의 이전 판입니다!


Ubuntu에서의 dokuwiki 설치에 대해 정리한다.

기본 설치 문서

파일 정리

  • /var/www/ 에 dokuwiki 파일 압축을 푼다.
  • $ mv /var/www/dokuwik-version dokuwiki
  • $ chown -R www-data:www-data dokuwiki

Apache 기본 설정

  • /etc/apache2/conf.d/charset 에서 “AddDefaultCharset UTF-8” 추가한다.
  • /etc/apache2/site-enabled/default 에 다음 추가
  Alias /wiki /var/www/dokuwiki
  <Directory /var/www/dokuwiki>
    AllowOverride All
  </Directory>
  • AllowOverride All은 .htaccess 파일 접근 권한 때문에 필요하다.
  • /etc/init.d/apache2 restart 로 재시작.

서버 설정 마무리

  • http://server/dokuwiki/install.php 를 실행하여 설치를 마무리 한다.
  • 완료후 install.php는 삭제해버린다.
  • php7.0-xml 패키지가 있어야만 검색 속도가 빨라진다.
    sudo apt-get install php7.0-xml
    sudo service php7.0-fpm restart

보안

  • dokuwiki 아래의 bin,conf,inc,data 디렉토리는 브라우저로 접근 가능하면 안된다. .htaccess 파일이 접근알 자동으로 막고 있지만, 혹시 접근 되는 파일이 있는지 직접 브라우저에서 주소를 쳐서 확인해본다.
  • 만약 위 디렉토리에서 접근 가능한 파일이 있다면 그것은 아파치 설정에서 AllowOverride All이 빠져있기 때문일 수 있다.
  • 사용자 Register 방지 : 나 외의 다른 사용자는 가입 불가이며, 읽기 쓰기 금지이다. http://www.dokuwiki.org/faq:regdisable 참조
    • conf/local.php 에 $conf['disableactions'] = 'register'; 추가

예쁜 URL 만들기

Template Hook

the template directory (lib/tpl/dokuwiki/) or your conf/ directory.

Filename Position of included HTML
meta.html Inside the HTML <head>, use this to add additional styles or metaheaders
sidebarheader.html At the top of the sidebar (if any)
sidebarfooter.html At the bottom of the sidebar (if any)
pageheader.html At the top inside the content box, above the actual content
pagefooter.html At the bottom inside the content box, below the actual content
header.html At the top of the page, above the logo and wiki title
footer.html At the very end of the page after all other page content

Plugins

  • 플러그인은 dokuwiki/lib/plugins/ 에 플러그인 이름을 가진 디렉토리로 저장된다.
  • 플러그인 관리자에서 직접 다운로드해 설치할 수도 있고, 파일을 받아서 해당 디렉토리에 압축을 풀어도 된다.

현재 적용된 플러그인

    • 사용자 정의 명령 추가.
    • dokuwiki/plugins/command/ext에 추가할 명령 PHP 파일을 넣는다.
dokuwiki.1594267528.txt.gz · 마지막으로 수정됨: 2020/07/09 13:05 저자 kwon37xi