문서의 이전 판입니다!
Ubuntu에서의 dokuwiki 설치에 대해 정리한다.
Alias /wiki /var/www/dokuwiki
<Directory /var/www/dokuwiki>
AllowOverride All
</Directory>
/etc/php/7.0/fpm/php.ini 에서 원하는 용량으로 변경upload_max_filesize = 5M
server {
client_max_body_size 5m;
}
php7.0-xml 패키지가 있어야만 검색 속도가 빨라진다.sudo apt-get install php7.0-xml sudo service php7.0-fpm restart
$conf['userewrite'] = 1; $conf['useslash'] = 1;
lib/tpl/dokuwiki/conf/lib/tpl/dokuwiki/tpl_footer.php : 편집모드일경우 광고 disable 코드 있음.conf/*.html : 실제 광고 script 들어 있음. footer_no_ads.html은 광고 없는 footer| 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 |
dokuwiki/lib/plugins/ 에 플러그인 이름을 가진 디렉토리로 저장된다.lib/tpl/dokuwiki/main.php <head> 부분에 지정conf/footer.html 에 script 하단 광고 스크립트conf/sidebarfooter.html에 script 하단 광고 스크립트