virtualMachinedokuwiki

Upgrade DokuWiki

Since DokuWiki 20140929d-0, Bitnami includes the DokuWiki Upgrades plugin by default. If you have installed this version or above we recommend to use the plugin’s process. Otherwise, if you have a version of DokuWiki lower than 20140929d, you have to use the manual upgrade.

Upgrade DokuWiki using the Upgrade plugin

This is the easiest and recommended way to upgrade DokuWiki.

  • Log in to DokuWiki using the administrator credentials and access to your administrator panel.
  • In the “Additional Plugins” section, click the “Wiki Upgrade” link and continue with the upgrade wizard.

At the end of the process, the latest version of DokuWiki will be installed.

Manually upgrade DokuWiki

It is strongly recommended that you create a backup before starting the update process. If you have important data, it is advisable that you create and try to restore a backup to ensure that everything works properly.

There are two different ways to upgrade your application.

*If you want to upgrade the application and all Stack components like PHP and Apache, migrate the DokuWiki data to a new instance. In this case, copy the data, doku_conf and lib/plugins folders into the /opt/bitnami/dokuwiki directory.

  • If you only want to upgrade the application code without modifying any other Stack components, follow the official DokuWiki guide to upgrade the application:

    • Download the new version with wget and the link from the DokuWiki downloads page (replace the VERSION placeholder with the latest version you will find in the official DokuWiki downloads page):

        $ wget http://download.dokuwiki.org/out/dokuwiki-VERSION.tgz
      
    • Uncompress the files and overwrite the previous files:

        $ tar -xzvf dokuwiki-VERSION.tgz -C /opt/bitnami/dokuwiki --strip-components 1
      
    • Check the new version is running in the Admin panel. Note that DokuWiki might continue to show the update message. To avoid this, wait one day to fix it or just “touch” the doku.php file:

        $ touch /opt/bitnami/dokuwiki/doku.php
      
Last modification February 9, 2023