I'm configuring an Apache server under CentOS 6.3. I want to put my app in
/var/www/html/<myApp>
But that directory is owned by root. How can I properly configure the access so I can publish files to that directory from a FTP client?
Initially I wanted to put my files under /home/myApp/wwwroot but that gives error messages as it seems under CentOS you're supposed to put your files under /var/www/html
What would be the right way of configuring this?
My suggestion is:
/var/www/html/YOUR_SITE
directory, and own to your ftp user/var/www/html/
have the 755 permission;/var/www/html/YOUR_SITE
;Done. When you connect through ftp, it will seems to be that you are at /, and your user will not navigate on the entire filesystem hierarchy.