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, Ruby, MySQL, Apache, migrate the DokuWiki data to a new instance. In this case only copy the following folders into the /opt/bitnami/apps/dokuwiki folder: data, doku_conf and htdocs/lib/plugins.
In case 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:
$ wget http://download.dokuwiki.org/out/dokuwiki-24224dc7d432e5659fc3d1b61d2fd98a.tgz
Uncompress the files and overwrite the previous files:
$ tar -xzvf dokuwiki-24224dc7d432e5659fc3d1b61d2fd98a.tgz -C /opt/bitnami/apps/dokuwiki/htdocs/ --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/apps/dokuwiki/htdocs/doku.php