1、安装svn



apt install subversion

# 创建仓库
cd /opt
mkdir svn
cd svn
mkdir repository
svnadmin create /opt/svn/repository

/opt/svn/repository
chmod -R 777 db



2、安装

2.1 安装php(默认7.4)



apt-get -y install php php-fpm php-mysql php-curl php-json php-mbstring php-xml php-intl php-gd php-soap php-gmp php-sqlite3 php-xmlrpc php-bz2 php-cgi php-snmp php-zip


 

2.2 安装Apache



sudo apt install apache2

sudo apt-get install libapache2-mod-php

apt-get install libapache2-mod-svn

sudo a2enmod dav_svn


2.3 配置svnadmin

安装svnadmin

 ubuntu 20.04 搭建开发环境_json

 

 



cd /opt/svn/repo/hooks
mv post-commit.tmpl post-commit