A Debian package for DokuWiki exists in the official Debian repository and can be installed through the usual Debian tools (i.e. apt
).
However, we generally do not recommend installing DokuWiki as a Debian package for several reasons:
You can find details on the official package at these sources:
Additional details can be found at the DokuWiki page on the Debian Wiki.
Instead of relying on the Debian package, it is recommended to simply install the webserver and PHP through the package manager and install DokuWiki from the sources.
This can be as easy as the following for a simple Apache mod_php setup:
$> sudo apt update $> sudo apt install php libapache2-mod-php php-xml php-json php-mbstring php-zip php-intl php-gd $> sudo systemctl restart apache2.service $> wget https://download.dokuwiki.org/src/dokuwiki/dokuwiki-stable.tgz $> tar xzvf dokuwiki-stable.tgz $> sudo mv dokuwiki-*a /var/www/html/dokuwiki $> sudo chown -R www-data:www-data /var/www/html/dokuwiki
sudo ufw allow 'Full'