Answer the question
In order to leave comments, you need to log in
Where can I read about permissions for /var/www?
How many years have I been suffering with the rights to /var/www. Constantly some problems that have to be treated with crutches.
find /var/www/site -type d -exec sudo chmod 2775 {} \;
find /var/www/site -type f -exec sudo chmod 0664 {} \;
Answer the question
In order to leave comments, you need to log in
1) suid/guid bits are not needed where they are not needed
2) project files must be readable and not writable by the webserver user.
3) of the writable folders, only upload / tmp / runtime
4) files higher in the folder tree are inaccessible (i.e. the web server process should not read the root of the disk)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question