Friday, October 20, 2023

folder permissions for webserver on Apache

 https://www.internalpointers.com/post/right-folder-permission-website - Good solution is to chown -R all files and folder to yourusername:www-data - so that the web server and you can access, and then chmod 750 for all files / folders - "read, write and execute (7) for the owner (i.e. you), read and execute (5) for the group owner (i.e. the web server), zero permissions at all (0) for others."

(But when we want Moodle to be able to update plugins with the web interface, we've used 775 instead.)

No comments:

Post a Comment