CMS

Host DokuWiki on VeloxaHost

DokuWiki is a wiki that stores every page as a plain text file, so it needs no database and backs up with a simple copy. Documentation teams, internal IT departments and homelab owners self-host it for runbooks, manuals and team knowledge that stays readable even outside the wiki.

The one-click install puts Apache and Ubuntu's PHP 8.3 on Ubuntu 24.04, downloads the current stable DokuWiki release into /var/www/html/dokuwiki, and hands it to the www-data user. DokuWiki's current release needs PHP 8.2 or newer, so the stock PHP fits.

What it needs

A web server and PHP; nothing else. DokuWiki publishes no memory figure, and a small team wiki runs comfortably in 512 MB. Disk grows with pages, page history (the attic) and uploaded media, so 10 GB leaves plenty of room. Its recommended PHP extensions include mbstring, gd and intl; add them for faster UTF-8 handling, image resizing and locale-aware sorting:

apt install -y php-mbstring php-gd php-intl && systemctl reload apache2

Reaching it and finishing setup

Every server gets a block of ports (10 by default) on the region's shared IPv4 address; the first forwards to SSH. Forward another to port 80 from the server page, then open http://<shared address>:<port>/dokuwiki/install.php to name the wiki and create the superuser. Delete install.php afterwards. Ports 80 and 443 on IPv4 need a dedicated IPv4 address, a paid add-on with limited availability; IPv6 is not available in US East yet. You can also work on the server from the browser terminal on its page.

Lock down the data folder

DokuWiki ships .htaccess files that stop the web from reading data, conf and bin, but Ubuntu's Apache ignores them: /var/www has AllowOverride None. DokuWiki's security page asks you to check: if /dokuwiki/data/pages/wiki/dokuwiki.txt opens in a browser, your pages are public. Turn .htaccess support on for the wiki:

printf '<Directory /var/www/html/dokuwiki>\n  AllowOverride All\n</Directory>\n' \
  > /etc/apache2/conf-available/dokuwiki.conf
a2enconf dokuwiki && a2enmod rewrite && systemctl reload apache2

Install it yourself

  1. On Ubuntu 24.04, install Apache and PHP with the recommended extensions.
    apt install -y apache2 php libapache2-mod-php php-xml php-mbstring php-gd php-intl
    
  2. Download and unpack the stable release.
    curl -fsSL https://download.dokuwiki.org/src/dokuwiki/dokuwiki-stable.tgz | tar -xz -C /var/www/html
    mv /var/www/html/dokuwiki-* /var/www/html/dokuwiki
    
  3. Give the web server ownership.
    chown -R www-data:www-data /var/www/html/dokuwiki
    
  4. Allow .htaccess for the wiki, as in the section above.
  5. Run install.php in a browser, then delete it.

FAQ

How do I back up DokuWiki?

Copy the whole dokuwiki directory; pages, history, media, users and settings are all files in it. tar czf wiki-backup.tgz -C /var/www/html dokuwiki makes one archive. On VeloxaHost, also turn on automatic snapshots (hourly to weekly, kept 1 to 30 days) or scheduled backups.

How do I upgrade DokuWiki?

DokuWiki's documented way is to back up, read the changelog, then unpack the new release over the old one, overwriting every file. Your pages and settings made in the Configuration Manager are kept, because they live in files the release does not ship. The Upgrade plugin automates the same steps from the admin page.

Does DokuWiki need a database?

No. That is its main difference from MediaWiki, which stores pages in MySQL or MariaDB. Full-text search uses DokuWiki's own index files.

Can it send password-reset emails from VeloxaHost?

Yes, through an SMTP provider and the SMTP plugin. VeloxaHost blocks outbound TCP port 25 by default, so use your provider's port 587 or 465.

What license is DokuWiki under?

The GNU General Public License version 2.

Which VeloxaHost size fits DokuWiki?

A Veloxa Nano covers the recommended size: 1 vCPU, 1 GB RAM and 25 GB of disk for $4 a month, billed at $0.01 an hour and capped at the monthly price.