www_doku_wiki
Différences
Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédenteDernière révisionLes deux révisions suivantes | ||
www_doku_wiki [2007/03/28 14:50] – thierry | www_doku_wiki [2012/02/24 21:26] – thierry | ||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
====== DokuWiki ====== | ====== DokuWiki ====== | ||
+ | |||
+ | ===== Installation - 2012 ===== | ||
+ | |||
+ | En quête d'un blog documentaire, | ||
+ | |||
+ | Donc, d' | ||
+ | 2012-01-25 " | ||
+ | ... | ||
+ | |||
+ | ==== download et untar ==== | ||
+ | |||
+ | (as root) | ||
+ | cd /var/www | ||
+ | wget http:// | ||
+ | tar -xvzf dokuwiki-2012-01-25.tgz | ||
+ | Répertoire " | ||
+ | mv dokuwiki-2012-01-25 dokuwiki | ||
+ | |||
+ | ==== permissions ==== | ||
+ | Avant d' | ||
+ | chown -R www-data: dokuwiki | ||
+ | chmod -R a-w dokuwiki | ||
+ | |||
+ | chmod -R ug+w dokuwiki/ | ||
+ | chmod -R ug+w dokuwiki/ | ||
+ | chmod ug+w dokuwiki/ | ||
+ | |||
+ | |||
+ | ==== VirtualHost Apache2 ==== | ||
+ | |||
+ | < | ||
+ | ServerAdmin < | ||
+ | ServerName < | ||
+ | | ||
+ | DocumentRoot / | ||
+ | | ||
+ | < | ||
+ | Options FollowSymLinks | ||
+ | AllowOverride None | ||
+ | Order deny,allow | ||
+ | deny from all | ||
+ | </ | ||
+ | | ||
+ | ScriptAlias /cgi-bin/ / | ||
+ | < | ||
+ | AllowOverride None | ||
+ | Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch | ||
+ | Order allow,deny | ||
+ | Allow from all | ||
+ | </ | ||
+ | | ||
+ | < | ||
+ | # | ||
+ | Options +FollowSymLinks -Indexes | ||
+ | AllowOverride FileInfo | ||
+ | | ||
+ | Order allow,deny | ||
+ | allow from all | ||
+ | | ||
+ | AddHandler cgi-php5 .php | ||
+ | Action cgi-php5 / | ||
+ | </ | ||
+ | | ||
+ | # Ceinture et bretelles: car normalement, | ||
+ | # mais je suis paranoïaque: | ||
+ | < | ||
+ | Order allow,deny | ||
+ | Deny from all | ||
+ | Satisfy All | ||
+ | </ | ||
+ | | ||
+ | ErrorLog ${APACHE_LOG_DIR}/ | ||
+ | | ||
+ | # Possible values include: debug, info, notice, warn, error, crit, | ||
+ | # alert, emerg. | ||
+ | LogLevel warn | ||
+ | | ||
+ | CustomLog ${APACHE_LOG_DIR}/ | ||
+ | | ||
+ | </ | ||
+ | | ||
+ | ==== Sécurité ==== | ||
+ | |||
+ | Ceci ne devrait pas fonctionné: | ||
+ | |||
+ | Sinon, il y a un problème de droit a corrigé comme indiqué ici: http:// | ||
+ | |||
+ | FIXME : http:// | ||
+ | |||
+ | ==== installer ==== | ||
+ | |||
+ | Par là, donc: http:// | ||
+ | |||
+ | Pour ma part: | ||
+ | Initial ACL policy: Public Wiki | ||
+ | |||
+ | |||
+ | ==== dokuwiki as blog ==== | ||
+ | |||
+ | |||
+ | Installer le template qui va bien: http:// | ||
+ | |||
+ | Installer quelques plugins recommandé: | ||
+ | *captch: http:// | ||
+ | *video share: http:// | ||
+ | *gallery http:// | ||
+ | |||
+ | ==== Misc ==== | ||
+ | |||
+ | === Permalink === | ||
+ | |||
+ | FIXME | ||
+ | |||
+ | === https === | ||
+ | |||
+ | FIXME | ||
+ | |||
+ | ===== plugin ditaa ===== | ||
+ | |||
+ | Lien: http:// | ||
+ | |||
+ | Pour dessiner des graphs dans dokuwiki... | ||
+ | |||
+ | ===== Rechercher ===== | ||
+ | Lien: http:// | ||
+ | |||
+ | Aprés un déménagement, | ||
+ | |||
+ | Il faut mettre a jour l' | ||
+ | |||
+ | Donc, j'ai fait:\\ | ||
+ | Devenir le user " | ||
+ | $ su | ||
+ | # su www-data | ||
+ | Et puis dans: **''/ | ||
+ | Executer: | ||
+ | / | ||
+ | Le " | ||
+ | |||
===== Restrictions ===== | ===== Restrictions ===== | ||
+ | |||
==== Interdire l' | ==== Interdire l' | ||
Il faut éditer le code php pour restreindre l' | Il faut éditer le code php pour restreindre l' | ||
Ligne 6: | Ligne 146: | ||
< | < | ||
# cd / | # cd / | ||
- | # vi main.php | + | # vi actions.php |
</ | </ | ||
Trouver la fonction **act_permcheck** qui me semble definir les droits en fonctions de l' | Trouver la fonction **act_permcheck** qui me semble definir les droits en fonctions de l' | ||
Ligne 21: | Ligne 161: | ||
... | ... | ||
</ | </ | ||
- | En clair: on force le droit minimum **WRITE** pour utiliser les actions sus-nommés.\\ | + | En clair: on force le droit minimum **WRITE** pour utiliser les actions sus-nommées.\\ |
- | Sinon, par defaut, le code reclame | + | Sinon, par défaut, le code réclame |
+ | |||
+ | ===== Conversions PmWiki vers DokuWiki ===== | ||
+ | Rien de plus simple ! | ||
+ | |||
+ | On va sur ce site, et on copy, paste, click, copy, paste: http:// | ||
www_doku_wiki.txt · Dernière modification : 2012/02/24 21:33 de thierry