以下の内容はhttps://end0tknr.hateblo.jp/entry/20250108/1736307003より取得しました。


setup apache httpd + subversion for oracle linux 8.7

ユーザ認証すら、これからの素朴な apache httpd + subversion 連携環境です

目次

参考url

SVNを使うメモ

インストール対象のlinuxoracle linux

$ cat /etc/redhat-release 
Red Hat Enterprise Linux release 8.7 (Ootpa)

install apache httpd

$ sudo yum install httpd
  :
=============================================================================================
 Package          Arch   Version                                          Repository    Size
=============================================================================================
 httpd            x86_64 2.4.37-65.0.1.module+el8.10.0+90430+1ba508be.2   ol8_appstream 1.4 M
 httpd-filesystem noarch 2.4.37-65.0.1.module+el8.10.0+90430+1ba508be.2   ol8_appstream  44 k
 httpd-tools      x86_64 2.4.37-65.0.1.module+el8.10.0+90430+1ba508be.2   ol8_appstream 111 k
 mod_ssl          x86_64 1:2.4.37-65.0.1.module+el8.10.0+90430+1ba508be.2 ol8_appstream 141 k

install subversion , mod_dav_svn for apache

$ sudo yum install subversion mod_dav_svn
   :
======================================================================================
 Package          Arch    Version                                 Repository     Size
======================================================================================
 mod_dav_svn      x86_64  1.10.2-5.module+el8.7.0+20838+7cfc8c53  ol8_appstream  107 k
 subversion       x86_64  1.10.2-5.module+el8.7.0+20838+7cfc8c53  ol8_appstream  1.1 M
 
 libserf          x86_64  1.3.9-9.module+el8.7.0+20838+7cfc8c53   ol8_appstream   60 k
 subversion-libs  x86_64  1.10.2-5.module+el8.7.0+20838+7cfc8c53  ol8_appstream  1.5 M
 utf8proc         x86_64  2.6.1-3.module+el8.7.0+20838+7cfc8c53   ol8_appstream   73 k

configure mod_dav_svn for apache

$ sudo vi /etc/httpd/conf.d/subversion.conf

<Location /svn>
  DAV svn
  SVNParentPath /var/svn
  SVNListParentPath on
</Location>

make repository

$ sudo mkdir -p /var/svn/test1
$ sudo /usr/bin/svnadmin create /var/svn/test1
$ sudo chown -R apache:apache /var/svn/

$ ls -l /var/svn/test1/
total 24
-rw-r--r-- 1 apache apache  246 Jan  8 11:15 README.txt
drwxr-xr-x 2 apache apache 4096 Jan  8 11:15 conf
drwxr-sr-x 6 apache apache 4096 Jan  8 11:15 db
-r--r--r-- 1 apache apache    2 Jan  8 11:15 format
drwxr-xr-x 2 apache apache 4096 Jan  8 11:15 hooks
drwxr-xr-x 2 apache apache 4096 Jan  8 11:15 locks

$ tree -p -h -u /var/svn/test1/
/var/svn/test1/
|-- [-rw-r--r-- apache     246]  README.txt
|-- [drwxr-xr-x apache    4.0K]  conf
|   |-- [-rw-r--r-- apache    1.1K]  authz
|   |-- [-rw-r--r-- apache     885]  hooks-env.tmpl
|   |-- [-rw-r--r-- apache     309]  passwd
|   `-- [-rw-r--r-- apache    4.3K]  svnserve.conf
|-- [drwxr-sr-x apache    4.0K]  db
|   |-- [-rw-r--r-- apache       2]  current
|   |-- [-r--r--r-- apache      41]  format
|   |-- [-rw-r--r-- apache       5]  fs-type
|   |-- [-rw-r--r-- apache     11K]  fsfs.conf
|   |-- [-rw-r--r-- apache       2]  min-unpacked-rev
|   |-- [drwxr-sr-x apache    4.0K]  revprops
|   |   `-- [drwxr-sr-x apache    4.0K]  0
|   |       `-- [-r--r--r-- apache      50]  0
|   |-- [drwxr-sr-x apache    4.0K]  revs
|   |   `-- [drwxr-sr-x apache    4.0K]  0
|   |       `-- [-r--r--r-- apache     253]  0
|   |-- [drwxr-sr-x apache    4.0K]  transactions
|   |-- [-rw-r--r-- apache       2]  txn-current
|   |-- [-rw-r--r-- apache       0]  txn-current-lock
|   |-- [drwxr-sr-x apache    4.0K]  txn-protorevs
|   |-- [-rw-r--r-- apache      74]  uuid
|   `-- [-rw-r--r-- apache       0]  write-lock
|-- [-r--r--r-- apache       2]  format
|-- [drwxr-xr-x apache    4.0K]  hooks
|   |-- [-rwxr-xr-x apache    2.5K]  post-commit.tmpl
|   |-- [-rwxr-xr-x apache    2.7K]  post-lock.tmpl
|   |-- [-rwxr-xr-x apache    2.9K]  post-revprop-change.tmpl
|   |-- [-rwxr-xr-x apache    2.5K]  post-unlock.tmpl
|   |-- [-rwxr-xr-x apache    3.9K]  pre-commit.tmpl
|   |-- [-rwxr-xr-x apache    3.5K]  pre-lock.tmpl
|   |-- [-rwxr-xr-x apache    3.4K]  pre-revprop-change.tmpl
|   |-- [-rwxr-xr-x apache    3.2K]  pre-unlock.tmpl
|   `-- [-rwxr-xr-x apache    3.6K]  start-commit.tmpl
`-- [drwxr-xr-x apache    4.0K]  locks
    |-- [-rw-r--r-- apache     139]  db-logs.lock
    `-- [-rw-r--r-- apache     139]  db.lock

接続test

apache httpdを再起動後、ブラウザで、http://サーバ名/svn/test1 へ アクセスしてください

trunk branches tags 用 dirの作成

$ svn co http://localhost/svn/test1 test1
Checked out revision 0.

$ cd test1
$ svn mkdir trunk branches tags
A         trunk
A         branches
A         tags
$ svn commit -m "First commit for trunk branches tags"
Adding         branches
Adding         tags
Adding         trunk
Committing transaction...
Committed revision 1.

$ svn list http://localhost/svn/test1
branches/
tags/
trunk/

$ cd ..
$ rm -rf test1/



以上の内容はhttps://end0tknr.hateblo.jp/entry/20250108/1736307003より取得しました。
このページはhttp://font.textar.tv/のウェブフォントを使用してます

不具合報告/要望等はこちらへお願いします。
モバイルやる夫Viewer Ver0.14