Change to the directory where you installed your wiki this guide assumes the directory is /var/www/html also we are upgrading with the stable version of DokuWiki if you need another version localized or other please adjust the guide accordingly.
Continue using root or sudo. First create a backup of the current wiki.
cd /var/www/html tar cvfp - your-wiki-site | gzip -c > your-wiki-site.backup.tar.gz
Next download the latest stable dokiwiki version.
wget https://download.dokuwiki.org/src/dokuwiki/dokuwiki-stable.tgz
Unpack the new version and set the right permissions this guide assumes www-data is used for the permissions.
tar zxvf dokuwiki-stable.tgz chown -R www-data: dokuwiki-xxxx.xx.xx
Upgrade DokuWiki
'cp' -af dokuwiki-xxxx-xx-xx/* /path/to/your-wiki-site/
If you removed the DokuWiki footer buttons and text you will need to remove them again.
cd /var/www/html/your-wiki-site/lib/tpl/dokuwiki/ vi tpl_footer.php
Locate the following lines.
<div class="buttons"> <?php tpl_license('button', true, false, false); // license button, no wrapper $target = ($conf['target']['extern']) ? 'target="' . $conf['target']['extern'] . '"' : ''; ?> <a href="https://www.dokuwiki.org/donate" title="Donate" <?php echo $target?>><img src="<?php echo tpl_basedir(); ?>images/button-donate.gif" width="80" height="15" alt="Donate" /></a> <a href="https://php.net" title="Powered by PHP" <?php echo $target?>><img src="<?php echo tpl_basedir(); ?>images/button-php.gif" width="80" height="15" alt="Powered by PHP" /></a> <a href="//validator.w3.org/check/referer" title="Valid HTML5" <?php echo $target?>><img src="<?php echo tpl_basedir(); ?>images/button-html5.png" width="80" height="15" alt="Valid HTML5" /></a> <a href="//jigsaw.w3.org/css-validator/check/referer?profile=css3" title="Valid CSS" <?php echo $target?>><img src="<?php echo tpl_basedir(); ?>images/button-css.png" width="80" height="15" alt="Valid CSS" /></a> <a href="https://dokuwiki.org/" title="Driven by DokuWiki" <?php echo $target?>><img src="<?php echo tpl_basedir(); ?>images/button-dw.png" width="80" height="15" alt="Driven by DokuWiki" /></a> </div>
And replace them with <!-- at the top and --> at the buttom like this.
<!-- <div class="buttons"> <?php tpl_license('button', true, false, false); // license button, no wrapper $target = ($conf['target']['extern']) ? 'target="' . $conf['target']['extern'] . '"' : ''; ?> <a href="https://www.dokuwiki.org/donate" title="Donate" <?php echo $target?>><img src="<?php echo tpl_basedir(); ?>images/button-donate.gif" width="80" height="15" alt="Donate" /></a> <a href="https://php.net" title="Powered by PHP" <?php echo $target?>><img src="<?php echo tpl_basedir(); ?>images/button-php.gif" width="80" height="15" alt="Powered by PHP" /></a> <a href="//validator.w3.org/check/referer" title="Valid HTML5" <?php echo $target?>><img src="<?php echo tpl_basedir(); ?>images/button-html5.png" width="80" height="15" alt="Valid HTML5" /></a> <a href="//jigsaw.w3.org/css-validator/check/referer?profile=css3" title="Valid CSS" <?php echo $target?>><img src="<?php echo tpl_basedir(); ?>images/button-css.png" width="80" height="15" alt="Valid CSS" /></a> <a href="https://dokuwiki.org/" title="Driven by DokuWiki" <?php echo $target?>><img src="<?php echo tpl_basedir(); ?>images/button-dw.png" width="80" height="15" alt="Driven by DokuWiki" /></a> </div> -->