How to add permissions to webroot
-
- Posts: 1
- Joined: Wed Aug 10, 2016 3:13 pm
How to add permissions to webroot
Hello everyone, i would like to know how do i add permission outside the web-root where the public_html resides
example below.
cgi-bin
document_errors
MYFOLDER <<< needs all access 0777
public_html
etc...
example below.
cgi-bin
document_errors
MYFOLDER <<< needs all access 0777
public_html
etc...
Re: How to add permissions to webroot
Code: Select all
sudo chown -R :www-data /var/www # make sure the folder is owned by group www-data
sudo chmod g+w /var/www # grant write permission to group www-data on /var/www
sudo adduser NEWUSER www-data # add NEWUSER to group www-data with write permissions in /var/www