The Apache Haus Forum

Advanced search  


Welcome to Apache Haus Distribution Forum

Pages: [1]   Go Down

Author Topic: Server "cannot load" mod_dav_svn. Help?  (Read 3641 times)


  • Newbie
  • *
  • Offline Offline
  • Posts: 3
Server "cannot load" mod_dav_svn. Help?
« on: January 29, 2020, 04:56:41 PM »

I have an Apache webserver. Currently it's serving a live website, and everything works great. Now, I need it to serve a SVN repo as well. However, every time I call LoadModule dav_svn_module "C:/[directory]/modules/", I get the error Syntax error on line 12 of C:/[directory]/conf/httpd.conf: Cannot load C:/[directory]/modules/ into server: The specified module could not be found. (Of course I'm not actually using "[directory]", I just wanted to scrub my folder structure for this post.)

Here's what I've done to try to get it working:
First, I installed the newest version of Microsoft Visual C++ Redistributable. Therefore, I now have all of the following installed:
  • Microsoft Visual C++ 2010 x64 Redistributable - 10.0.40219
  • Microsoft Visual C++ 2010 x86 Redistributable - 10.0.40219
  • Microsoft Visual C++ 2012 Redistributable (x64) - 11.0.61030
  • Microsoft Visual C++ 2013 Redistributable (x64) - 12.0.30501
  • Microsoft Visual C++ 2013 Redistributable (x64) - 12.0.40660
  • Microsoft Visual C++ 2015-2019 Redistributable (x64) - 14.24.28127
Secondly, I updated Apache to the newest version obtained from Apache Haus. I'm using version "".
Third, I downloaded the module binaries from Nono303's GitHub repo. I wasn't completely sure how to install them, so I simply copied the following 6 files from nono303/win-svn/vc15/x64 into C:/[directory]/modules.
  • mod_authz_svn.pdb
  • mod_dav_svn.dpb
  • mod_dontdothat.pdb
At this point, I confirmed that the server was still serving my website correctly, and everything was working as expected.
Finally, I added LoadModule dav_svn_module "C:/[directory]/modules/" to my configuration file, so it looks like this:
Code: [Select]
Define SRVROOT C:/[directory]/

ServerRoot "${SRVROOT}"

LoadModule access_compat_module modules/
LoadModule alias_module modules/
LoadModule authz_core_module modules/
LoadModule cache_module modules/
LoadModule cache_disk_module modules/
LoadModule cgi_module modules/
LoadModule dav_module modules/
LoadModule dav_svn_module "C:/[directory]/modules/"
LoadModule dir_module modules/
LoadModule include_module modules/
LoadModule isapi_module modules/
LoadModule log_config_module modules/
LoadModule mime_module modules/
LoadModule negotiation_module modules/
LoadModule rewrite_module modules/
LoadModule socache_shmcb_module modules/
LoadModule ssl_module modules/
LoadModule vhost_alias_module modules/

# PHP specific setup.
PHPIniDir "C:/[phpDirectory]"
LoadModule php7_module "C:/[phpDirectory]/php7apache2_4.dll"

[other configuration follows]

Now, every time I run httpd.exe, I get the error mentioned above.

What am I doing wrong? Did I miss a step? Are my versions incompatible?


  • Administrator
  • Member Elite
  • *****
  • Offline Offline
  • Posts: 620
Re: Server "cannot load" mod_dav_svn. Help?
« Reply #1 on: January 30, 2020, 09:25:50 AM »

Hi August,
mod_dav_fs is missing.

Code: [Select]
LoadModule dav_module modules/
LoadModule dav_fs_module modules/

LoadModule auth_digest_module modules/
LoadModule dav_svn_module modules/
LoadModule authz_svn_module modules/

<Location /svn/>
  DAV svn

  SVNListParentPath on
  SVNParentPath /Repositories/
  SVNIndexXSLT "/svnindex.xsl"
  SVNPathAuthz on
  AuthzSVNAccessFile "C:/Repositories/authz"

  AuthName "Subversion Repositories"
  AuthType Basic
  AuthUserFile "C:/Repositories/htpasswd"

  require valid-user

It is enabled via single httpd.conf directive, DontDoThatConfigFile:

Code: [Select]
<Location /svn>
DAV svn
SVNParentPath /path/to/repositories
DontDoThatConfigFile /path/to/config.file
DontDoThatDisallowReplay off

The file you give to DontDoThatConfigFile is a Subversion configuration file that contains the following sections.

Code: [Select]
/*/trunk = allow
/ = deny
/* = deny
/*/tags = deny
/*/branches = deny
/*/* = deny
/*/*/tags = deny
/*/*/branches = deny


  • Administrator
  • Member Elite
  • *****
  • Offline Offline
  • Posts: 620
Re: Server "cannot load" mod_dav_svn. Help?
« Reply #2 on: January 30, 2020, 09:43:04 AM »

I also uploaded the old readme file from Apachehaus
Pages: [1]   Go Up

Sitemap 1 2 3 4 5 6 7 8 9 10 11 12 13