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 [2016/12/13 21:27] procacci@tem-tsp.eu [Configuration] |
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 ==== | ||