Question

No permissions to website files on LAMP

Posted May 14, 2014 2k views
I followed the directions to install LAMP on Ubuntu 12.04 with this link: https://www.digitalocean.com/community/articles/how-to-install-linux-apache-mysql-php-lamp-stack-on-ubuntu 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?

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.

×
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
Submit an Answer