Report this

What is the reason for this report?

I can't seem to grant myself write permissions to the var/www/html directory

Posted on January 17, 2016

I’ve installed Centos 7 and created a Super user (user01) by adding it to the wheel group. I then installed WordPress and then logged onto server via FileZilla as user01 and tried to upload a new theme to the /var/www/html/wp-content/themes folder. But the file transfers failed due to lack of write/edit permission to that folder.

Why?

And how to get this resolved. Thanks.



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

This question was answered by @davidwashere:

Which user/group are the rest of the files associated with? You could change the ownership of files/directories you need to with chown:

# chown user:group <file/folder> -fv

View the original comment

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.