Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section Web Server
  • Search

How to add permissions to webroot

Questions regarding the Web Server
Apache + Nginx, Nginx + PHP5-FPM
Post Reply
  • Print view
Advanced search
2 posts • Page 1 of 1
angeldrago
Posts: 1
Joined: Wed Aug 10, 2016 3:13 pm

How to add permissions to webroot
  • Quote

Post by angeldrago » Wed Aug 10, 2016 9:37 pm

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...
Top

Elizine
Posts: 50
Joined: Wed Aug 12, 2015 12:11 pm
Contact:
Contact Elizine
Website

Re: How to add permissions to webroot
  • Quote

Post by Elizine » Tue Aug 16, 2016 11:06 am

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
Make sure any new folders you create inside /var/www are also assigned the appropriate permissions.
Top


Post Reply
  • Print view

2 posts • Page 1 of 1

Return to “Web Server”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password