(OS is Ubuntu Server)
I create a new repository with SVN like that :
$ svnadmin create myrepo --pre-1.6-compatible
The first time, when
I suspect the repositories have the 'group'. Set it to the same as the group as the webserver:
sudo chown -R :www-data myrootrepositories
The real cause is an unreadable config file, it can be found on the Cpanel raw error log.
In my case, I was following instructions for an old repo, the file name I used was .users-conf, then I was trying to access .svn-users, the error was logged in the error log.
ERROR:
svn: Server sent unexpected return value (500 Internal Server Error) in response to OPTIONS request for
CAUSE: The user's file (or some other file in the project SVN directory), was created using the root account and it has to be owned by the domain account.
Example: domain user is trespatitos
(using CPANEL/WHM and Centos 5), so I used:
root@myserver [my project path]# chown -R trespatitos:trespatitos ./*
That changes the owner and group recursively on the dir I'm standing at.
Also. On the svn.conf
file, I have:
AuthUserFile /home/myusername/svn/hds/conf/.svn-users
While in the SVN folder I made a mistake and name the file: .users-svn
I changed the name and the problem was solved.
Conclusion:
htpasswd -c username .svn-users
I recently ran into the same problem. Permissions and other items mentioned were OK. But the timestamps on the files were wrong (because copied from an older working copy when needing to change a repository). Just touched everything.
Set the ownership of the repository to the same user that runs svnserve.