Author |
|
btcentral
Joined: 29 Mar 2007 Posts: 5
|
Posted: Thu 29 Mar '07 0:56 Post subject: Apache 2.2.4 + mod_svn (dav/authz)? |
|
|
Hi,
I have Apache 2.2.4 (Apache Lounge release).
However, when I try to use "Subversion 1.4.3 for Steffen's Apache 2.2.4 with SSL" for example, I get the error "Windows could not start the Apache2.2 on Local Computer. For more information, review the System Event Log. If this is a non-Microsoft service, contact the service vendor, and refer to service-specific error code 1."
All the error log says is "The Apache2.2 service terminated with service-specific error 1 (0x1).
For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp."
I added the lines "LoadModule authz_svn_module modules/mod_authz_svn.so
LoadModule dav_svn_module modules/mod_dav_svn.so" to my httpd.conf and as far as I am aware they are correct.
Any help/suggestions would be much appreciated! |
|
Back to top |
|
tdonovan Moderator
Joined: 17 Dec 2005 Posts: 614 Location: Milford, MA, USA
|
Posted: Thu 29 Mar '07 3:14 Post subject: |
|
|
More than just these two LoadModule directives are needed to set up Subversion with Apache.
See the Subversion Apache Configuration docs.
Also, did you unzip all three files, as described in the README.txt:bin\libdb44.dll, modules\mod_authz_svn.so, and modules\mod_dav_svn.so If it still doesn't work - try starting Apache from the command line with httpd.exe -e debug -w to see specific startup error messages.
-tom- |
|
Back to top |
|
btcentral
Joined: 29 Mar 2007 Posts: 5
|
Posted: Thu 29 Mar '07 15:46 Post subject: |
|
|
Hi,
I appreciate that it needed more than the LoadModule directives, and had already followed the link you posted.
The error I get from "httpd.exe -e debug -w" is:
"Syntax Error on line 540 of C:/Apache2/conf/httpd.conf:
Invalid command 'DAV', prehaps misspelled or defined by a module not included in the server configuration"
There are no errors actually loading the modules, so this leads me to think that it is perhaps not loading all the functions properly.
Any suggestions? If needed I can upload the relivant part of my apache configuration file.
Thanks again!
Last edited by btcentral on Thu 29 Mar '07 16:04; edited 2 times in total |
|
Back to top |
|
tdonovan Moderator
Joined: 17 Dec 2005 Posts: 614 Location: Milford, MA, USA
|
Posted: Thu 29 Mar '07 15:54 Post subject: |
|
|
The usual cause of this error is forgetting to LoadModule dav_module modules/mod_dav.so as described in the Subversion Apache Configuration docs.
Subversion depends on the Apache-supplied mod_dav module to work.
No - please don't upload your entire config file, per the Forum Rules. Most of it is not relevant to subversion anyway.
-tom- |
|
Back to top |
|
btcentral
Joined: 29 Mar 2007 Posts: 5
|
Posted: Thu 29 Mar '07 16:05 Post subject: |
|
|
Great! Thanks for all your help Tom!
Turned out I added an extra comment (#) to the "LoadModule dav_module modules/mod_dav.so" by accident, instead of deleting it, you mentioning it prompted me to check it, and now it works perfectly!
Thanks for the help, and your hardwork compiling the modules in the first place
PS. I meant the relivant part of my config e.g. the relivant location and load module statement rather than the whole thing. Appologies for the confusion. |
|
Back to top |
|
tdonovan Moderator
Joined: 17 Dec 2005 Posts: 614 Location: Milford, MA, USA
|
Posted: Thu 29 Mar '07 16:14 Post subject: |
|
|
It's great that you're up and running!
Just curious - do you use any Berkeley-db repositories, or just the regular fs repositories with Subversion?
FYI - the bdb part of it took a lot of work to get right, so I'm anxious to hear about other folks who use it.
-tom- |
|
Back to top |
|
btcentral
Joined: 29 Mar 2007 Posts: 5
|
Posted: Thu 29 Mar '07 16:26 Post subject: |
|
|
To be honest i'm not that sure about the internal workings of it all. (As i'm new to subversion and simply experementing with it right now to see if it would be useful for a CMS system I may be making.)
I simply downloaded Subversion 1.4.3 (svn-1.4.3-setup.exe) from http://subversion.tigris.org/servlets/ProjectDocumentList?folderID=91
Then created the project (svnadmin.exe create C:\Apache2\SVN\CMS), edited the "svnserve.conf", "passwd" and "authz" files in the conf folder, then used my Favourite SVN client (SmartSVN 2.1 Foundation) to actually add the project files etc.
Hope this is useful to you in some way!
If not feel free to expand on what you need to know and i'll do my best to answer! |
|
Back to top |
|
btcentral
Joined: 29 Mar 2007 Posts: 5
|
Posted: Fri 30 Mar '07 0:28 Post subject: |
|
|
Just thought i'd add to make sure you put:
LoadModule authz_svn_module modules/mod_authz_svn.so after LoadModule dav_svn_module modules/mod_dav_svn.so
Otherwise if you try to use the "AuthzSVNAccessFile" command, Apache will crash! |
|
Back to top |
|