Dokuwiki in one article
来源:互联网 发布:linux tracert命令 编辑:程序博客网 时间:2024/05/12 22:16
简介
官网: https://www.dokuwiki.org
DokuWiki 是一个开源 Wiki 软件(与著名的Wikipedia类似),它不需要数据库,简单易用。
安装
记得使用.htaccess 来禁止访问某些文件夹。Dokuwiki的帮助文档有介绍
管理
主题
插件
- 修改页面标题: move
ACL
@ALL 表示所有用户
@User 表示登录的用户
如果页面A只想被管理员修改,我是这么设置的
@ALL 无权限
@User 读取权限
管理员 修改权限
使用LDAP认证用户
AD(Active Directory) & LDAP相关知识
http://www.zhukun.net/archives/8012
https://segmentfault.com/a/1190000002607140
http://m.blog.csdn.net/article/details?id=8937468
使用authldap插件
可以以管理员身份登陆,通过web界面进行配置,也可以直接修改配置文件,该文件位于 conf/local.php
:
$conf['title'] = 'DacasWiki'; // wiki的名字$conf['lang'] = 'zh'; // 语言$conf['template'] = 'bootstrap3'; // 主题$conf['license'] = '0';$conf['useacl'] = 1;$conf['authtype'] = 'authldap';//$conf['authtype'] = 'authplain';$conf['superuser'] = '@admin,caohongjin'; // 管理员,第一个表示一个组,也可以在后面添加单独的用户$conf['disableactions'] = 'register';$conf['plugin']['authldap']['server'] = ''; // ldap服务器地址,域名或ip都可以$conf['plugin']['authldap']['usertree'] = 'ou=person,dc=example,dc=cn';$conf['plugin']['authldap']['grouptree'] = 'dc=example,dc=cn';$conf['plugin']['authldap']['userfilter'] = '(&(|(uid=%{user})(cn=%{user}))(objectClass=user))';$conf['plugin']['authldap']['groupfilter'] = '(&(memberUID=%{user})(objectClass=orginalzitionalUnit))';$conf['plugin']['authldap']['version'] = 3; // 使用version3(重要)$conf['plugin']['authldap']['binddn'] = 'cn=administrator,cn=Users,dc=example,dc=cn';$conf['plugin']['authldap']['bindpw'] = '<b>XXXXXX';$conf['plugin']['authldap']['userkey'] = '';$conf['plugin']['authldap']['groupkey'] = '';//$conf['plugin']['authldap']['debug'] = 1; // 开启调试信息$conf['plugin']['authldap']['debug'] = 0;
使用ldap认证方式后,如何设置某个用户为管理员呢?修改$conf['superuser']
即可
$conf['superuser'] = '@admin,caohongjin'; // 管理员,第一个表示一个组,也可以在后面添加单独的用户
ldap_set_option ($ldapconn, LDAP_OPT_REFERRALS, 0);
ldap_set_option($ldapconn, LDAP_OPT_PROTOCOL_VERSION, 3);
Problem
只能搜索部分用户的问题 ldap_search :Operation error
http://stackoverflow.com/questions/6222641/how-to-php-ldap-search-to-get-user-ou-if-i-dont-know-the-ou-for-base-dn
Centos 7 + Nginx install Permission error
https://timothy-quinn.com/building-dokuwiki-on-centos-7/
https://forum.dokuwiki.org/thread/12117
https://forum.dokuwiki.org/thread/13231
SELinux : https://wiki.centos.org/HowTos/SELinux
Change SELinux to permissive solve this problem.
The ‘setenforce’ command may be used to switch between Enforcing and Permissive modes on the fly but note that these changes do not persist through a system reboot.
To make changes persistent through a system reboot, edit the ‘SELINUX=’ line in /etc/selinux/config for either ‘enforcing’, ‘permissive’, or ‘disabled’. For example: ‘SELINUX=permissive’
pdfjs failed in https but ok in http
- Dokuwiki in one article
- STL in one article
- C++ Primer in one article
- Load Two Module in One Article's Content
- DokuWiki
- dokuwiki
- dokuwiki
- DokuWiki
- DokuWiki
- dokuwiki
- First Article In CSDN
- My first article in CSDN
- the first article in CSDN.
- My first article in CSDN.
- first one in English
- One word in english
- BCC55 ALL IN ONE
- Singleton all in one
- adams两小球碰撞试验
- Python 集合(set)类型的操作——并交差
- php安装ssh2扩展控制linux,模拟阿里云web控制台
- shell脚本中的read
- CVPR 2016论文快讯:目标检测领域的新进展
- Dokuwiki in one article
- hdu2049
- linux下mysql-5.6.20安装,附tar.gz下载地址
- 画笔使用(二)
- mjpg-streamer学习笔记6----输入通道--主要涉及函数
- Openvpn-2.3.8安装部署
- 架构的一点心得体会
- PAT 1012. The Best Rank (25)(成绩排名与浮点数比较)
- SO(ELF)文件格式详解