search
HomeSystem TutorialLINUXDetailed explanation: SVN cooperates with Apache under Centos6.6

Detailed explanation: SVN cooperates with Apache under Centos6.6

May 04, 2024 am 08:13 AM
linuxcentosapacheaccesslinux tutorialRed Hatlinux systemlinux commandlinux certificationred hat linuxlinux video

Detailed explanation: SVN cooperates with Apache under Centos6.6

Install svn and Apache
yum install -y httpd httpd-devel subversion mod_dav_svn
Make sure the svn module has been installed: mod_dav_svn
#cd /etc/httpd/modules            
#ls | grep svn 
mod_authz_svn.so
mod_dav_svn.so
Confirm that svn has been installed
#svn- -version
SVN configuration

Go to the /etc/httpd/conf.d directory and use vim to open the subversion.conf configuration file to modify the options
Module configuration must ensure that the following two sentences exist in the configuration file, otherwise the svn warehouse will not be accessible

LoadModuledav_svn_module     modules/mod_dav_svn.so 
LoadModuleauthz_svn_module   modules/mod_authz_svn.so
Svn warehouse configuration
# mkdir -p /home/svn
# cd /home/svn
# svnadmin create myapp 
# chown -R apache.apache  myapp        $apache是httped服务的默认用户 
# vi /etc/httpd/conf.d/subversion.conf 加入以下配置 
LoadModuledav_svn_module     modules/mod_dav_svn.so 
LoadModuleauthz_svn_module   modules/mod_authz_svn.so 
<location>
DAV svn
SVNParentPath /svn    仓库目录
SVNListParentPath on  使用多仓库
AuthType Basic
AuthName  "Authorization Realm" 
AuthUserFile /home/svn/svn/httpdpasswd   使用的用户文件
AuthzSVNAccessFile /home/svn/authz    使用的用户配置
Require  valid-user   用户需要验证才能登录
</location>
Create Apathce accessible user information
# htpasswd -c /var/svn/passwd Justin  //创建一个httpd的用户 ,第一次使用需要用 -c 选项
 # servicehttpd restart 
Create user information that can access svn

There is a passwd file under the created SVN warehouse myapp/conf/passwd. Create user information and user password passwd configuration by editing the file.

Permission control authz configuration

There is an authz file under the created SVN warehouse myapp/conf/authzz to configure user permissions

Start svn
svnserve -d -r /home/svn/myapp 
ps aux | grep svn

The above is the detailed content of Detailed explanation: SVN cooperates with Apache under Centos6.6. For more information, please follow other related articles on the PHP Chinese website!

Statement
This article is reproduced at:Linux就该这么学. If there is any infringement, please contact admin@php.cn delete
What are the typical use cases for Linux versus Windows?What are the typical use cases for Linux versus Windows?May 03, 2025 am 12:01 AM

Linuxisidealforcustomization,development,andservermanagement,whileWindowsexcelsineaseofuse,softwarecompatibility,andgaming.Linuxoffershighconfigurabilityfordevelopersandserversetups,whereasWindowsprovidesauser-friendlyinterfaceandbroadsoftwaresupport

What are the differences in user account management between Linux and Windows?What are the differences in user account management between Linux and Windows?May 02, 2025 am 12:02 AM

The main difference between Linux and Windows in user account management is the permission model and management tools. Linux uses Unix-based permissions models and command-line tools (such as useradd, usermod, userdel), while Windows uses its own security model and graphical user interface (GUI) management tools.

How does the command line environment of Linux make it more/less secure than Windows?How does the command line environment of Linux make it more/less secure than Windows?May 01, 2025 am 12:03 AM

Linux'scommandlinecanbemoresecurethanWindowsifmanagedcorrectly,butrequiresmoreuserknowledge.1)Linux'sopen-sourcenatureallowsforquicksecurityupdates.2)Misconfigurationcanleadtovulnerabilities.Windows'commandlineismorecontrolledbutlesscustomizable,with

How to Make a USB Drive Mount Automatically in LinuxHow to Make a USB Drive Mount Automatically in LinuxApr 30, 2025 am 10:04 AM

This guide explains how to automatically mount a USB drive on boot in Linux, saving you time and effort. Step 1: Identify Your USB Drive Use the lsblk command to list all block devices. Your USB drive will likely be labeled /dev/sdb1, /dev/sdc1, etc

Best Cross-Platform Apps for Linux, Windows, and Mac in 2025Best Cross-Platform Apps for Linux, Windows, and Mac in 2025Apr 30, 2025 am 09:57 AM

Cross-platform applications have revolutionized software development, enabling seamless functionality across operating systems like Linux, Windows, and macOS. This eliminates the need to switch apps based on your device, offering consistent experien

Best Linux Tools for AI and Machine Learning in 2025Best Linux Tools for AI and Machine Learning in 2025Apr 30, 2025 am 09:44 AM

Artificial Intelligence (AI) is rapidly transforming numerous sectors, from healthcare and finance to creative fields like art and music. Linux, with its open-source nature, adaptability, and performance capabilities, has emerged as a premier platfo

5 Best Lightweight Linux Distros Without a GUI5 Best Lightweight Linux Distros Without a GUIApr 30, 2025 am 09:38 AM

Looking for a fast, minimal, and efficient Linux distribution without a graphical user interface (GUI)? Lightweight, GUI-less Linux distros are perfect for older hardware or specialized tasks like servers and embedded systems. They consume fewer res

How to Install Wine 10.0 in RedHat DistributionsHow to Install Wine 10.0 in RedHat DistributionsApr 30, 2025 am 09:32 AM

Wine 10.0 stable version release: Running Windows applications on Linux to a higher level Wine, this open source and free application, allows Linux users to run Windows software and games on Unix/Linux operating systems, ushering in the release of the 10.0 stable version! This version has been provided with source code and binary package downloads, and supports various distributions such as Linux, Windows and Mac. This edition embodies a year of hard work and over 8,600 improvements, bringing many exciting improvements. Key highlights include: Enhanced support for Bluetooth devices. Improve support for HID input devices. Optimized performance of 32-bit and 64-bit applications.

See all articles

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

DVWA

DVWA

Damn Vulnerable Web App (DVWA) is a PHP/MySQL web application that is very vulnerable. Its main goals are to be an aid for security professionals to test their skills and tools in a legal environment, to help web developers better understand the process of securing web applications, and to help teachers/students teach/learn in a classroom environment Web application security. The goal of DVWA is to practice some of the most common web vulnerabilities through a simple and straightforward interface, with varying degrees of difficulty. Please note that this software

Atom editor mac version download

Atom editor mac version download

The most popular open source editor

VSCode Windows 64-bit Download

VSCode Windows 64-bit Download

A free and powerful IDE editor launched by Microsoft

Dreamweaver Mac version

Dreamweaver Mac version

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)