Hi, I have recently installed wordpress on my lamp running on ubuntu 18.04. I followed this guide https://www.digitalocean.com/community/tutorials/how-to-install-wordpress-with-lamp-on-ubuntu-18-04
Everything is working in wordpress but now I can’t upload, edit or browse my wordpress folder files using sftp after logging in as sudo user, root is fine though.
Note: I can access and modify files using terminal as sudo user, its just an issue with sftp.
In this tutorial this command is recommended- sudo chown -R www-data:www-data /var/www/etc…
so could it be its only allowing www-data group for such directory? How can I change it so files have access via both sftp, www-data?
Any suggestions would be appreciated.
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.
Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.
Click below to sign up and get $100 of credit to try our products over 60 days!