FS#73446 - [dokuwiki] doesn't work with php7-fpm

Attached to Project: Community Packages
Opened by Daniel (4censord) - Friday, 21 January 2022, 11:40 GMT
Last edited by Buggy McBugFace (bugbot) - Saturday, 25 November 2023, 20:03 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Sergej Pupykin (sergej)
Architecture All
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No


Not quite sure if this is considered a dokuwiki or php-fpm packaging problem.


Trying to run the dokuwiki installer with php-fpm fails with

The installer found some problems, indicated below. You can not continue
until you have fixed them.

{DOCUMENT_ROOT}/conf/ is not writable by DokuWiki. You need to fix the
permission settings of this directory!

The dokuwiki config directory is located at `/etc/webapps/dokuwiki/.

The php-fpm7.service specifies `ProtectSystem=full`, which disallows writes to `/etc`

Additional info:
* php7-fpm 7.4.27-1
* nginx 1.20.2-1
* Dokuwiki installed with nginx as described in the wiki

Steps to reproduce:

* Fresh Arch
* install nginx, php7-fpm, dokuwiki
* Edit nginx config as in the wiki (nginx.conf attached)
* start nginx, php-fpm
* open http://localhost:80/install.php in a browser

Attached is a Vagrant file that automates those steps.


* (Really Bad) Don't use `ProtectSystem=full` in php-fpm
* (Mediocre) Ship php-fpm with `ReadWritePaths=/etc/webapps/`
* (Good) Ship dokuwiki with a systemd service dropin like


This task depends upon

Closed by  Buggy McBugFace (bugbot)
Saturday, 25 November 2023, 20:03 GMT
Reason for closing:  Moved
Additional comments about closing:  https://gitlab.archlinux.org/archlinux/p ackaging/packages/dokuwiki/issues/1
Comment by Tom Moss (Redglyph) - Sunday, 08 May 2022, 11:58 GMT
Same issue with php-fpm 8.1.4-1 (and NGINX 1.20-2.1)

IMO a simple option would be to move the `conf` directory under `/var/lib/dokuwiki` alongside `data`. Even if it's configuration, it's local app configuration accessed from a web application, it has nothing to do under `/etc` in the first place.
Comment by Toolybird (Toolybird) - Wednesday, 17 May 2023, 03:49 GMT
Still an issue with latest pkgs?
Comment by Daniel (4censord) - Wednesday, 17 May 2023, 08:06 GMT
Still an issue. Diff to use the poc I attached with the newer versions attached
   diff (0.9 KiB)