You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Cagatay Catal <ca...@bte.mam.gov.tr> on 2005/06/03 13:15:54 UTC

Apache &SVN Server installation error

Hello,
I have setup Apache and Subversion server by using
http://tortoisesvn.tigris.org/docs/TortoiseSVN_en/ch03.html
document.

When I add 
<Location /svn>
DAV svn
SVNParentPath D:\CAGATAY
AuthType Basic
AuthName "Subversion repositories"
AuthUserFile passwd
#AuthzSVNAccessFile svnaccessfile
Require valid-user
</Location>

lines to conf file, Apache server says "the requested operation has failed"
I created 2 passwords and they are in passwd file. I created repository
using TortoiseSVN and I called it CAGATAY as you may see in ParentPath.

What can be the reason for this problem? I have looked at the error message
in event viewer and it says "The Apache2 service terminated with
service-specific error 1 (0x1).For more information, see Help and Support
Center at http://go.microsoft.com/fwlink/events.asp."

Is it possible to understand the error more precisely?
What do you advice me to do at this moment?
Thanks alot.

Best regards,
Cagatay






I have done the stuff listed below:


Using the windows explorer, go to the installation directory of Subversion
(usually c:\program files\Subversion) and find the files
/httpd/mod_dav_svn.so and mod_authz_svn.so. Copy these files to the Apache
modules directory (usually c:\program files\apache group\apache2\modules ). 

Copy the file /bin/libdb42.dll from the Subversion installation directory to
the Apache modules directory. 

Edit Apache's configuration file (usually C:\Program Files\Apache
Group\Apache2\conf\httpd.conf) with a text editor such as Notepad and make
the following changes: 

Uncomment (remove the '#' mark) the following lines: 

#LoadModule dav_fs_module modules/mod_dav_fs.so
#LoadModule dav_module modules/mod_dav.soAdd the following two lines to the
end of the LoadModule section. 

LoadModule dav_svn_module modules/mod_dav_svn.so
LoadModule authz_svn_module modules/mod_authz_svn.so


Configuration
Now you have set up Apache and Subversion, but Apache doesn't know how to
handle Subversion clients like TortoiseSVN yet. To get Apache to know which
URL shall be used for Subversion repositories you have to edit the Apache
config file (usually located in c:\program files\apache
group\apache2\conf\httpd.conf) with any text editor you like (e.g. Notepad):


At the end of the Config file add the following lines: 

<Location /svn>
DAV svn
SVNParentPath D:\SVN
AuthType Basic
AuthName "Subversion repositories"
AuthUserFile passwd
#AuthzSVNAccessFile svnaccessfile
Require valid-user
</Location>
This configures Apache so that all your Subversion repositories are
physically located below D:\SVN. The repositories are served to the outside
world from the URL: http://MyServer/svn/ . Access is restricted to known
users/passwords listed in the passwd file. 

To create the passwd file, open the command prompt (DOS-Box) again, change
to the apache2 folder (usually c:\program files\apache group\apache2) and
create the file by entering 

bin\htpasswd -c passwd <username>
This will create a file with the name passwd which is used for
authentication. Additional users can be added with 

bin\htpasswd passwd <username>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: Apache &SVN Server installation error

Posted by Ryan Schmidt <su...@ryandesign.com>.
On 03.06.2005, at 15:15, Cagatay Catal wrote:

> <Location /svn>
> DAV svn
> SVNParentPath D:\CAGATAY
> AuthType Basic
> AuthName "Subversion repositories"
> AuthUserFile passwd
> #AuthzSVNAccessFile svnaccessfile
> Require valid-user
> </Location>
>
> [snip]
>
> I created repository using TortoiseSVN and I called it CAGATAY as you 
> may see in ParentPath.
>
> [snip]

On 03.06.2005, at 16:35, Miha Vitorovic wrote:

> SVNParentPath D:\CAGATAY  ->  SVNParentPath D:/CAGATAY


If your repository is D:/CAGATAY, then you need to use SVNPath, not 
SVNParentPath.

SVNParentPath is for when D:/CAGATAY is a directory which itself 
contains multiple repositories.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

RE: Apache &SVN Server installation error

Posted by Miha Vitorovic <mv...@nil.si>.
And what does the apache error log say about it?

Cheers,
---
  Miha Vitorovic
  Inženir v tehničnem področju
  Customer Support Engineer

   NIL Data Communications,  Tivolska cesta 48,  1000 Ljubljana,  Slovenia
   Phone +386 1 4746 500      Fax +386 1 4746 501     http://www.NIL.si



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org


RE: Apache &SVN Server installation error

Posted by Cagatay Catal <ca...@bte.mam.gov.tr>.
Unfortunately it did not solve the problem. Same error occurs.
There should be an easy way to solve the installation problem in SVN.
Otherwise, it would be difficult to handle such problems.

Waiting your other suggestions.
Best regards,
Cagatay

-----Original Message-----
From: Miha Vitorovic [mailto:mvitorovic@nil.si] 
Sent: Friday, June 03, 2005 4:35 PM
To: Cagatay Catal
Cc: 'Subversion List'
Subject: Re: Apache &SVN Server installation error

Maybe they missed it, but for start change the back-slash in the path to 
forward-slash

SVNParentPath D:\CAGATAY  ->  SVNParentPath D:/CAGATAY

Apache dosn't like back-slashes in its conf file, when it comes to paths. 
Then try again.

---
  Miha Vitorovic
  Inženir v tehničnem področju
  Customer Support Engineer

   NIL Data Communications,  Tivolska cesta 48,  1000 Ljubljana,  Slovenia
   Phone +386 1 4746 500      Fax +386 1 4746 501     http://www.NIL.si

"Cagatay Catal" <ca...@bte.mam.gov.tr> wrote on 03.06.2005 
15:15:54:

> Hello,
> I have setup Apache and Subversion server by using
> http://tortoisesvn.tigris.org/docs/TortoiseSVN_en/ch03.html
> document.
> 
> When I add 
> <Location /svn>
> DAV svn
> SVNParentPath D:\CAGATAY
> AuthType Basic
> AuthName "Subversion repositories"
> AuthUserFile passwd
> #AuthzSVNAccessFile svnaccessfile
> Require valid-user
> </Location>


---------------------------------------------------------------------
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


Re: Apache &SVN Server installation error

Posted by Miha Vitorovic <mv...@nil.si>.
Maybe they missed it, but for start change the back-slash in the path to 
forward-slash

SVNParentPath D:\CAGATAY  ->  SVNParentPath D:/CAGATAY

Apache dosn't like back-slashes in its conf file, when it comes to paths. 
Then try again.

---
  Miha Vitorovic
  Inženir v tehničnem področju
  Customer Support Engineer

   NIL Data Communications,  Tivolska cesta 48,  1000 Ljubljana,  Slovenia
   Phone +386 1 4746 500      Fax +386 1 4746 501     http://www.NIL.si

"Cagatay Catal" <ca...@bte.mam.gov.tr> wrote on 03.06.2005 
15:15:54:

> Hello,
> I have setup Apache and Subversion server by using
> http://tortoisesvn.tigris.org/docs/TortoiseSVN_en/ch03.html
> document.
> 
> When I add 
> <Location /svn>
> DAV svn
> SVNParentPath D:\CAGATAY
> AuthType Basic
> AuthName "Subversion repositories"
> AuthUserFile passwd
> #AuthzSVNAccessFile svnaccessfile
> Require valid-user
> </Location>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org