getgrav / getgrav/grav-plugin-admin

folder rights not ok after update to v1.7.39.4

Open
#2,348 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
PHP
Stars
377
Forks
225
Avg merge
11h 51m
Merged PRs (30d)
4

Description

After updating to v1.7.39.4 there was an HTTP error 500 on the website.
In de error log (Ubunto/appache): Uncaught RuntimeException: Failed to save file /var/www/html2/grav/cache/compiled/..ect.
(root i.s.o www-data
root@mail:/var/www/html2/grav/cache/compiled# ls -lart
total 40
drwxr-xr-x 9 www-data www-data 4096 feb 28 17:23 ..
drwxr-xr-x 2 root root 4096 feb 28 17:24 config
drwxr-xr-x 2 root root 20480 feb 28 17:24 files
drwxr-xr-x 6 www-data www-data 4096 feb 28 17:24 .
drwxr-xr-x 2 root root 4096 feb 28 17:24 languages
drwxrwxr-x 2 www-data www-data 4096 feb 28 17:56 blueprints
root@mail:/var/www/html2/grav/cache/compiled# cd ..
root@mail:/var/www/html2/grav/cache#
root@mail:/var/www/html2/grav/cache#
root@mail:/var/www/html2/grav/cache#
root@mail:/var/www/html2/grav/cache#
root@mail:/var/www/html2/grav/cache#

I have to change chown manualy for the compiled folder.
chown -R www-data:www-data compiled

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the HTTP 500 after updating to v1.7.39.4 and inspect /var/www/html2/grav/cache/compiled alongside the error log. Trace which update step creates or changes config, files, and languages ownership, then verify the website can save compiled files as www-data without manually running chown -R www-data:www-data compiled.

Written by the indexing model from the issue text.

Assessment

Tech stack
apache, linux, php
Domain
infrastructure
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.