#descrip: build subversion server step by step
#author: liyangth@gmail.com
#date: 10/30/2006
1.install apache2
#/*tar xjvf httpd-2.0.58.tar.bz2*/
#/* config and compiler httpd-2.0.58 for apache2 */
./configure --enable-dav --enable-so --prefix=/usr/local/apache2/
make
make install
#/* start appache service */
cd /usr/local/apache2/bin
./apachectl start
#/ * open website look at wether apache work * /
#http://localhost/
2.install subversion
#tar subversion-1.4.0 and subversion-deps-1.4.0 on the same dir
#/* config and compiler subversion1.4.0*/
./configure --with-apxs=/usr/local/apache2/bin/apxs --prefix=/usr/local/subversion --with-apr=/usr/local/apache2/ --with-apr-util=/usr/local/apache2 --with-ssl --with-zlib --enable-maintainer-mod
make
make install
3.
#create repository thar path
mkdir /home/liyangth/repository
#create repository for project source
svnadmin create /home/liyangth/repository/test
4.config service
#restart apache if you like safety
cd /usr/local/apache2/bin
./apachectl start
./apachectl restart
#config apache server
vi /usr/local/apache2/conf/httpd.conf
<Location /svn>
DAV svn
SVNParentPath /home/liyangth/repository
AuthzSVNAccessFile /home/liyangth/repository/authz.conf
AuthType Basic
AuthName "Embedded Group Subversion"
AuthUserFile /home/liyangth/repository/userfile
Require valid-user
</Location>
5.
#add user and passwd
htpasswd -c /home/liyangth/repository/userfile worm
#if you first create userfile you must adding -c,if userfile exist you can use
htpasswd userfile usera
6.set up user access purview
vi /home/liyangth/repository/authz.conf
[test:/]
worm = rw
usera = r
7.some detail
/* close fire wall */
/etc/init.d/iptables stop
#notice!!!
vi /usr/local/apache2/conf/httpd.conf
Change "User ..." to "User liyangth" /* User is builder who set up this subversion */
#notice!!!
chown -R liyangth /home/liyangth/repository
chmod 770 /home/liyangth/repository
8.change start script
#ps
vi /etc/profile
/usr/sbin/apachectl start
export SVN_EDITOR=vi
9.complete
#restart svn+apache
/usr/local/apache2/bin/apachect restart
/* if restatr failt, may be old httpd service running, so you must stop it */
10.test
#look at website http://localhost/svn/test
#author: liyangth@gmail.com
#date: 10/30/2006
1.install apache2
#/*tar xjvf httpd-2.0.58.tar.bz2*/
#/* config and compiler httpd-2.0.58 for apache2 */
./configure --enable-dav --enable-so --prefix=/usr/local/apache2/
make
make install
#/* start appache service */
cd /usr/local/apache2/bin
./apachectl start
#/ * open website look at wether apache work * /
#http://localhost/
2.install subversion
#tar subversion-1.4.0 and subversion-deps-1.4.0 on the same dir
#/* config and compiler subversion1.4.0*/
./configure --with-apxs=/usr/local/apache2/bin/apxs --prefix=/usr/local/subversion --with-apr=/usr/local/apache2/ --with-apr-util=/usr/local/apache2 --with-ssl --with-zlib --enable-maintainer-mod
make
make install
3.
#create repository thar path
mkdir /home/liyangth/repository
#create repository for project source
svnadmin create /home/liyangth/repository/test
4.config service
#restart apache if you like safety
cd /usr/local/apache2/bin
./apachectl start
./apachectl restart
#config apache server
vi /usr/local/apache2/conf/httpd.conf
<Location /svn>
DAV svn
SVNParentPath /home/liyangth/repository
AuthzSVNAccessFile /home/liyangth/repository/authz.conf
AuthType Basic
AuthName "Embedded Group Subversion"
AuthUserFile /home/liyangth/repository/userfile
Require valid-user
</Location>
5.
#add user and passwd
htpasswd -c /home/liyangth/repository/userfile worm
#if you first create userfile you must adding -c,if userfile exist you can use
htpasswd userfile usera
6.set up user access purview
vi /home/liyangth/repository/authz.conf
[test:/]
worm = rw
usera = r
7.some detail
/* close fire wall */
/etc/init.d/iptables stop
#notice!!!
vi /usr/local/apache2/conf/httpd.conf
Change "User ..." to "User liyangth" /* User is builder who set up this subversion */
#notice!!!
chown -R liyangth /home/liyangth/repository
chmod 770 /home/liyangth/repository
8.change start script
#ps
vi /etc/profile
/usr/sbin/apachectl start
export SVN_EDITOR=vi
9.complete
#restart svn+apache
/usr/local/apache2/bin/apachect restart
/* if restatr failt, may be old httpd service running, so you must stop it */
10.test
#look at website http://localhost/svn/test