Debian: Apache not using correct owner and group

Hello to all,

  1. For users who are not Sys Admins, Webmin/Virtualmin is a blessing. I would suggest installing it on your server, it is compatible with Alma, Rocky, Debian, and Ubuntu.
    Downloading and Installing | Virtualmin — Open Source Web Hosting Control Panel

  2. After unpacking the Grav Skeleton of your choice, in the Apache website root directory, first set the permissions as shown in the documentation:

(note: adjust GROUP to be the group your apache runs under, found in the previous command. [www-data, apache, nobody, etc.]):

chgrp -R GROUP .
find . -type f | xargs chmod 664
find . /bin -type f | xargs chmod 775
find . -type d | xargs chmod 775
find . -type d | xargs chmod +s
umask 0002

I never had problems with the ownership of the created pages with the Grav Admin module

When receiving blank pages, the permissions of point 2 are the first to do.

Hope this helps.

That’s the first thing I did, and I still did have permissions issues.