Setting file owner to www-data
-
Hi,
I had a problem with my wordpress install where I could not update the core or any plugin (“Could not write folder”).
All my permissions were set correctly to 755 and 644 for folders and files, but the files were owned by user:www-data , and I read that “the http server associated to my wordpress site belongs to the group www-data”, so the files should also be owned by www-data. So I ran this command:
sudo chown -R www-data:www-data my_worpdress_folder
and it fixed the problem.
But my question is: is it a security problem to give the ownership of the files to www-data? I don’t know why the previous owner gave it to “user” instead.
Thanks.
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Setting file owner to www-data’ is closed to new replies.