You are not logged in.
Pages: 1
Hi there!
I'm having a real headache trying to set up svn + apache. With great difficulties, I completed the steps in the wiki (it mentions /etc/httpd/conf/mod_ssl.txt, a file that doesn't exist... or maybe I'm missing something). I've got apache working fine. The problem comes when I try this step:
svn import -m "Initial import" https://localhost/svn/test
It first asks me for root password. Then it asks me for a user (I assume it is one of the users created for the repo) and it's password, and then dies with:
svn: Can't open file '/home/svn/repositories/test/db/txn-current-lock': Permission denied
Anybody has any idea of what's going on?
Thanks in advance!
Offline
svn import -m "Initial import" https://localhost/svn/test
What are you trying to achieve with this?
The correct syntax of an import is something like
svn import /path/to/project/files https://localhost/svn/test -m "initial import"
(import project/files into the repo at https://localhost/svn/test)
Plus make sure the webserver has write access to the svn repo.
Offline
Hi, thanks for the reply!
It does exactly the same. I suppose apache has write access, as the repo directory is owned by "nobody" wich seems to be the apache user (and it has write access)
Ok, here is the complete output:
[emil@CivilizationII ~]$ svn import /home/svn/repositories/test/ https://localhost/svn/test -m "initial import"
Authentication realm: <https://localhost:443> Test SVN Repo
Password for 'emil':
Authentication realm: <https://localhost:443> Test SVN Repo
Username: emil
Password for 'emil':
svn: Can't open file '/home/svn/repositories/test/db/txn-current-lock': Permission denied
If I do it as root, it will first ask for my root password
Last edited by e1986 (2008-10-11 08:39:36)
Offline
Hi,
1: Does ssl work? Create an html file (e.g. test.html) an place it in your webroot and open it (https://localhost:443/test.html). Does this work? If this doesn't work look at this http://cvs.archlinuxppc.org:7647/viewvc … iew=markup (= the file you mentioned as missing).
2: If 1 works have you set the complete svn directory read- and writeable for the user http?
Offline
Hi!
Yes, ssl works, and about the svn directory I'n not quite sure. the user of apache is "nobody"? If so, yes, it is writeable.
Anyway, I finally used svnserver, wich for my project does the job quite well. Thanks everyone for your help!
Offline
The user of apache is http an is in the group http. Therefore change the owner to http and try it again.
Offline
Pages: 1