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
Received on Fri Jun 3 15:27:27 2005