Report this

What is the reason for this report?

I broke Wordpress file and map ownership

Posted on December 9, 2014

Hi all, I hope it is possible to help me with the following case.

Because of the github developer pack I started trying to run some websites and see what I can learn in this field. However I think I broke something which I don’t know how to fix.

I run the one-click-wordpress install. So all is relatively standard. I did set up SSH access with another account so that root is not used.

Now the website itself seems to work, however on the backend I can no longer install updates (core and plugins) or upload files even. They return a similar error that either they cannot create a map or cannot move a file (image for example).

Now I read that ownership permissions for files should be set correctly, according to wordpress they should be 644 for files and 755 for folders. Which is what I set them all at.

But still it seems to not work, so I guess the owner of the folders and files is the wrong one. But I don’t know how to set those or to set those to the right user?

I would really like help on that one to solve the updating through the buildin update mechanics of wordpress (and of course uploading).

Thanks in advance!



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.

For CentOS/RHEL-like servers:

chown apache:apache /var/www/ -R

For Debian/Ubuntu:

chown www-data:www-data /var/www/ -R

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.