On 2023-08-22, Mike Fischer <[email protected]> wrote:
>
>> Am 23.08.2023 um 00:45 schrieb [email protected]:
>> 
>> Hello
>> 
>> I have installed dokuwiki on OBSD 7.3, but i can not run install.php from
>> my Browser.
>> 
>> php 8.1 is running.
>> 
>> Permissions after installation:
>> 
>> ls -la /var/www/dokuwiki/
>> total 240
>> drwxr-xr-x   8 root  daemon    512 Aug 22 22:20 .
>> drwxr-xr-x  13 root  daemon    512 Aug 22 09:32 ..
>> -rw-r--r--   1 root  daemon   1688 Aug 22 22:20 .htaccess
>> -rw-r--r--   1 root  bin      1688 Sep  3  2022 .htaccess.dist
>> -rw-r--r--   1 root  bin     18092 Sep  3  2022 COPYING
>> -rw-r--r--   1 root  bin       308 Sep  3  2022 README
>> -rw-r--r--   1 root  bin       918 Sep  3  2022 SECURITY.md
>> -rw-r--r--   1 root  bin        19 Sep  3  2022 VERSION
>> drwxr-xr-x   2 root  daemon    512 Aug 22 22:20 bin
>> -rw-r--r--   1 root  bin      1356 Sep  3  2022 composer.json
>> -rw-r--r--   1 root  bin     22553 Sep  3  2022 composer.lock
>> drwxr-xr-x   2 www   daemon    512 Aug 22 22:20 conf
>> drwxr-xr-x  13 www   daemon    512 Aug 22 22:20 data
>> -rw-r--r--   1 root  bin      3644 Sep  3  2022 doku.php
>> -rw-r--r--   1 root  bin     20010 Sep  3  2022 feed.php
>> drwxr-xr-x  22 root  daemon   1536 Aug 22 22:20 inc
>> -rw-r--r--   1 root  bin      2537 Sep  3  2022 index.php
>> -rwxr-xr-x   1 root  bin     20741 Sep  3  2022 install.php
>> drwxr-xr-x   8 root  daemon    512 Aug 22 22:20 lib
>> drwxr-xr-x  11 root  daemon    512 Aug 22 22:20 vendor
>> 
>> Browser message:
>> 
>> DokuWiki Setup Error
>> 
>> The logdir ('log') at ./data/log is not found, isn't accessible or
>> writable. You should check your config and permission settings. Or maybe
>> you want to run the installer?
>> 
>> 
>> What could be wrong please?
>
> For DokuWiki to be able to run the install.php script the web browser (or 
> more precisely PHP as running from the web browser) needs to have certain 
> permissions.
>
> Generally the web browser (and PHP) will run as user www. So in order for the 
> ./data/log directory to be used permissions need to allow the creation files 
> and directories therein. The default package install currently does this 
> however:
>  2 drwxr-xr-x   2 root  daemon    512 Jul 26 00:52 log/

That would be a bug in the port, I'll fix it.


> Just chown www ./data/log and it should work.
>
> See also: https://www.dokuwiki.org/install:permissions
>
> HTH
> Mike
>
>


-- 
Please keep replies on the mailing list.

Reply via email to