This shows you the differences between two versions of the page.
en:linux:dokuwiki [2011/09/17 14:21] matthieu |
en:linux:dokuwiki [2012/06/23 19:21] (current) matthieu |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | {{tag>en en:linux en:serveur en:web en:wiki}} | + | {{tag>en en:linux en:server en:web en:wiki}} |
====== DokuWiki ====== | ====== DokuWiki ====== | ||
Dokuwiki is one of the best open source wiki.\\ | Dokuwiki is one of the best open source wiki.\\ | ||
Line 39: | Line 39: | ||
<code> | <code> | ||
/opt/dokuwiki/bin# su www-data | /opt/dokuwiki/bin# su www-data | ||
- | /opt/dokuwiki/bin$ php indexer.php | + | /opt/dokuwiki/bin$ php indexer.php -c |
Searching pages... 96 pages found. | Searching pages... 96 pages found. | ||
cuisine:caramelbeurresale... done. | cuisine:caramelbeurresale... done. | ||
Line 54: | Line 54: | ||
The Sitemap index is read by Google to index the website. | The Sitemap index is read by Google to index the website. | ||
- | To enable it, you need : | + | To enable it, you need to change the "sitemap" option to 1 |
- | * create the file sitemap.xml.gz owned by www-data : | + | |
- | <code> | + | The sitemap file is available with the path /wiki/doku.php?do=sitemap, example : http://www.bouthors.fr/wiki/doku.php?do=sitemap. |
- | # cd /opt/dokuwiki | + | |
- | /opt/dokuwiki# touch sitemap.xml.gz | + | |
- | /opt/dokuwiki# chown www-data sitemap.xml.gz | + | |
- | /opt/dokuwiki# | + | |
- | </code> | + | |
- | + | ||
- | * Change the "sitemap" option to 1 | + | |
- | + | ||
- | The file http://www.bouthors.fr/wiki/sitemap.xml.gz is automatically updated by dokuwiki. | + | |
===== Backup ===== | ===== Backup ===== |