DokuWiki

It's better when it's simple

User Tools

Site Tools


install:upgrade

Upgrading DokuWiki

Note: if you installed DokuWiki through your Linux Distribution's package manager (eg. using a Debian or Fedora package) or similar tools you should also use the same package manager to upgrade your DokuWiki. Descriptions on this page are meant for standard, manual installations as described on the install page only.

DokuWiki is very simple to upgrade. Its file layout is organized in a way that avoids overwriting any user content, which means an upgrade generally is just unpacking a new version on top of an old one. You should first try the simple instructions given here, if you encounter problems or the instructions are not detailed enough for you, read the details in the section below. Mac users should use Terminal; copying files via Finder will delete all data.

  • Step 1: Make a backup of your DokuWiki, this is not necessarily needed but recommended
    • Example:
      tar zcpfv dokuwiki-backup.tar.gz /path/to/dokuwiki
  • Step 2: Read the changelog to see if there are any special things to consider
  • Step 3: Download the newest release from the download site.
    • cd ~
      wget http://.../dokuwiki-xxxx-xx-xx.tgz
  • Step 4: Unpack the distribution tarball and upload/copy the files over your previous installation. Make sure to overwrite all files when prompted.
    • tar zxvf dokuwiki-xxxx-xx-xx.tgz
      'cp' -af dokuwiki-xxxx-xx-xx/* /path/to/dokuwiki/

      The quotes on cp assure that it will run as is, even if an alias is set.

    • Check copied files ownership and permissions (for details see permissions).
  • Step 7: Wait a day for the update notifications to go away. Alternatively, you can speed up the process by following the steps in Update Check

Note: Yes, we explicitly recommend overwriting your old installation. If you adhered to the advice of defining config options in *.local files only (the Configuration Manager does this automatically) your previous config settings will not be overwritten. The same is true for all your pages and media files. Using the overwrite approach will save you a lot of trouble with keeping page revisions correctly working as these are depending on file modification time-stamps.

Pitfall on suhosin php extension

DokuWiki version since 2015-08-10 “Detritus” requires some special settings in suhosin php extension (if installed), otherwise edit page and plugin update/install won't work. Please refer to DokuWiki Installation for detailed instruction.

Troubleshooting

The following pages should give you hints on common post-upgrade problems:

  • caching – purge the cache if things look strange or error messages appear
  • updatecheck – if update notifications persist
  • toolbar – Quickbuttons and JavaScript problems
  • searchindex – if search box gives you no result

If you get errors about missing/non-writable directories, you probably didn't read the changelog carefully enough. When upgrading to Angua you need to create two new directories and make them writable:

  • data/media_attic
  • data/media_meta

Alternative Ways

Here are a few different upgrade descriptions, provided by users. They might be slightly out of date.

Upgrading an Old Distribution

When upgrading from a distribution which is a few or more years old, it is best to upgrade in stages, one year at a time, using the steps described above. You can get old distributions from the download archive.

install/upgrade.txt · Last modified: 2024-02-22 21:33 by 84.15.186.150

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki