Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
docpublic:systemes:wiki:installconfdokuwiki [2010/01/11 10:49]
PROCACCIA
docpublic:systemes:wiki:installconfdokuwiki [2023/03/22 09:23] (current)
adminjp [sidebar]
Line 1: Line 1:
-====== Inst-Conf-Dokuwiki ======+====== Dokuwiki ====== 
 + 
 +===== New install 2022 ===== 
 + 
 +==== references ==== 
 + 
 +  * https://www.dokuwiki.org/fr:install 
 +  * https://download.dokuwiki.org/ 
 +  * https://www.dokuwiki.org/fr:install:permissions 
 + 
 + 
 +==== installation de base ==== 
 + 
 +<code> 
 +[root@mt wik]# wget https://download.dokuwiki.org/src/dokuwiki/dokuwiki-stable.tgz 
 +[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 
 +</code> 
 + 
 +=== permissions === 
 + 
 +afin de pouvoir lancer l'installeur il faut ouvrir des permissions pour le proprietaire du process httpd (ici apache)  
 + 
 +<code> 
 +[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/media_attic/ 
 +[root@mt wik]# chown apache data/meta/ 
 +[root@mt wik]# chown apache data/media_meta/ 
 +[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/local.php.dist  
 +[root@mt wik]# chown apache lib/plugins/ 
 + 
 +</code> 
 + 
 +==== auth shibboleth ==== 
 + 
 +installation du plugin  
 + 
 +  * https://www.dokuwiki.org/plugin:authshibboleth 
 + 
 + 
 +<code> 
 + 
 +[root@mt wik]# mv lib/plugins/authshibboleth lib/plugins/authshibboleth-manager-installed 
 +[root@mt wik]# cp -a lib/plugins/authshibboleth-manager-installed/plugin/authshibboleth ./lib/plugins/ 
 + 
 +[root@mt wik]# less lib/plugins/authshibboleth-manager-installed/README.md  
 + 
 +</code> 
 + 
 +petit correctif, en l'etat le plugin provoque cette erreur dans les logs  
 + 
 +<code> 
 +[Mon May 23 18:56:42.777627 2022] [php7:error] [pid 2295] [client 192.168.12.190:46606] PHP Fatal error:  Declaration of action_plugin_authshibboleth::register(Doku_Event_Handler &$controller) must be compatible with dokuwiki\\Extension\\ActionPlugin::register(Doku_Event_Handler $controller) in /var/www/dok/wik/lib/plugins/authshibboleth/action.php on line 0, referer: https://mt.dom.fr/wik/doku.php?id=start&do=admin&page=extension&tab=search&q= 
 +</code> 
 + 
 +il faut alors appliquer le patch (simple retrait d'un "&" ligne 40) :  
 +  * https://github.com/ivan-novakov/dokuwiki-shibboleth-auth/pull/17/files 
 + 
 +<code> 
 +[root@mt wik]# vim lib/plugins/authshibboleth/action.php 
 + 
 +    //public function register(Doku_Event_Handler &$controller) # ligne 40  
 +    public function register(Doku_Event_Handler $controller) 
 +</code>  
 + 
 +CE patch semble maintenant integré suite au PR . 
 + 
 +==== patch shib php8 ==== 
 + 
 +un autre patch "maison" a été fait pour supporter php 8 afin de ressoudre cette erreur 
 + 
 +<code> 
 +dokuwiki\Exception\FatalException: Declaration of auth_plugin_authshibboleth::trustExternal() must be compatible with dokuwiki\Extension\AuthPlugin::trustExternal($user, $pass, $sticky = false) 
 +</code> 
 + 
 +il suffit d'ajouter/declarer les parametres attendus comme indiqués dans authshibboleth/auth.php 
 + 
 +<code> 
 +  * @see DokuWiki_Auth_Plugin::trustExternal() 
 +     */ 
 +    //public function trustExternal() 
 +   public function trustExternal($user, $pass, $sticky = false) 
 +</code> 
 + 
 +==== patch multi auth-chained ==== 
 + 
 +autre besoin, gerer le multi-authentification => local (compte local docuwiki ) et federation ID shibboleth  
 + 
 +<code> 
 +[root@wiki authshibboleth]# diff action.php.bak action.php 
 +50c50,51 
 +<         if ('login' == $ACT && !array_key_exists('auth', $_SESSION[DOKU_COOKIE])) { 
 +--- 
 +> if ('login' == $ACT && !isset($_SESSION[DOKU_COOKIE]['auth']['user'])) { 
 +>  
 +</code> 
 +==== patch Logout ==== 
 + 
 +Dokuwiki redirige vers do=login, l'auth shibboleth se redéclenche immédiatement, pour contourner ce problème il faut patcher Logout.php pour retourner sur la page principal et pas sur la page de login 
 + 
 +<code> 
 +Action]# diff Logout.php.bak Logout.php 
 +47c47 
 +<         send_redirect(wl($ID, array('do' => 'login'), true, '&')); 
 +--- 
 +>         send_redirect(wl($ID, array(), true, '&')); 
 +</code> 
 + 
 +==== custom Login page ==== 
 + 
 +pour customiser le bouton login de la navbar en y faisant apparaitre l'auth Shib/fédé-ID, il faut editer le fichier lib/tpl/bootstrap3/tpl/navbar.php 
 + 
 +pour le formulaire de login, c'est dans inc/Ui/Login.php 
 + 
 + 
 + 
 + 
 + 
 +===== post-upgrade 2022-07-igor ==== 
 + 
 +==== plugins ==== 
 + 
 +==== indexmenu ==== 
 + 
 + 
 +https://www.dokuwiki.org/plugin:indexmenu 
 + 
 +==== authshib ==== 
 + 
 +https://github.com/ivan-novakov/dokuwiki-shibboleth-auth/archive/refs/heads/master.zip 
 + 
 ++ astuce authshib dans action.php 
 + 
 +<code> 
 +//public function register(Doku_Event_Handler &$controller) 
 +    public function register(Doku_Event_Handler $controller) 
 +</code> 
 + 
 +==== sidebar ==== 
 + 
 +conf/local.php pour la sidebar 
 + 
 +<code> 
 +// jehan upgrade igor 2023-01 sidebar 
 +$conf['defer_js'] = 0; 
 +</code> 
 + 
 +==== bootstrap 3 themes ==== 
 + 
 +https://doc.ubuntu-fr.org/utilisateurs/fabux/emeht 
 +==== reference 2013 ==== 
 + 
 +suite a la mise a jour en 2013-12-08 "Binky" beaucoup de changement ont eu lieux en terme d'authentification depuis le passage en 2013-05-10a "Weatherwax" et les auth plugins: https://www.dokuwiki.org/changes 
 + 
 +  * https://www.dokuwiki.org/auth 
 +  * https://www.dokuwiki.org/plugin:authchained 
 +  * https://www.dokuwiki.org/plugin:authshibboleth 
 +  * https://www.dokuwiki.org/plugin:indexmenu
  
  
Line 6: Line 178:
 Installation dans un espace web personnel (webspace/page perso) Installation dans un espace web personnel (webspace/page perso)
  
-==== Download & Désarchivage ====+===== Download & Désarchivage ===== 
 + 
 +==== 2016 === 
 +<code> 
 +$ tar xvfz dokuwiki-stable-2016-06-26a-Elenor_of_Tsort.tgz 
 +</code> 
 + 
 +==== 2010 ====
  
 <code> <code>
Line 42: Line 221:
  
 cf http://www.dokuwiki.org/config cf http://www.dokuwiki.org/config
 +
 +
 +2016 : https://www.dokuwiki.org/install:permissions
  
 === Permissions === === Permissions ===
Line 156: Line 338:
  
 http://www.dokuwiki.org/template:arctic http://www.dokuwiki.org/template:arctic
 +
 +installation par git
 +
 +<code>
 +[root@localhost tpl]# git clone https://github.com/samfisch/dokuwiki-template-arctic.git arctic
 +Cloning into 'arctic'...
 +remote: Counting objects: 1363, done.
 +remote: Total 1363 (delta 0), reused 0 (delta 0), pack-reused 1363
 +Receiving objects: 100% (1363/1363), 314.27 KiB | 422.00 KiB/s, done.
 +Resolving deltas: 100% (683/683), done.
 +[root@localhost tpl]# ls
 +arctic  dokuwiki  index.php
 +</code>
 +
  
 user ou group sidebar user ou group sidebar
Line 171: Line 367:
 </code> </code>
  
 +==== IndexMenu ====
  
 +usage d'un index dynamique dans la sidebar
 +
 +indexmenu plus a jour que indexmenu2 ! ref http://samuele.netsons.org/dokuwiki/doku.php
 +
 +<code>
 +[root@wikis plugins]# wget https://github.com/samuelet/indexmenu/archive/master.zip
 +[root@wikis plugins]# unzip master.zip 
 +[root@wikis plugins]# mv indexmenu-master/ indexmenu
 +</code>
 +
 +table of content (toc) dans la sidebar 
 +
 +<code>
 +[root@wikis conf]# grep tpl local.php
 +$conf['tpl']['arctic']['left_sidebar_content'] = 'main,toc,user,group,namespace';
 +</code>
 ==== HTML-wiki-converter ==== ==== HTML-wiki-converter ====
  
Line 289: Line 502:
 install ok: channel://__uri/CAS-1.0.2RC1 install ok: channel://__uri/CAS-1.0.2RC1
 </code> </code>
 +
 +== upgrade phpCAS ==
 +
 +<code>
 +$ pear upgrade  http://downloads.jasig.org/cas-clients/php/current.tgz
 +downloading current.tgz ...
 +Starting to download current.tgz (95,030 bytes)
 +.....................done: 95,030 bytes
 +upgrade ok: channel://__uri/CAS-1.3.3
 +</code>
 +
 +=== yum install phpCAS ===
 +
 +<code>
 +# yum install php-pear-CAS
 +Installed:
 +  php-pear-CAS.noarch 0:1.3.3-1.el7                                                                                                                                   
 +
 +Dependency Installed:
 +  php-pear.noarch 1:1.9.4-21.el7                                                 php-process.x86_64 0:5.4.16-36.el7_1        
 +</code>  
 +
 +=== authplaincas 2015 ===
 +
 +https://www.dokuwiki.org/plugin:authplaincas
 +
 +<code>
 +$ scp esn-org-authplaincas-96bd8c7.zip root@wikiserver.tem-tsp.eu:/var/www/wikis/wikidoc/lib/plugins
 +
 +[root@wikidoc authplaincas]# pwd
 +/var/www/wikis/wikidoc/lib/plugins/authplaincas
 +[root@wikidoc authplaincas]# ls   
 +README.md  action.php  auth.php  conf  lang  license  manager.dat  plaincas.settings.php  plugin.info.txt
 +
 +[root@wikis authplaincas]# cp plaincas.settings.php ../../../conf/
 +
 +</code>
 +
 +=== ancienne methode ===
  
 cf http://www.esup-portail.org/display/PROJDOCUWIKICAS/CASification+de+Docuwiki cf http://www.esup-portail.org/display/PROJDOCUWIKICAS/CASification+de+Docuwiki
Line 375: Line 627:
  
 ==== Shibboleth ==== ==== Shibboleth ====
 +
 +
 +==== shib 2016 ====
 +
 +https://github.com/ivan-novakov/dokuwiki-shibboleth-auth
 +
 +
 +<code>
 +# git clone https://github.com/ivan-novakov/dokuwiki-shibboleth-auth.git
 +Cloning into 'dokuwiki-shibboleth-auth'...
 +remote: Counting objects: 90, done.
 +remote: Total 90 (delta 0), reused 0 (delta 0), pack-reused 90
 +Unpacking objects: 100% (90/90), done.
 +
 +# /tmp/dokuwiki-shibboleth-auth/plugin
 +# cp -a authshibboleth /var/www/dups/wups/lib/plugins/
 +
 +
 +</code>
 +
  
 === Solutions === === Solutions ===
docpublic/systemes/wiki/installconfdokuwiki.1263206995.txt.gz · Last modified: 2010/01/11 10:49 by PROCACCIA
[unknown link type]Back to top
CC Attribution-Noncommercial-Share Alike 4.0 International
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0