Thanks, your patience is appreciated.
turnermm wrote
/var/www/dokuwiki-test/test_dir [/m] is not your savedir. The savedir should be [m]dokuwiki-test/data, unless you've changed its name or I'm missing something.
My "interpretation" of the documentation is that it shouldn't make any difference:-
Configuration Setting: savedir
This is the path where all files will be stored. It may be an absolute path, or a path relative to the directory where DokuWiki is installed. It needs to be writable by the webserver.
Type: String
Default: ./data
Inside this directory are multiple subdirectories and the changelog.
Calling the symlink data doesn't work, which is why I tried calling it something else. E.g.:-
# chown -vR www-data:www-data /media/scott/DokuWiki_test | grep -v "^changed"
[/color] No errors...
ls -al /var/www/dokuwiki-test/data
lrwxrwxrwx 1 www-data www-data 35 Aug 28 12:09 /var/www/dokuwiki-test/data -> /media/scott/DokuWiki_test/test_dir
[/color]
grep savedir /var/www/dokuwiki-test/conf/dokuwiki.php
$conf['savedir'] = './data'; //where to store all the files
[/color]
apachectl configtest
Syntax OK
[/color]
DokuWiki Setup Error
The datadir ('pages') at ./data/pages is not found, isn't accessible or writable. You should check your config and permission settings.
Presumably because the original directory permissions of a
/media mount (by a general user) are
drwxr-xr-x 12 $GeneralUser $GeneralUser. chown doesn't change that, (nor does a subsequent symlink) e.g.:- when the mounted SD card is chowned to www-data (
chown -vR www-data:www-data /media/scott/DokuWiki-test will give no errors), but after symlinking to
$DokuWiki/data
ls -al /var/www/dokuwiki-test/data/pages
total 28
drwxr-xr-x 5 www-data www-data 4096 Aug 6 18:52 .
drwxr-xr-x 12 *scott* *scott* 4096 Aug 28 00:31 ..
drwxr-xr-x 2 www-data www-data 4096 Aug 4 22:06 playground
-rw-r--r-- 1 www-data www-data 72 Aug 6 18:34 sidebar.txt
-rw-r--r-- 1 www-data www-data 1752 Aug 6 19:45 __template.txt
drwxr-xr-x 2 www-data www-data 4096 Aug 9 16:41 test
drwxr-xr-x 2 www-data www-data 4096 Aug 4 20:25 wiki
[/color]
Nothing in apache error.log. :(
However, if the contents of a working $DokuWiki/data are rsynced to a SD card formatted ext4, e.g.
/dev/sdb1,
and then mounted at $DokuWiki/data it works fine (this means everything on
/dev/sdb1 is owned by www-data, permissions are identical to the standard DokuWiki/data dir).
mount | grep dokuwiki
/dev/sdb1 on /var/www/dokuwiki-test/data type ext4 (rw,relatime,data=ordered)
[/color]
aspire www # ls -al /var/www/dokuwiki-test/data
total 96
drwxr-xrwx 12 www-data www-data 4096 Aug 28 13:04 .
drwxr-xr-x 8 www-data www-data 4096 Aug 28 13:14 ..
drwxr-xr-x 5 www-data www-data 4096 Aug 6 18:35 attic
drwxr-xr-x 18 www-data www-data 4096 Aug 4 21:57 cache
-rw-r--r-- 1 www-data www-data 18881 Jun 26 21:24 deleted.files
-rw-r--r-- 1 www-data www-data 32 Jun 26 21:24 _dummy
-rw-r--r-- 1 www-data www-data 139 Jun 26 21:24 .htaccess
drwxr-xr-x 2 www-data www-data 4096 Aug 10 13:34 index
drwxr-xr-x 2 www-data www-data 4096 Aug 28 13:17 locks
drwxr-xr-x 4 www-data www-data 4096 Aug 6 18:52 media
drwxr-xr-x 2 www-data www-data 4096 Aug 4 20:25 media_attic
drwxr-xr-x 3 www-data www-data 4096 Aug 6 18:59 media_meta
drwxr-xr-x 9 www-data www-data 4096 Aug 28 00:13 meta
drwxr-xr-x 5 www-data www-data 4096 Aug 6 18:52 pages
-rw-r--r-- 1 www-data www-data 6516 Jun 26 21:24 security.png
-rw-r--r-- 1 www-data www-data 12093 Jun 26 21:24 security.xcf
drwxr-xr-x 2 www-data www-data 4096 Aug 6 18:58 tmp
[/color]
[uncertain] :-/