-->
IP
:- 192.168.0.10
Hostname
:- adserver
Domain
:- example.com
Full
name :- adserver.example.com
2.Linux
(SVN) server Detail :-
IP
:- 192.168.0.123
Hostname
:- svn.server.com
3.SVN
Server side :-
b)
Configura SVN.
4.We
are install SVN in linux Machine.
Download
some Packages :-
#
cd /opt/svn
4.Install
some Packages :-
#
yum install httpd php
#
yum install gcc glibc glibc-common
#
yum install gd gd-devel
# yum install zlib
# yum install neon
# yum install neon
# yum install
subversion
#
yum install enscript
#
yum install mod_dav_svn
#
yum install php-ldap
5.Go
to this Path :-
#
cd /opt/svn
#
tar -xvf subversion-1.4.6.tar.gz
# tar -xvzf subversion_deps-1.4.6.tar.gz (Don’t worry for that it is keeping all
the libraries filesinside subversion-1.4.6)
# tar -xvzf subversion_deps-1.4.6.tar.gz (Don’t worry for that it is keeping all
the libraries filesinside subversion-1.4.6)
#
tar -xvzf apr-1.2.12.tar.gz
# cd apr-1.2.12 (autoconf and libtool )
# cd apr-1.2.12 (autoconf and libtool )
#
./buildconf
# ./configure
# make
# ./configure
# make
#
tar -xvzf apr-util-1.2.12.tar.gz
# cd apr-util-1.2.12
# ./buildconf - -with-apr=path to apr directory (/usr/lib/svn/apr-1.2.12)
# ./configure - -with-apr=path to apr directory (/usr/lib/svn/apr-1.2.12)
# make
# cd apr-util-1.2.12
# ./buildconf - -with-apr=path to apr directory (/usr/lib/svn/apr-1.2.12)
# ./configure - -with-apr=path to apr directory (/usr/lib/svn/apr-1.2.12)
# make
# tar -xvzf
db-4.6.21.tar.gz
#
cd subversion-1.4.6
# ./autogen.sh
# ./configure –with-berkelay-db=/usr/lib/svn/db-4.6.21 (path of berkelay data base)
# make
# make install
# ./autogen.sh
# ./configure –with-berkelay-db=/usr/lib/svn/db-4.6.21 (path of berkelay data base)
# make
# make install
6.Now
create one repository with svnadmin command.
#
cd /var/www/
#
svnadmin create repos
#
chown -R apache:apache /var/www/repos
7.Then
at the end of the Subversion.conf
file you have to add
Error
“|rotatelogs /var/log/svn/error-%Y-%m-%d.log 86400”
Customlog
“|rotatelogs /var/log/svn/access-%Y-%m-%d.log 86400” common
<Location
/var/www/repos>
DAV svn
SVNPath /var/www/repos
AuthzSVNAccessFile /var/www/repos/conf/authz
SVNIndexXSLT /repos-web/view/repos.xsl
DAV svn
SVNPath /var/www/repos
AuthzSVNAccessFile /var/www/repos/conf/authz
SVNIndexXSLT /repos-web/view/repos.xsl
AuthBasicProvider
ldap
AuthType Basic
AuthzLDAPAuthoritative
off
AuthName “Subversion repository”
AuthLDAPURL
“ldap://adserver.example.com:3268/DC=example,DC=com?sAMAccountName?sub?(objectClass=*)”
NONE
AuthLDAPBindDN
administrator@example.com
AuthLDAPBindPassword
shashi@123
Require valid-user
</Location>
8.add
the folder on repos :-
#
mkdir /root/Desktop/unicom
# svn import -m “Initial import” /root/Desktop/unicom file:///var/www/repos/new folder name
# svn import -m “Initial import” /root/Desktop/unicom file:///var/www/repos/new folder name
9.Only
2 users will be able to view the repos and other users are not able
to view for repos.
a)
shashi
b)
svn
#
cd /var/www/repos/conf/
#
vim authz
[repos:/]
shashi
= rw
svn
= r
#
service httpd restart
#
chkconfig httpd on
10.check
link :
username
:- shashi
password
:- ******