This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
docpublic:systemes:installconfdokuwiki [2010/01/08 14:06] PROCACCIA created |
— (current) | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Inst-Conf-Dokuwiki ====== | ||
- | |||
- | |||
- | ---# Installation | ||
- | |||
- | Installation dans un espace web personnel (webspace/ | ||
- | |||
- | ---## Download & Désarchivage | ||
- | |||
- | < | ||
- | [jehan@localhost ~/Download] | ||
- | $ wget http:// | ||
- | |||
- | |||
- | [jehan@localhost ~/ | ||
- | $ tar xvfz ~/ | ||
- | dokuwiki-2008-05-05/ | ||
- | dokuwiki-2008-05-05/ | ||
- | dokuwiki-2008-05-05/ | ||
- | dokuwiki-2008-05-05/ | ||
- | |||
- | [jehan@localhost ~/ | ||
- | $ ls dokuwiki-2008-05-05/ | ||
- | bin | ||
- | conf data | ||
- | </ | ||
- | |||
- | Simplification du nom du repertoire racine | ||
- | |||
- | < | ||
- | [jehan@localhost ~/ | ||
- | $ mv dokuwiki-2008-05-05 dokuwiki | ||
- | </ | ||
- | |||
- | ---## Configuration | ||
- | |||
- | cf http:// | ||
- | |||
- | ---### Permissions | ||
- | |||
- | Pendant la phase de parametrage/ | ||
- | |||
- | < | ||
- | [jehan@localhost ~/ | ||
- | $ cp .htaccess.dist .htaccess | ||
- | |||
- | [jehan@localhost ~/ | ||
- | $ cat .htaccess | ||
- | <Limit GET POST> | ||
- | Deny from all | ||
- | Allow from 157.159.50.197 | ||
- | </ | ||
- | </ | ||
- | |||
- | ---## Installer web interface | ||
- | |||
- | http:// | ||
- | |||
- | Premiere alerte: | ||
- | |||
- | < | ||
- | The installer found some problems, indicated below. You can not continue until you have fixed them. | ||
- | |||
- | * / | ||
- | * / | ||
- | etc ... | ||
- | </ | ||
- | |||
- | Il faut donner les droits a compte (apache = 48 ) executant le serveur httpd sur ces directories | ||
- | Helas pour ce faire il faut etre root ! (trouver mieux ...) | ||
- | |||
- | < | ||
- | [root@cobra / | ||
- | $ chown -R 48 data/ | ||
- | $ chown 48 lib/ | ||
- | $ chown 48 conf/ | ||
- | </ | ||
- | |||
- | ensuite cela se passe bien, on tombe sur l' | ||
- | * dokuwiki-installer-admin: | ||
- | < | ||
- | |||
- | ce qui se retrouve dans : | ||
- | |||
- | < | ||
- | [jehan@localhost ~/ | ||
- | $ cat local.php | ||
- | <?php | ||
- | /** | ||
- | * Dokuwiki' | ||
- | * Auto-generated by install script | ||
- | * Date: Fri, 09 Jan 2009 17:41:08 +0100 | ||
- | */ | ||
- | $conf[' | ||
- | $conf[' | ||
- | $conf[' | ||
- | $conf[' | ||
- | </ | ||
- | |||
- | ---# Configuration | ||
- | |||
- | ---## Parametrage du login | ||
- | |||
- | ---### Forcer un login en https | ||
- | |||
- | cf http:// | ||
- | |||
- | Mettre en place des RewriteRules dans le *.htaccess*: | ||
- | |||
- | < | ||
- | [jehan@localhost ~/ | ||
- | $ cat .htaccess | ||
- | RewriteEngine on | ||
- | RewriteBase /dokuwiki | ||
- | RewriteCond %{HTTPS} !on | ||
- | RewriteCond %{QUERY_STRING} do=log | ||
- | RewriteRule ^(.*) https:// | ||
- | #remove https after login page | ||
- | RewriteCond %{HTTPS} on | ||
- | RewriteCond %{QUERY_STRING} !do=log | ||
- | RewriteCond %{REQUEST_METHOD} GET | ||
- | RewriteRule ^(.*) http:// | ||
- | </ | ||
- | |||
- | |||
- | ---## casification | ||
- | |||
- | ---### php-cas | ||
- | |||
- | dependance sur php-cas | ||
- | |||
- | < | ||
- | $ yum install php-pear | ||
- | $ yum install php-xml.i386 | ||
- | $ pear install http:// | ||
- | downloading CAS-1.0.2RC1.tgz ... | ||
- | Starting to download CAS-1.0.2RC1.tgz (236,284 bytes) | ||
- | .................................................done: | ||
- | install ok: channel:// | ||
- | </ | ||
- | |||
- | cf http:// | ||
- | |||
- | < | ||
- | [procacci@arvouin ~/ | ||
- | $ tail -8 dokuwiki.php | ||
- | |||
- | $conf[' | ||
- | |||
- | /* Ldap Options */ | ||
- | $conf[' | ||
- | $conf[' | ||
- | $conf[' | ||
- | </ | ||
- | |||
- | < | ||
- | [procacci@arvouin ~/ | ||
- | $ tail -10 doku.php | ||
- | if ($ACT == ' | ||
- | phpCAS:: | ||
- | ' | ||
- | phpCAS:: | ||
- | } | ||
- | |||
- | if($ACT == ' | ||
- | phpCAS:: | ||
- | } | ||
- | ?> | ||
- | </ | ||
- | |||
- | Fichier cas.class.php | ||
- | |||
- | |||
- | < | ||
- | [procacci@arvouin ~/ | ||
- | $ cat cas.class.php | ||
- | <? | ||
- | require_once(DOKU_INC.' | ||
- | include_once(' | ||
- | |||
- | phpCAS:: | ||
- | |||
- | class auth_cas extends auth_ldap { | ||
- | function auth_cas() { | ||
- | global $conf; | ||
- | $this-> | ||
- | $this-> | ||
- | } | ||
- | |||
- | function trustExternal($user, | ||
- | global $USERINFO; | ||
- | global $conf; | ||
- | $sticky ? $sticky = true : $sticky = false; //sanity check | ||
- | |||
- | $session = $_SESSION[$conf[' | ||
- | |||
- | if(phpCAS:: | ||
- | $user = phpCAS:: | ||
- | |||
- | if(isset($session)) { | ||
- | $_SERVER[' | ||
- | $USERINFO = $session[' | ||
- | $_SESSION[$conf[' | ||
- | $_SESSION[$conf[' | ||
- | $_SESSION[$conf[' | ||
- | $_SESSION[$conf[' | ||
- | } | ||
- | else { | ||
- | $USERINFO = $this-> | ||
- | $_SERVER[' | ||
- | $_SESSION[$conf[' | ||
- | $_SESSION[$conf[' | ||
- | $_SESSION[$conf[' | ||
- | $_SESSION[$conf[' | ||
- | } | ||
- | |||
- | return true; | ||
- | } | ||
- | |||
- | return false; | ||
- | } | ||
- | } | ||
- | ?> | ||
- | </ | ||
- | |||
- | |||
- | ---## Template rendering | ||
- | |||
- | http:// | ||
- | |||
- | monobook | ||
- | |||
- | http:// | ||
- | |||
- | < | ||
- | [procacci@arvouin ~/ | ||
- | $ wget http:// | ||
- | |||
- | [procacci@arvouin ~/ | ||
- | $ tar xvf monobook-2008-07-30.tar | ||
- | |||
- | [procacci@arvouin ~/ | ||
- | $ tail -1 local.php | ||
- | // | ||
- | |||
- | </ | ||
- | |||
- | ---## Template artic rendering | ||
- | |||
- | http:// | ||
- | |||
- | user ou group sidebar | ||
- | |||
- | http:// | ||
- | |||
- | Exemple | ||
- | |||
- | < | ||
- | [jehan@calaz ~/ | ||
- | $ cat sidebar.txt | ||
- | ====== @GROUP@ | ||
- | [[wiki: | ||
- | [[wiki: | ||
- | </ | ||
- | |||
- | |||
- | ---## HTML-wiki-converter | ||
- | |||
- | installation | ||
- | |||
- | < | ||
- | # perl -MCPAN -e ' | ||
- | # perl -MCPAN -e ' | ||
- | </ | ||
- | |||
- | usage | ||
- | |||
- | < | ||
- | html2wiki --dialect=DokuWiki / | ||
- | </ | ||
- | |||
- | ---# Upgrade | ||
- | |||
- | http:// | ||
- | |||
- | ---## backup | ||
- | |||
- | Avant tout, backup de l' | ||
- | |||
- | < | ||
- | $ cp -a dokuwiki dokuwiki-2008-05 | ||
- | </ | ||
- | |||
- | ---## download | ||
- | |||
- | < | ||
- | [procacci@arvouin ~/ | ||
- | $ wget http:// | ||
- | [procacci@arvouin ~/ | ||
- | $ tar xvfz dokuwiki-2009-02-14b.tgz | ||
- | </ | ||
- | |||
- | ---## upgrade | ||
- | |||
- | Recopie de la nouvelle version par dessus l' | ||
- | |||
- | < | ||
- | [procacci@arvouin ~/ | ||
- | $ cp -rf dokuwiki-2009-02-14/ | ||
- | </ | ||
- | |||
- | |||
- | |||
- | ---## Fichier de configuration | ||
- | |||
- | a priori les config ne sont pas detruite si tout s'est fait dans local.php, mais ici avec CAS par exemple on a touché a conf/ | ||
- | |||
- | above steps are safe when you always adhered to the advice to only change local versions of your config files(like conf/ | ||
- | User data and ACL information are never overwritten because DokuWiki only ships examples (with a .dist extension). | ||
- | |||
- | doku.php | ||
- | |||
- | < | ||
- | [procacci@arvouin ~/ | ||
- | $ diff doku.php ../ | ||
- | ... | ||
- | > // casification from http:// | ||
- | > | ||
- | > if ($ACT == ' | ||
- | > | ||
- | ... | ||
- | </ | ||
- | |||
- | |||
- | ---## fichier a retirer | ||
- | |||
- | Retrait manuel de certain fichiers | ||
- | |||
- | < | ||
- | [procacci@arvouin ~/ | ||
- | $ cat dokurem.sh | ||
- | #!/bin/bash | ||
- | |||
- | for f in `cat dokuwiki-removedFiles` | ||
- | do | ||
- | |||
- | if [ -f $f ] ; then | ||
- | ls -l $f | ||
- | rm $f | ||
- | fi | ||
- | |||
- | [procacci@arvouin ~/ | ||
- | $ bash dokurem.sh | ||
- | -rw-r--r-- 1 procacci mci 6791 mai 5 2008 dokuwiki/ | ||
- | -rw-r--r-- 1 procacci mci 291 mai 5 2008 dokuwiki/ | ||
- | -rw-r--r-- 1 procacci mci 4409 mai 5 2008 dokuwiki/ | ||
- | -rw-r--r-- 1 procacci mci 532 mai 5 2008 dokuwiki/ | ||
- | -rw-r--r-- 1 procacci mci 577 mai 5 2008 dokuwiki/ | ||
- | -rw-r--r-- 1 procacci mci 7743 mai 5 2008 dokuwiki/ | ||
- | -rw-r--r-- 1 procacci mci 2100 mai 5 2008 dokuwiki/ | ||
- | -rw-r--r-- 1 procacci mci 431 mai 5 2008 dokuwiki/ | ||
- | -rw-r--r-- 1 procacci mci 1058 mai 5 2008 dokuwiki/ | ||
- | -rw-r--r-- 1 procacci mci 574 mai 5 2008 dokuwiki/ | ||
- | |||
- | </ | ||
- | |||
- | Création initiale: | ||
- | |||