• 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?

Viewing 1 replies (of 1 total)
  • Thread Starter Kimberly

    (@_kimberly_)

    oke, just change ownership from folders /wp-content and all folders inside that folder to www-data:www-data and NO chmod, works perfectly!

    No chmod at all ?? only ownership!

    But one thing, if I go to site health, I still get the message “Some files are not writable by WordPress:”

    What to do with this? The safe way ??

Viewing 1 replies (of 1 total)
  • The topic ‘safest way to chmod files and directories’ is closed to new replies.