Setting up correct path for Web and Ftp user account

December 23, 2017 1.2k views
Apache Ubuntu 16.04

First , I like to thank DigitalOcean for their No nonsense straight to the point tutorials on how to setup everything about VPS linux , to get one with no experience like me to get my site up and running.
also , I do not have a digitalocean Droplet yet , as i learned about this site trying to manage VPS from other provider. so I hope someone can also help me with my question.
As per all tutorials here . I setup Vhost for a domain by creating folder in /var/ww/USER/publichtml. this works just fine.
Also from tutorial here , i setup VSFTPD .. and i added ftp folder to /home/USER/ftp . this works as well . however, as a ftp user i have no access to my public
html folder . after upload , i have to use command line to move files from ftp folder to my public_html.

wouldn’t be much easier to create public_html and Ftp folders under /home/USER account ?
I come from shared hosting plans , looking at the structure of my folder, i noticed this is how they created all my folders when i joined.

/home/User/publichtml
/home/User/public
ftp
/home/User/email
etc…
Can anyone tell me what is the benefit of going this direction and if doing this would allow ftp user access to public_html for file management.
Thank you so much.

Be the first one to answer this question.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!