archwiki: fix directory permissions
!51 (closed) set too strict permissions for the archwiki
home directory:
- home directory needs 751 - nginx accesses it to serve static files
- cache and sessions directories are used only by PHP -> 750
- uploads is public -> 755
Note that the "fix home permissions" task was duplicated. Other tasks fixing permissions were moved above.
TODO: what to do with the uploads
directory? It seems unused - the default value for $wgUploadDirectory is "{$IP}/images"
since MW 1.8 and we don't override it anywhere, so all uploaded files should be served from public/images/
.
Merge request reports
Activity
assigned to @jelle
@jelle any clue about this? I've never really touched the wiki.
added 5 commits
-
e7eabc84...85814c03 - 4 commits from branch
archlinux:master
- cae1ea74 - archwiki: fix directory permissions
-
e7eabc84...85814c03 - 4 commits from branch
@jelle: can you show us what is the current content of the
uploads
directory? It might be that they were re-uploaded to thepublic/images/
directory...added 23 commits
-
cae1ea74...1b6fad6a - 22 commits from branch
archlinux:master
- 457108e3 - archwiki: fix directory permissions
-
cae1ea74...1b6fad6a - 22 commits from branch
ls -lh /srv/http/archwiki/uploads/ total 8.0K -rw-r--r-- 1 archwiki archwiki 12 Aug 31 2019 mw-UIDGenerator-UID-nodeid -rw-r--r-- 1 archwiki archwiki 22 Mar 6 18:44 mw-UIDGenerator-UUID-128 -rw-r--r-- 1 archwiki archwiki 0 Aug 31 2019 transform_6098ce73cd16.png -rw-r--r-- 1 archwiki archwiki 0 Aug 31 2019 transform_8558fc3e67da.png -rw-r--r-- 1 archwiki archwiki 0 Aug 31 2019 transform_a397b4bc06cc.png -rw-r--r-- 1 archwiki archwiki 0 Aug 31 2019 transform_b8fd26976379.png
But I can't find them here:
find /srv/http/archwiki/public/images -iname '*transform_6098ce73cd16.png*'
And I've listed both duplicate files and they don't appear there.
mentioned in merge request !58 (merged)
Hmm, the
transform_*
files are empty and thosemw-UIDGenerator-*
files seem like some internal stuff (see e.g. this bug report). But I wonder where theuploads
directory is still referenced - can't find any such place...added 2 commits
Actually, the
uploads
directory is not the issue here, so I think we should leave it for later... Let's fix the permissions first.Edited by Jakub Klinkovskýadded 7 commits
-
e0328bcf...18815e7e - 6 commits from branch
archlinux:master
- 9f954416 - archwiki: fix directory permissions
-
e0328bcf...18815e7e - 6 commits from branch
added 14 commits
-
9f954416...8ee3d76b - 13 commits from branch
archlinux:master
- 7db1af01 - archwiki: fix directory permissions
-
9f954416...8ee3d76b - 13 commits from branch
mentioned in commit 29e66580