safest way to chmod files and directories
-
When I install WordPress, the uploads of plugin can’t make a new directory. Only when I chmod 0766 files in /wp-content, /wp-includes and /wp-admin I can upload plugins etc.
Is 0766 safe? Isn’t there another way to do this? I read something about to set root:root to www-data:www-data, but this is not enhough right?
I would like to know the safest way to give WordPress premissions to write directories in the right folders, so plugins etc can upload without problems…
I even find this https://itectec.com/ubuntu/ubuntu-wordpress-cant-upload-files/ but some people said you never name a group www-data? I get confused by all these different answers ??
What is the RIGHT way to do this SAFE? And why?
- The topic ‘safest way to chmod files and directories’ is closed to new replies.