配置svn时遇到错误 Invalid command 'DAV', (解决)

当尝试配置Apache SVN时遇到'Invalid command 'DAV''错误,原因是缺少mod_dav模块。解决方案是取消LoadModule dav_module modules/mod_dav.so这行的注释,确保同时加载了实现DAV协议的mod_dav。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

LoadModule dav_module modules/mod_dav.so

这一行的注释去掉,原因如下:

You aren't loading mod_dav. mod_dav_svn just implements the back-end, you
still need to have mod_dav, which implements the dav protocol.

Ryan

On Sat, 5 Apr 2003, Robo wrote:

> Just ran apache from the command line, and got the following error message:
>
> Invalid command 'DAV', perhaps mis-spelled or defined by a module not
> included i
> n the server configuration
>
> Hope that helps pointing down the problem, thanks
>
> Robo
>
> ----- Original Message -----
> From: <rbb@rkbloom. net>
> To: "Dale Hirt" <dale@sbcltd. com>
> Cc: "'Robo'" <robo@vangof. com>; "Subversion Development Mailing List
> (E-mail)" <dev@subversion. tigris.org>
> Sent: Saturday, April 05, 2003 5:15 AM
> Subject: RE: Can't get SVNPath to work on Apache2
>
>
> >
> >
> > Unfortunately, on Windows errors like this often don't show up in the
> > error log. The problem comes from when Apache opens the log file. If
> > there isn't anything in the log file, then just run Apache from the
> > command line. That way, the error wil show up in the command window.
> > Once Apache runs from the command line, it will also run from the Services
> > window.
> >
> > Ryan
> >
> > On Fri, 4 Apr 2003, Dale Hirt wrote:
> >
> > > My first recommendation would be to check the Apache error log. It
> should
> > > have an error message saying what was wrong.
> > >
> > > > -----Original Message-----
> > > > From: Robo [mailto:robo555@gmx. net]
> > > > Sent: Thursday, April 03, 2003 10:44 PM
> > > > To: dev@subversion. tigris.org
> > > > Subject: Can't get SVNPath to work on Apache2
> > > >
> > > >
> > > > I'm running Subversion on WinXP, with the following config:
> > > >
> > > > Apache/2.0.44 (Win32) PHP/4.3.0 SVN/0.20.0
> > > >
> > > > Apache2 seems to load mod_dav_svn.so fine, but when I add the
> > > > following to
> > > > the end of httpd.conf, Apache refuses to start:
> > > >
> > > > <Location /svn>
> > > > DAV svn
> > > > SVNPath E:/svn
> > > > </Location>
> > > >
> > > > the path is correct, I've been able to commit changes to the
> > > > repos locally.
> > > >
> > > > Apache is running as a service, and it will only start if I
> > > > comment out the
> > > > four lines above, otherwise I get the following error:
> > > >
> > > > The Apache2 service is starting.
> > > > The Apache2 service could not be started.
> > > >
> > > > A service specific error occurred: 1.
> > > >
> > > > More help is available by typing NET HELPMSG 3547.
> > > >
> > > > Anyone know how I can solve this?
> > > >
> > > > Robo
> > > >
> > > >
> > > > ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: dev-unsubscribe@subversion. tigris.org
> > > > For additional commands, e-mail: dev-help@subversion. tigris.org
> > > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: dev-unsubscribe@subversion. tigris.org
> > > For additional commands, e-mail: dev-help@subversion. tigris.org
> > >
> > >
> >
>
>

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值