Report this

What is the reason for this report?

Permissions - sFTP v Wordpress

Posted on January 5, 2014

Hey guys,

I’m confused by the ownership of the folders…

/var/www/sitex

I’ve ran:

sudo chown -R www-data:www-data /var/www/sitex/web

… and Wordpress works fine. I can’t SFTP to the folder though!

I’ve a User “ABC” who is a member of the www-data group.

How do I resolve this? I want WP to work as it currently does but be able to sFTP files!

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.

Kamal, thanks, this helps alot, WP is now able to update/install plugins natively etc, my user is able to edit files inside /var/www/sitex, but I am getting this error in WinSCP when editing files: <br> <br>Upload of file … was successful, but error occurred while setting the permissions and/or timestamp. <br> <br>http://is.gd/resVqI <br> <br>How could I fix this last bit? Thanks!

Kamal Nasser, Thank u, that’s solve my problems! <br> <br>

Add yourself to the www-data: <br><pre>sudo usermod -a -G www-data youruser</pre> <br>Then, recursively grant group write permissions to the /var/www/sitex directory: <br><pre>sudo chmod -R g+w /var/www/sitex</pre>

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.