Subversion1.4.2 installed on RHEL4

Subversion1.4.2 installed on RHEL4

windows use the svn has been a while, most recently in preparation for svn backup strategy, you want to configure a linux as a backup svn, and acquire a virtual machine to do the experiment, get real again.

1, mounted on a vmware 5 RHEL4U2
installation what components not chosen as Apache , FTP, SMB these. Mainly want to install the system manually install the latest version, anyway customized software What Gogo not chosen time, including graphical interface, Bahrain discovery into the kde desktop may be missing elected, worth mentioning, there is a graphic or.

2, mounted Apache2.2.3
seen best in http://httpd.apache.org 2.2.3 version, then download down mounting

  the tar -zxvf the httpd-2.2.3.tar.gz
  CD-CD the httpd 2.2. 3 with the following initial command to configure the results subversion not cause apache installed after the start
  ./ the conf igure --prefix = / usr / local / apache --enable- MOD ule = most --enable-shared = max
later changed
./configure --prefix = / usr / local / apache2 --enable-so --enable-rewrite = share --enable-proxy = share --enable-proxy = report this content share --enable- -ajp DAV = report this content share --enable-DAV-FS will be no problem

running after the discovery of the error, can not find the compiler is, then remember not installed gcc, then mount the CD-ROM, first installed gcc Besides rpm -ivh /media/cdrom/RedHat/RPMS/gcc*.rpm, also encountered when installing gcc dependencies of some packages, one by one to solve , mainly the following rpm dependent
rpm -ivh / media / cdrom / RedHat /RPMS/zlib-devel-1.2.1.2-1.2.i386.rpm
RPM -ivh /media/cdrom/RedHat/RPMS/libstdc++-devel-3.4.4-2.i386.rpm
RPM -ivh / Media / cdrom / RedHat /RPMS/libgcj-devel-3.4.4-2.i386.rpm
then run the above command to configure the apache Once installed gcc, then make, make install again

after installed apache, apache test to see whether the run
/ usr / local / apache / bin / apachectl start
with browser access , see it works the word, indicating the success of the apache

3, installation subversion1.4.2
the beginning I was going to use the rpm installed, download the rpm 1.4.0 of package, the report apr version is too low to install, just download subversion see the catalog there
apr-0.9.12-2.i386.rpm and apr-util-0.9.12-1.i386.rpm, two packets after -U installed, subversion can accord
RPM -U on Apr-0.9.12-2.i386.rpm
RPM -U on Apr-util-0.9.4-21.i386.rpm
RPM -ivh Subversion-1.4.2 -1.i386.rpm

build a database about the test after
svn ADMIN the Create / svn_repo / success of the test

but I uninstalled 1.4.0, 1.4.2 ready to install tar.gz package
rmp -e subversion

download is subversion1. 4.2.tar.gz
or first extract
tar -zxvf subversion-1.4.2.tar.gz
cd subversion-1.4.2
start configuring
./configure --prefix = / usr / local / svn
reported that the apr can not find, qq the group asked the boss, but also in the forum to find, and finally the following command can do no wrong
. / configure --prefix = / usr / local / svn --with-apxs = / usr / local / apache2 / bin / apxs --with-apr = / usr / local / apache2 --with-apr-util = / usr / local / apache2
then make make install again

look apache configuration file has been automatically added as two lines
the LoadModule dav_svn_module modules / mod_dav_svn.so
the LoadModule the authz _svn_module modules / mod_authz_svn.so.
both so also copy the file to the corresponding the modules directory.

Now apache and subversion are successful, the next step is to establish the profile

4, permissions configuration
I built in / svn_repo a conf folder, devoted to the storage User information, authority configuration information
mkdir / svn_repo / conf
establish a user name , password file
/ usr / local / apache2 / bin / htpasswd -cm /svn_repo/conf/users.conf yourname
the on-screen prompts enter the password twice
zaiconf build directory test database permissions and group files (files personally feel that the group did not use)
mkdir / svn_repo / conf / test
cd / svn_repo / conf / test
vi testAccess.conf
enter the following configuration information, the simplest rights profiles
[groups]
ADMIN = wangdm, zhugang, yinfei, zhumz
[/]
@admin = rw

vi testGroup.conf
input ms: ligw wanghj
here is the group name + colon list of user names separated by spaces +

save and exit

create svnadmin user, the user name can easily take
useradd svnadmin

edit /usr/local/apache2/conf/httpd.conf file
the user daemon and group daemon in the daemon into svnadmin
end of the file input and this project configuration repository access information

< the Location / svn / the Test>
    DAV svn
    SVNPath / svn_repo / the Test

    # Our Access Control Policy
    AuthzSVNAccessFile /svn_repo/conf/test/testAccess.conf

    # How the authenticate to the User A
    AuthType Basic
    AuthName " the Test SVN"
    AuthUserFile /svn_repo/conf/users.conf
    AuthGroupFile / svn_repo / the Test / testGroups. the conf
    the Require Test Group
</ the Location>
I personally like each database individually configure an access path, each database use the same user file, but the file permissions are independent, so unlike svnparentpath that way, the file permissions looks very complicated, bad management .

Note also the owner / svn_repo entire directory to svnadmin user
chown -R svnadmin: svnadmin / svn_repo

restart apache, svn this a project is complete. Next configure ssl , were re-posting.

It can restart apache

Reproduced in: https: //www.cnblogs.com/licheng/archive/2008/11/08/1329645.html

Guess you like

Origin blog.csdn.net/weixin_34413802/article/details/92632032