16 June, 2016

Write permission in /var/www/html/

# sudo usermod -a -G www-data[USERNAME]
# sudo chmod -R g+w /var/www
# su [USERNAME]

ad 1) Add the user to the www-data group
ad 2) Give write permissions to the group in /var/www
ad 3) Be that user and edit

No comments: