DokuWiki tips

上一篇 / 下一篇  2009-07-20 16:04:59 / 个人分类:DokuWiki

===========
Fb2Qbn9~)w;z0DokuWiki简介51Testing软件测试网)U$YT br
===========
)^6_ \"qQ0

上传附件格式支持配置

在$DokuWiki$\conf\mime.conf 中51Testing软件测试网9o@[%rc#M
添加
}KV+J,g*HD051Testing软件测试网_P6b K4^
txt     application/txt
SbO]1I0zip     !application/7zip
i6[+OWc6~0rar     !application/7zip51Testing软件测试网6{/o!G1S|YBz
...51Testing软件测试网$lj+SbM(_$G
51Testing软件测试网(] C0X5c^ T{|
!开头表示需额外调用系统程序才能打开的程序51Testing软件测试网%I!GTOo_
无!则表示默认使用系统自动浏览器进行打开51Testing软件测试网%d c6Ew}q+m

3D4D"S*q}`0

二 删除附件配置

51Testing软件测试网`{e3A0q m7}Z

1.下载并安装插件mediamanager51Testing软件测试网](A#VJ N7e:[_j?1Q
2. 新建一个页面,将页面命名为attachment_delete,
},U5^g%n0并在页面内容里填写51Testing软件测试网&~(P RO ~_p
{{media}}
dI5L#h7k;A"d8R051Testing软件测试网/kJM|&F5? Of j(YT
然后保存
E[&DjzY0
5l1UWDJ5E03.使用root登录wiki,进入admin->Access Control List Management,针对页面attachment_delete配置权限为@ALL none51Testing软件测试网9[ tPM5{`%d C

+P NQ.U%Oa^%I(Gov0以后只有以root登录才能对附件进行删除,对文件夹进行修改。
!a?+r:tg0

#C'R(O R7R+Tm0三 Dokuwiki 参数和邮件 配置

e~1G'g!P0
1. 从http://glob.com.au/sendmail/下载sendmail,解压,并在sendmail.ini中参数配置如下:
51Testing软件测试网hnOfY/Kf,[7E+gp

[sendmail]51Testing软件测试网Mq;gRM/TN7?&EH)RF

#t.Dx,LjX#S3D~s3h0smtp_server=smtp.mail.xxx.com default_domain=xxx.com

2p)A8L(zmPYo051Testing软件测试网6m clr&B1B j]7[h

auth_password=xxxxxxxxx51Testing软件测试网w8L'Ze}@

51Testing软件测试网 L'NGs Whl9]:XB8O

force_sender=xxx@xx.com51Testing软件测试网f*o/[qH2\8[

 
 
2.修改PHP.INI的[mail function]部分,并且只开启这一项(去掉注释的;号):
  sendmail_path = "c:/path_to_sendmail/sendmail.exe -i -t"
3.重启Apache,让PHP.INI的修改生效。
如果发生邮件成功,页面上方会提示: Notification email sent
 

&@;W`og'A3Dr4h9v6}\'i0注:如果运行有问题,可以直接在cmd窗口运行c:/path_to_sendmail/sendmail.exe -i -t 查看报错信息

;\J.yU mD[ H4B0

M:w7h7Vhnb2f%a0参考链接:51Testing软件测试网qr9u*K/dqJ

51Testing软件测试网g| K.h2K-xS0p5iC

http://www.fwolf.com/blog/post/82

ihn^`H4S I'@051Testing软件测试网;R4`2M*x2S3ajf L ?

http://www.dokuwiki.org/tips:mailconfig51Testing软件测试网 O ~knOSJ%Lm

 

o-trHb|)Lw0
K[i9~?5l){E0
&]2Z)i5K$P?ed;G_b9F_0

TAG: 上传 配置

 

评分:0

我来说两句

Open Toolbar