Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/apache/8.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
安装svn:重新启动apache后出错_Svn_Apache_Configuration - Fatal编程技术网

安装svn:重新启动apache后出错

安装svn:重新启动apache后出错,svn,apache,configuration,Svn,Apache,Configuration,我是这样创建存储库的: sudo svnadmin创建/svn 重新启动apache后,出现以下错误: 的第16行出现语法错误 /etc/apache2/mods enabled/dav_svn.conf: 这里不允许使用DAV #dav_svn.conf-Subversion/Apache配置示例 # #有关详细信息和更多选项,请参阅Apache用户手册和 #颠覆书。 # #注意:对于具有多个vhost的设置,您需要执行此操作 #在/etc/apache2/sites available/*中

我是这样创建存储库的:

sudo svnadmin创建/svn

重新启动apache后,出现以下错误:

的第16行出现语法错误 /etc/apache2/mods enabled/dav_svn.conf: 这里不允许使用DAV

#dav_svn.conf-Subversion/Apache配置示例
#
#有关详细信息和更多选项,请参阅Apache用户手册和
#颠覆书。
#
#注意:对于具有多个vhost的设置,您需要执行此操作
#在/etc/apache2/sites available/*中配置,不在此处。
#  ... 
#URL控制存储库在外部世界中的显示方式。
#在本例中,客户机以以下方式访问存储库:http://hostname/svn/
#注意,文本/svn不应存在于文档根目录中。
#
#取消对此的注释以启用存储库
DAV svn
#将其设置为存储库的路径
SVNPath/svn
有什么想法吗

问候


Javi

被注释掉,移除它前面的
#

根据
DAV
需要在一个容器中(例如
位置
)。

我挣扎了一段时间才最终找到答案

需要从

# dav_svn.conf - Example Subversion/Apache configuration
#
# For details and further options see the Apache user manual and
# the Subversion book.
#
# NOTE: for a setup with multiple vhosts, you will want to do this
# configuration in /etc/apache2/sites-available/*, not here.

# <Location URL> ... </Location>
# URL controls how the repository appears to the outside world.
# In this example clients access the repository as http://hostname/svn/
# Note, a literal /svn should NOT exist in your document root.
#<Location /svn>

  # Uncomment this to enable the repository
  DAV svn

  # Set this to the path to your repository
  SVNPath /svn