Home  >  Article  >  Backend Development  >  Solution to svn configuration error in linux

Solution to svn configuration error in linux

伊谢尔伦
伊谢尔伦Original
2016-11-29 11:07:511052browse

This error occurs when the client accesses the subversion repository:

svnserve.conf:12: Option expected

Why this error occurs? It is because when subversion reads the configuration file svnserve.conf, it cannot recognize the leading spaces. Configuration file, such as
### This file controls the configuration of the svnserve daemon, if you
### use it to allow access to this repository. (If you only allow
### access through http: and/or file: URLs, then this file is
### irrelevant.)

### Visit http://subversion.tigris.org/ for more information.

[general]
### These options control access to the repository for unauthenticated
### and authenticated users. Valid values ​​are "write", "read",
### and "none". The sample settings below are the defaults.
anon-access = read
auth-access = write

Like the above configuration file, anon-access is on the top line, which is no problem, but auth-access has leading spaces, which will cause this error.
To avoid this error, when removing the # in front of these lines, you should also remove the preceding spaces


Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn