Benutzer-Werkzeuge

Webseiten-Werkzeuge


becki:linux:dokuwiki_tips

Dies ist eine alte Version des Dokuments!


Dokuwiki Tips

This pages replaces beckisownwiki

Updating Dokuwiki

This manual presumes that you saved a copy of the original config files with the extension .org before you made any changes!

  • Download and extract newest Dokuwiki version on the server
  • Locate all files with the extension .dist (eg conf/local.php.dist) in the old dokuwiki installation and copy their counterparts without the .dist extension (eg conf/local.php) to the new dokuwiki installation
  • Make a list fo all files with the extension .org (eg. old/conf/acronyms.conf.org) in the old dokuwiki installation. Then go to the new dokuwiki installation and copy the corresponding original files to <file>.org (eg. cp new/conf/acronyms.conf new/conf/acronyms.conf.org)
  • In the new dokuwiki installation patch <file> with the modifications: merge <file> old/<file>.org old/<file>. Do this for all files on the list.
  • Copy additional Interwiki Shortcut images to lib/images/interwiki
  • Copy additional smiley images to lib/images/smileys
  • chmod a-w install.php
  • Set owner and group of newDokuwiki/ recursively to root:root
  • Set owner and group of newDokuwiki/conf, newDokuwiki/data and newDokuwiki/lib recursively to the ID of your webserver eg. apache:apache
  • delete unnecessary language translations
  • Download and install fresh revisions of previously installed additional plugins from the web
  • copy data:
    cp -a oldDokuwiki/data/attic/* newDokuwiki/data/attic
    cp -a oldDokuwiki/data/pages/* newDokuwiki/data/pages
    cp -a oldDokuwiki/data/media/* newDokuwiki/data/media
    cp -a oldDokuwiki/data/meta/*  newDokuwiki/data/meta

See also Upgrading Configuration Files with a three-way File Merge & http://www.dokuwiki.org/install:diffupgrade

FIXME Move content from beckisownwiki to here!

Updating Dokuwiki with git

This is still experimental!

Info source

Download repository with:

git clone git://github.com/splitbrain/dokuwiki.git # or behind a firewall:
git clone http://github.com/splitbrain/dokuwiki.git

git branch shows existing local branches, while git branch -r causes the „remote-tracking“ branches to be listed, and option -a shows both. See git-branch

With Git it is not possible to directly swich to a different path on a cloned repository like in Mercurial. Instead first you have to create a new (local) branch wich „tracks“ the specified remote brach (origin/stable) and then checkout (=update) this branch to your working directory. The following command does both steps at once:

git checkout -b stable origin/stable

Now you can pull all needed updates whenever a new release is made:

git pull

Add an Interwiki Shortcut

  1. Add URL in dokuwiki/conf/interwiki.conf
  2. Add the interwiki icon at dokuwiki/lib/images/interwiki. Possible formats: .gif and .png, but not .ico (Tested with version 2007-06-26b)
  3. Delete the cache: rm -rf dokuwiki/data/cache/*
  4. Reload the page in browser

See also http://www.dokuwiki.org/interwiki

Linebreak Plugin

FIXME Still necessary?

Just install the linebreak plugin. No additional config is necessary.

URL Rewriting

Make sure that .htaccess file is respected with

<Directory /path/to/dokuwiki>
  AllowOverride All
</Directory>

or

<Directory /var/www/htdocs>
  AllowOverride All
</Directory>

in /etc/apache/httpd.conf

Uncomment everything beginning with #Rewrite… in /var/www/htdocs/dokuwiki/.htaccess, but not the line #RewriteBase /dokuwiki.

Enable rewriting in admin config menu by setting it to type 1

See also: wiki:rewrite

monospaced in blue

lib/tpl/default/design.css — 2007-01-06 17:16

diff design.css.org design.css

465a466
>   color: darkblue;
Cookies helfen bei der Bereitstellung von Inhalten. Diese Website verwendet Cookies. Mit der Nutzung der Website erklären Sie sich damit einverstanden, dass Cookies auf Ihrem Computer gespeichert werden. Außerdem bestätigen Sie, dass Sie unsere Datenschutzerklärung gelesen und verstanden haben. Wenn Sie nicht einverstanden sind, verlassen Sie die Website. Weitere Information
becki/linux/dokuwiki_tips.1270653376.txt.gz · Zuletzt geändert: 2010-04-07 15:16 von becki

Impressum - Datenschutzerklärung