wp-content – permissions for files/folders created by apache


My wp-content folder has owner User and group www-data. The permissions are 775 for folders and 664 for files, so the server can write inside the folder.

But when the server creates folder and files inside wp-content ( when installing theme ), they have the server as owner ( and the server’s primary group ) and they get 755 for folder and 644 for files.

So I can’t keep all folders and files of a WordPress installation under User ownership.

How can I make all newly created folders and files created by server inside wp-content inherit the ones that the parent folder has?

Thank you.

, , , tioschi 6 years 2015-04-29T08:34:42-05:00 0 Answers 100 views 0

Leave an answer