No permissions to website files on LAMP

May 14, 2014 1.7k views
I followed the directions to install LAMP on Ubuntu 12.04 with this link: I have successful connected to sftp using the new user it tells me to create. However, I can not edit, add, or delete any files. Does anyone know what I can do to start working on my website?
1 Answer
What files are you trying to edit? If you are trying to add/edit files in /var/www I would suggest adding your user to the www-data group. Run:

sudo usermod -a -G www-data username
Have another answer? Share your knowledge.