install:permissions
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
install:permissions [2017-09-07 05:12] – [File Permissions, a short reminder] 73.97.184.209 | install:permissions [2023-06-15 14:03] – old revision restored (2022-11-01 11:10) saggi | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Setting up file permissions ====== | ====== Setting up file permissions ====== | ||
- | [[..:DokuWiki]] stores its data in plain text files. To be able to do this, DokuWiki needs sufficient permissions to write to these files. At the same time, leaving the permissions too loose can introduce security risks. | + | [[: |
DokuWiki is executed by PHP, so the PHP process needs to be able to write to these files. | DokuWiki is executed by PHP, so the PHP process needs to be able to write to these files. | ||
Line 11: | Line 11: | ||
* '' | * '' | ||
- | The following files are copied by the installer.php from the respective *.dist files and given the correct permissions for the web process automatically: | + | The following files are copied by the '' |
* '' | * '' | ||
- | * '' | + | * '' |
- | * '' | + | * '' |
* '' | * '' | ||
+ | |||
===== Windows (using Microsoft IIS) ===== | ===== Windows (using Microsoft IIS) ===== | ||
Line 73: | Line 74: | ||
$group = $grp[' | $group = $grp[' | ||
}else{ | }else{ | ||
- | // try to create a file and read it' | + | // try to create a file and read its ids |
$tmp = tempnam ('/ | $tmp = tempnam ('/ | ||
$uid = fileowner($tmp); | $uid = fileowner($tmp); | ||
Line 135: | Line 136: | ||
by DokuWiki. | by DokuWiki. | ||
+ | ==== Tip: Using the setgid Bit ==== | ||
- | |||
- | ==== Tip: Using the setgid Bit ==== | ||
If you have commandline access to your server, you can use the '' | If you have commandline access to your server, you can use the '' | ||
* data directory: | * data directory: | ||
- | * '' | + | * '' |
* '' | * '' | ||
* everything below the data directory: | * everything below the data directory: | ||
Line 148: | Line 148: | ||
In order to fully retain correct permissions, | In order to fully retain correct permissions, | ||
- | |||
install/permissions.txt · Last modified: 2024-07-31 10:51 by 116.110.40.178