This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
docpublic:systemes:wiki:installconfdokuwiki [2015/06/06 16:55] procacci@tem-tsp.eu [Template artic rendering] |
docpublic:systemes:wiki:installconfdokuwiki [2023/03/22 09:23] (current) adminjp [sidebar] |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== Dokuwiki ====== | ====== Dokuwiki ====== | ||
+ | ===== New install 2022 ===== | ||
+ | |||
+ | ==== references ==== | ||
+ | |||
+ | * https:// | ||
+ | * https:// | ||
+ | * https:// | ||
+ | |||
+ | |||
+ | ==== installation de base ==== | ||
+ | |||
+ | < | ||
+ | [root@mt wik]# wget https:// | ||
+ | [root@mt wik]# mv dokuwiki-stable.tgz dokuwiki-stable_2020-07-29_Hogfather.tgz | ||
+ | |||
+ | [root@mt wiki]# tar xvfz dokuwiki-stable_2020-07-29_Hogfather.tgz | ||
+ | [root@mt wiki]# mv dokuwiki-2020-07-29 wik | ||
+ | [root@mt wiki]# cd wik | ||
+ | </ | ||
+ | |||
+ | === permissions === | ||
+ | |||
+ | afin de pouvoir lancer l' | ||
+ | |||
+ | < | ||
+ | [root@mt wik]# cp .htaccess.dist .htaccess | ||
+ | [root@mt wik]# vim .htaccess | ||
+ | [root@mt wik]# chown apache data | ||
+ | [root@mt wik]# chown apache data/tmp | ||
+ | [root@mt wik]# chown apache data/pages/ | ||
+ | [root@mt wik]# chown apache data/attic/ | ||
+ | [root@mt wik]# chown apache data/media | ||
+ | [root@mt wik]# chown apache data/ | ||
+ | [root@mt wik]# chown apache data/meta/ | ||
+ | [root@mt wik]# chown apache data/ | ||
+ | [root@mt wik]# chown apache data/cache/ | ||
+ | [root@mt wik]# chown apache data/index/ | ||
+ | [root@mt wik]# chown apache data/locks/ | ||
+ | [root@mt wik]# chown apache data/index/ | ||
+ | [root@mt wik]# chown apache lib/tpl/ | ||
+ | [root@mt wik]# chown apache conf/ | ||
+ | [root@mt wik]# chown apache conf/ | ||
+ | [root@mt wik]# chown apache lib/ | ||
+ | |||
+ | </ | ||
+ | |||
+ | ==== auth shibboleth ==== | ||
+ | |||
+ | installation du plugin | ||
+ | |||
+ | * https:// | ||
+ | |||
+ | |||
+ | < | ||
+ | |||
+ | [root@mt wik]# mv lib/ | ||
+ | [root@mt wik]# cp -a lib/ | ||
+ | |||
+ | [root@mt wik]# less lib/ | ||
+ | |||
+ | </ | ||
+ | |||
+ | petit correctif, en l'etat le plugin provoque cette erreur dans les logs | ||
+ | |||
+ | < | ||
+ | [Mon May 23 18: | ||
+ | </ | ||
+ | |||
+ | il faut alors appliquer le patch (simple retrait d'un "&" | ||
+ | * https:// | ||
+ | |||
+ | < | ||
+ | [root@mt wik]# vim lib/ | ||
+ | |||
+ | //public function register(Doku_Event_Handler & | ||
+ | public function register(Doku_Event_Handler $controller) | ||
+ | </ | ||
+ | |||
+ | CE patch semble maintenant integré suite au PR . | ||
+ | |||
+ | ==== patch shib php8 ==== | ||
+ | |||
+ | un autre patch " | ||
+ | |||
+ | < | ||
+ | dokuwiki\Exception\FatalException: | ||
+ | </ | ||
+ | |||
+ | il suffit d' | ||
+ | |||
+ | < | ||
+ | * @see DokuWiki_Auth_Plugin:: | ||
+ | */ | ||
+ | //public function trustExternal() | ||
+ | | ||
+ | </ | ||
+ | |||
+ | ==== patch multi auth-chained ==== | ||
+ | |||
+ | autre besoin, gerer le multi-authentification => local (compte local docuwiki ) et federation ID shibboleth | ||
+ | |||
+ | < | ||
+ | [root@wiki authshibboleth]# | ||
+ | 50c50,51 | ||
+ | < if (' | ||
+ | --- | ||
+ | > if (' | ||
+ | > | ||
+ | </ | ||
+ | ==== patch Logout ==== | ||
+ | |||
+ | Dokuwiki redirige vers do=login, l'auth shibboleth se redéclenche immédiatement, | ||
+ | |||
+ | < | ||
+ | Action]# diff Logout.php.bak Logout.php | ||
+ | 47c47 | ||
+ | < | ||
+ | --- | ||
+ | > | ||
+ | </ | ||
+ | |||
+ | ==== custom Login page ==== | ||
+ | |||
+ | pour customiser le bouton login de la navbar en y faisant apparaitre l'auth Shib/ | ||
+ | |||
+ | pour le formulaire de login, c'est dans inc/ | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | ===== post-upgrade 2022-07-igor ==== | ||
+ | |||
+ | ==== plugins ==== | ||
+ | |||
+ | ==== indexmenu ==== | ||
+ | |||
+ | |||
+ | https:// | ||
+ | |||
+ | ==== authshib ==== | ||
+ | |||
+ | https:// | ||
+ | |||
+ | + astuce authshib dans action.php | ||
+ | |||
+ | < | ||
+ | //public function register(Doku_Event_Handler & | ||
+ | public function register(Doku_Event_Handler $controller) | ||
+ | </ | ||
+ | |||
+ | ==== sidebar ==== | ||
+ | |||
+ | conf/ | ||
+ | |||
+ | < | ||
+ | // jehan upgrade igor 2023-01 sidebar | ||
+ | $conf[' | ||
+ | </ | ||
+ | |||
+ | ==== bootstrap 3 themes ==== | ||
+ | |||
+ | https:// | ||
==== reference 2013 ==== | ==== reference 2013 ==== | ||
Line 15: | Line 178: | ||
Installation dans un espace web personnel (webspace/ | Installation dans un espace web personnel (webspace/ | ||
- | ==== Download & Désarchivage ==== | + | ===== Download & Désarchivage |
+ | |||
+ | ==== 2016 === | ||
+ | < | ||
+ | $ tar xvfz dokuwiki-stable-2016-06-26a-Elenor_of_Tsort.tgz | ||
+ | </ | ||
+ | |||
+ | ==== 2010 ==== | ||
< | < | ||
Line 51: | Line 221: | ||
cf http:// | cf http:// | ||
+ | |||
+ | |||
+ | 2016 : https:// | ||
=== Permissions === | === Permissions === | ||
Line 197: | Line 370: | ||
usage d'un index dynamique dans la sidebar | usage d'un index dynamique dans la sidebar | ||
+ | |||
+ | indexmenu plus a jour que indexmenu2 ! ref http:// | ||
< | < | ||
- | [root@wikidoc / | + | [root@wikis plugins]# wget https://github.com/samuelet/indexmenu/ |
- | $ wget http://samuele.netsons.org/dokuwiki/ | + | [root@wikis plugins]# |
- | $ unzip indexmenu.zip | + | [root@wikis plugins]# mv indexmenu-master/ |
</ | </ | ||
+ | table of content (toc) dans la sidebar | ||
+ | |||
+ | < | ||
+ | [root@wikis conf]# grep tpl local.php | ||
+ | $conf[' | ||
+ | </ | ||
==== HTML-wiki-converter ==== | ==== HTML-wiki-converter ==== | ||
Line 321: | Line 502: | ||
install ok: channel:// | install ok: channel:// | ||
</ | </ | ||
+ | |||
+ | == upgrade phpCAS == | ||
+ | |||
+ | < | ||
+ | $ pear upgrade | ||
+ | downloading current.tgz ... | ||
+ | Starting to download current.tgz (95,030 bytes) | ||
+ | .....................done: | ||
+ | upgrade ok: channel:// | ||
+ | </ | ||
+ | |||
+ | === yum install phpCAS === | ||
+ | |||
+ | < | ||
+ | # yum install php-pear-CAS | ||
+ | Installed: | ||
+ | php-pear-CAS.noarch 0: | ||
+ | |||
+ | Dependency Installed: | ||
+ | php-pear.noarch 1: | ||
+ | </ | ||
+ | |||
+ | === authplaincas 2015 === | ||
+ | |||
+ | https:// | ||
+ | |||
+ | < | ||
+ | $ scp esn-org-authplaincas-96bd8c7.zip root@wikiserver.tem-tsp.eu:/ | ||
+ | |||
+ | [root@wikidoc authplaincas]# | ||
+ | / | ||
+ | [root@wikidoc authplaincas]# | ||
+ | README.md | ||
+ | |||
+ | [root@wikis authplaincas]# | ||
+ | |||
+ | </ | ||
+ | |||
+ | === ancienne methode === | ||
cf http:// | cf http:// | ||
Line 407: | Line 627: | ||
==== Shibboleth ==== | ==== Shibboleth ==== | ||
+ | |||
+ | |||
+ | ==== shib 2016 ==== | ||
+ | |||
+ | https:// | ||
+ | |||
+ | |||
+ | < | ||
+ | # git clone https:// | ||
+ | Cloning into ' | ||
+ | remote: Counting objects: 90, done. | ||
+ | remote: Total 90 (delta 0), reused 0 (delta 0), pack-reused 90 | ||
+ | Unpacking objects: 100% (90/90), done. | ||
+ | |||
+ | # / | ||
+ | # cp -a authshibboleth / | ||
+ | |||
+ | |||
+ | </ | ||
+ | |||
=== Solutions === | === Solutions === |