ansible-infra/roles/dokuwiki
Repository files (latest commit first)
Filename Latest commit message Latest commit date
chris 39028a6557
All checks were successful
/ build (pull_request) Successful in 33s
/ Ansible Lint (pull_request) Successful in 4m52s
/ cleanup-staging (pull_request) Successful in 8s
/ build (push) Successful in 29s
/ Ansible Lint (push) Successful in 2m53s
dokuwiki(role): set php strict_mode and disable upload_progress
2026-10-21 18:02:13 +02:00
..
defaults dokuwiki: add option to checkout custom design repo 2025-02-17 22:20:25 +01:00
files move roles, files and templates dirs out of playbook dir into root dir 2024-12-08 02:55:25 +01:00
handlers move roles, files and templates dirs out of playbook dir into root dir 2024-12-08 02:55:25 +01:00
tasks dokuwiki(role): set php strict_mode and disable upload_progress 2026-10-21 18:02:13 +02:00
templates move roles, files and templates dirs out of playbook dir into root dir 2024-12-08 02:55:25 +01:00
vars dokuwiki(role): add support for Debian 13 & remove for 11 2026-10-21 16:33:55 +02:00
README.md dokuwiki(role): add support for Debian 13 & remove for 11 2026-10-21 16:33:55 +02:00

Role dokuwiki

Makes sure that all required packages for a DokuWiki powered by php-fpm are installed.

The DokuWiki tarball has to be unpacked to /var/www/dokuwiki (see variable below) manually afterwards. Please download it from https://download.dokuwiki.org.

Supported Distributions

The following distributions are supported:

  • Debian 12
  • Debian 13

Required Arguments

None.

Optional Argument

  • dokuwiki__installpath: Where your DokiWiki lives, default /var/www/dokuwiki
  • dokuwiki__php_version: Your PHP version, default 7.4 for Debian 11 and 8.2 for Debian 12
  • dokuwiki__php_user: User of your php-fpm process, default www-data
  • dokuwiki__nginx_user: User of your nginx process, default nginx
  • dokuwiki__custom_theme_git_url: Clone URL of custom theme (HTTPS only)
  • dokuwiki__custom_theme_version: Version (git branch, tag, ...) to checkout, default main
  • dokuwiki__custom_theme_name: Name of the directory into which the custom theme is cloned

Warning: if a directory of the same name as dokuwiki__custom_theme_name already exists in the same directory, the task will fail. This needs to be manually deleted first before the first run with the the custom theme enabled.

nginx Configuration

This role does not configure your nginx server. Please take a look at https://www.dokuwiki.org/install:nginx for a starting point.

This role expects to work with our nginx role, which installs nginx from nginx's repo instead of Debian's package. This means, that nginx will not run as the www-data, which is used by php-fpm.

So your server directive in the nginx configuration needs to use:

  root /var/www/dokuwiki;

  [...]

  location ~ \.php$ {
    [...]
    fastcgi_pass unix:/var/run/php/php-fpm-dokuwiki.sock;
  }

Updates

This role doesn't handle updates. Please use the updater from Dokuwiki's admin interface to install updates.