[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: How to configure apache for mutilple SVN repository ?

From: Kris Deugau <kdeugau_at_vianet.ca>
Date: 2007-08-29 21:43:41 CEST

chetanchatwani wrote:
> Following is the permission for repository, it located under
> /svn folder :
>
> permission for /svn
>
> drwxr-xr-x 4 sbmrepos sbmrepos 4096 Aug 29 03:26 svn
>
> permission for repository under/svn
>
> drwx------ 7 sbmrepos sbmrepos 4096 Aug 29 03:26 bpmdevrepos
> drwx------ 7 sbmrepos sbmrepos 4096 Jun 9 01:51 sbmrepos

Any reason you've got the repositories owned by this separate user?
You're likely to have problems getting Apache to work with them like this.

> When I try to execute command on Redhat Linux ES5
>
> chcon -R -h -t httpd_sys_content_t /svn
>
> getting following error:
>
> chcon: can't apply partial context to unlabeled file /svn

I *think* you're missing the complete context to give to chcon. Run "ls
-Z /var/www", and copy-and-paste one of the context entries there for
the chcon command. On my RHEL4 systems, for instance, it's
"system_u:object_r:httpd_sys_content_t".

> Any help ? There is OS user called sbmrepos with whose login repository is
> created and apache service is start/stop through root user.

Hrm. For serving repositories through Apache, you typically change the
ownership to whatever user/group Apache runs as. On RHEL, Apache
typically runs as user apache, group apache.

Unless you've got *really* good reasons why the repository may not be
owned by the same user/group as Apache is running as, it's probably less
headache if you just run "chown apache:apache /svn".

-kgd

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Aug 29 21:41:12 2007

This is an archived mail posted to the Subversion Users mailing list.