kristofer hansson wrote:
> Hi
>
> Im having some problems with subversion, or more specific, with
> importing or committing using http://, checking out works fine using
> http://
>
> using http://
> svn import mp/ http://localhost/subversion/main/my -m "ii"
> svn: Can't create directory
> '/subversion/main/db/transactions/0-1.txn': Permission denied
>
> the apache log file /var/log/httpd/error_log reveals:
> [error] [client 127.0.0.1] Can't create directory
> '/subversion/main/db/transactions/1-1.txn': Permission denied [500,
> #13]
>
> using file:// works fine!
> svn import mp/ file://localhost/subversion/main/my -m "ii"
> Adding mp/trunk
> Adding mp/trunk/source
> Adding mp/trunk/source/test.c
Ooh I think I can answer that because someone just answered that for me :)
When you create via file: the repo is owned by your userid. When you go
to access via http, the apache user id is the one used. So, I believe
you need to alter ownership/permissions in the repo to have the group be
apache's and make group in your repo writable by apache.
> Committed revision 1.
>
> I have taken a look at every hit on google and havn't found a good
> answer :(
> Im running Fedora Core 5 with apache2 (package: httpd version 2.2.0
> release 5.1.2), Subversion 1.3.1 (r19032).
>
> As root:
> mkdir /subversion
> svnadmin create /subversion/repo
>
> chown -R apache.apache /subversion
> chmod -R 777 /subversion
I applied these:
chown -R :www-data briefs/
where briefs was under my /svn (or in your case /subversion I suspect)
www:/svn# more permission_fixup_instructions
chmod -R g+w *; chmod 444 format
find . -type d -exec chmod g+s {} \;
which I got from somewhere - maybe from one of the docs, I'm not sure.
(do be careful with the "*" there :)
rick jones
>
> Apache is running as apache / apache
>
> Pls help!
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: users-help@subversion.tigris.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Jun 1 02:37:50 2006