[CentOS] Remote upload apache files

Thu Aug 31 01:14:57 UTC 2006
Karanbir Singh <mail-lists at karan.org>

Tom Elsesser wrote:
> Hi all,
>  I need to upload files to /var/www/html on our remote centos box. The
> perms on /var/www/html are stock from the install, 

the 'normal' way to do this is to setup a vhost in /etc/httpd/conf.d/
and setup the docroot for that in /home/<someusername>/public_html ;
change the perms there to satisfy what apache needs, and set

" chcon -R   -u system_u -r object_r -t httpd_sys_content_t
/home/<username>/public_html/ "

and you are done, just upload your content under
/home/<username>/public_html/

-- 
Karanbir Singh : http://www.karan.org/ : 2522219 at icq