Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have a new repository on a new server that uses CentOS and has CPanel for management. Getting SVN to work with CPanel was a pain but now it works ok, I can create repositories, I can checkout and I can see the repositories in browser. I can even commit if I try from command line, on the server, as root. The problem is that on my local working copy I get the following error when I try to commit.

svn: Commit failed (details follow):
svn: PUT of '/svn/testrepo/!svn/wrk/a9b6652a-2f01-0010-83aa-f9ff957523f6/index.php': 403 Forbidden

The repository is owned by the apache user and it has the right permissions. I've googled it for a while now and from what I can tell there is some Allow/Deny directive in the CPanel generated apache config that generates the 403 error.

The repositories are at
/home/repos/
And I access them by:
http://site.com/svn/repository

So /home/repos/testrepo should match http://site.com/svn/stestrepo

EDIT: The logs look something like http://pastebin.com/cDkHMgrN

share|improve this question

closed as off-topic by Jenny D, Ladadadada, Scott Pack, Falcon Momot, Ward Jun 29 '13 at 4:00

  • This question does not appear to be about professional server, networking, or related infrastructure administration within the scope defined in the help center.
If this question can be reworded to fit the rules in the help center, please edit the question.

    
What do apache's logs say about the request? –  DerfK Apr 6 '11 at 12:44
3  
This question appears to be off-topic because it concerns the use of shared web hosting by end users or resellers, rather than the administration of web hosting. –  Jenny D Jun 28 '13 at 9:32
add comment

1 Answer 1

up vote 1 down vote accepted

The problem was indeed related to the Allow/Deny directives ( I suppose CPanel has something to do with it).

After trying several configurations I added:

Order allow,deny
Allow from all

right after SVNParentPath in the svn apache config.

That did the trick!

share|improve this answer
add comment

Not the answer you're looking for? Browse other questions tagged or ask your own question.