Home Operation and Maintenance Linux Operation and Maintenance How to configure SVN server in Ubuntu?

How to configure SVN server in Ubuntu?

Jun 21, 2017 pm 02:32 PM
linux php programmer series

When deploying a website online, most people use ftp. This method is very inconvenient. Now I want to install the SVN server online and use svn to deploy the website directly. Because the server for searching the disk is ubuntu, the following steps are based on ubuntu.

Install subversion

apt-get install subversion

Create warehouse directory

svnadmin create /home/ubuntu/svnrepos/

Configure svnserve.conf

Edit /home/ubuntu /svnrepos/conf/svnserve.conf

Remove the # in front of the following content

anon-access = none
auth-access = write

password-db = passwd
authz-db = authz

Configure user

Edit /home/ubuntu/svnrepos/conf/authz

[groups]

svn_users=sopans,sopans2

[/]

@svn_users= rw

A group of users, this group of users can read Write

Configure password

Edit /home/ubuntu/svnrepos/conf/passwd

[users]
sopans=www.sopans.com

Start the SVN service

Use the command svnserve -d -r /home/ubuntu/svnrepos/ -d It is a background service -r is the directory to use

Use the ps command to check whether the startup is successful

Link svn test, address It is the svn://ip address, the username and password are configured above, and the test is successful.

Configure the domain name, apache installs the svn module

The domain name needs to be resolved, for example, my test domain name mysvn.sopans.com

apt-get install libapache2-svn

Configure virtual host

<VirtualHost *:80>ServerName mysvn.sopans.com<Location />DAV svn
        SVNPath /home/ubuntu/svnrepos/AuthType basic
        AuthName "svn"AuthUserFile /home/ubuntu/svnrepos/conf/passwd#AuthzSVNAccessFile /home/ubuntu/svnrepos/conf/authz
        require valid-user</Location>ErrorLog ${APACHE_LOG_DIR}/error.log
        CustomLog ${APACHE_LOG_DIR}/access.log combined</VirtualHost>
Copy after login

1. Browser When you open it directly and encounter an error, the login box keeps popping up

Modify the file /home/ubuntu/svnrepos/conf/passwd. The password cannot be in plain text. You need to use htpasswd to encrypt it. Baidu Search has online tools

2. An error was encountered when submitting: Can't open file '/home/ubuntu/svnrepos/db/txn-current-lock': Permission denied

This directory/home/ubuntu/svnrepos The permission of / is given to 777

3. In this way, there is no need to use svnserve to start. Just link the domain name mysvn.sopans.com directly.

Browse Open the server and enter your username and password to view the series of problems encountered when deploying sopans, website www.sopans.com

1.PHP programmers have fun with the Linux series-how to install and use CentOS

2.PHP programmers have fun with the Linux series-building the lnmp environment

3.PHP programmers have fun with the Linux series - building an FTP code development environment

4.PHP programmers have fun with the Linux series-backup and restore MySQL

5.PHP programmers have fun with Linux Series-Automatic backup and SVN

6.PHP programmers have fun with Linux series-Linux and Windows installation nginx

7.PHP programmers have fun with Linux series-nginx beginners guide

8.PHP programmers have fun with the Linux series-HTTPS in Nginx

9.PHP programmers have fun with the Linux series-using supervisor to implement the daemon process

10.PHP programmers have fun Convert to the Linux series - upgrade PHP to PHP7

11. PHP programmers have fun with the Linux series - easily use email via telnet

12. PHP programmers have fun with the Linux series - Tencent cloud hard disk expansion mount

The above is the detailed content of How to configure SVN server in Ubuntu?. For more information, please follow other related articles on the PHP Chinese website!

Statement of this Website
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

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

PHP and Python: Different Paradigms Explained PHP and Python: Different Paradigms Explained Apr 18, 2025 am 12:26 AM

PHP is mainly procedural programming, but also supports object-oriented programming (OOP); Python supports a variety of paradigms, including OOP, functional and procedural programming. PHP is suitable for web development, and Python is suitable for a variety of applications such as data analysis and machine learning.

Choosing Between PHP and Python: A Guide Choosing Between PHP and Python: A Guide Apr 18, 2025 am 12:24 AM

PHP is suitable for web development and rapid prototyping, and Python is suitable for data science and machine learning. 1.PHP is used for dynamic web development, with simple syntax and suitable for rapid development. 2. Python has concise syntax, is suitable for multiple fields, and has a strong library ecosystem.

Linux Architecture: Unveiling the 5 Basic Components Linux Architecture: Unveiling the 5 Basic Components Apr 20, 2025 am 12:04 AM

The five basic components of the Linux system are: 1. Kernel, 2. System library, 3. System utilities, 4. Graphical user interface, 5. Applications. The kernel manages hardware resources, the system library provides precompiled functions, system utilities are used for system management, the GUI provides visual interaction, and applications use these components to implement functions.

PHP and Python: A Deep Dive into Their History PHP and Python: A Deep Dive into Their History Apr 18, 2025 am 12:25 AM

PHP originated in 1994 and was developed by RasmusLerdorf. It was originally used to track website visitors and gradually evolved into a server-side scripting language and was widely used in web development. Python was developed by Guidovan Rossum in the late 1980s and was first released in 1991. It emphasizes code readability and simplicity, and is suitable for scientific computing, data analysis and other fields.

PHP vs. Python: Use Cases and Applications PHP vs. Python: Use Cases and Applications Apr 17, 2025 am 12:23 AM

PHP is suitable for web development and content management systems, and Python is suitable for data science, machine learning and automation scripts. 1.PHP performs well in building fast and scalable websites and applications and is commonly used in CMS such as WordPress. 2. Python has performed outstandingly in the fields of data science and machine learning, with rich libraries such as NumPy and TensorFlow.

PHP's Impact: Web Development and Beyond PHP's Impact: Web Development and Beyond Apr 18, 2025 am 12:10 AM

PHPhassignificantlyimpactedwebdevelopmentandextendsbeyondit.1)ItpowersmajorplatformslikeWordPressandexcelsindatabaseinteractions.2)PHP'sadaptabilityallowsittoscaleforlargeapplicationsusingframeworkslikeLaravel.3)Beyondweb,PHPisusedincommand-linescrip

How to check the warehouse address of git How to check the warehouse address of git Apr 17, 2025 pm 01:54 PM

To view the Git repository address, perform the following steps: 1. Open the command line and navigate to the repository directory; 2. Run the "git remote -v" command; 3. View the repository name in the output and its corresponding address.

How to run java code in notepad How to run java code in notepad Apr 16, 2025 pm 07:39 PM

Although Notepad cannot run Java code directly, it can be achieved by using other tools: using the command line compiler (javac) to generate a bytecode file (filename.class). Use the Java interpreter (java) to interpret bytecode, execute the code, and output the result.

See all articles