DokuWiki安裝过程 --- CentOS

来源:百度文库 编辑:神马文学网 时间:2024/04/30 01:07:25
DokuWiki安裝过程 --  oice DIY
# cd cd /var/www/html
# wgethttp://www.splitbrain.org/_media/projects/dokuwiki/dokuwiki-2006-11-06.tgz?id=projects%3Adokuwiki&cache=cache
# mv dokuwiki-2006-11-06.tgz\?id\=projects\:dokuwiki dokuwiki-2006-11-06.tgz
# tar -zxvf dokuwiki-2006-11-06.tgz
# mv dokuwiki-2006-11-06 wiki
# chown -R apache:apache wiki
在apache支持rewrite环境下
WIN2K的IE中输入:http://10.10.7.246/wiki/install.php
选择语言zh,配置管理员的密码,保存
以刚才管理员的帐号登入,“管理”---“配置设置”
有新注册通知到email
支持html语法
.htaccess(在高级项处)
-- 可将install.php更名
# mv install.php install.php.bak
# cp /var/www/html/.htaccess /var/www/html/.htaccess.bak
# vi /var/www/html/.htaccess
## Enable this to restrict editing to logged in users only
## You should disable Indexes and MultiViews either here or in the
## global config. Symlinks maybe needed for URL rewriting.
#Options -Indexes -MultiViews +FollowSymLinks
## make sure nobody gets the htaccess files

Order allow,deny
Deny from all
Satisfy All

## Uncomment these rules if you want to have nice URLs using
## $conf[‘rewrite‘] = 1 - not needed for rewrite mode 2
RewriteEngine on
#
## Not all installations will require the following line.  If you do,
## change "/dokuwiki" to the path to your dokuwiki directory relative
## to your document root.
RewriteBase /wiki    #这个很重要,必须要与上面wiki所在文件夹名相符合,不然会打不开网页的
#
RewriteRule ^_media/(.*)              lib/exe/fetch.php?media=$1  [QSA,L]
RewriteRule ^_detail/(.*)             lib/exe/detail.php?media=$1  [QSA,L]
RewriteRule ^_export/([^/]+)/(.*)     doku.php?do=export_$1&id=$2  [QSA,L]
RewriteRule ^$                        doku.php  [L]
RewriteCond %{REQUEST_FILENAME}       !-f
RewriteCond %{REQUEST_FILENAME}       !-d
RewriteRule (.*)                      doku.php?id=$1  [QSA,L]
RewriteRule ^index.php$               doku.php
# chown apache:apache /var/www/html/.htaccess
WIN2K的IE中输入:http://10.10.7.246/wiki/
注册oice帐号,在oice2008@126.com中能收到密码邮件,安装成功
参考资料:
http://www.ichiayi.com/wikipage/tech/dokuwiki
http://sinosmond.com/guide/dokuwiki/dokuwiki_install
http://www.wiztek.cn/trac/wiki/wiki/TracInaction
http://wiki.moligu.com/doku.php?do=export_raw&id=%E6%89%8B%E5%86%8C:dokuwiki
http://www.blogjava.net/pepsixp/archive/2007/06/14/DokuWiki.html