apache+svn配置过程

svn安装指南

建议:源码安装

环境:Centos6.2_X64+apache2.2.22+subversion1.6.9

历史:1.已经安装过一次,浏览器和SVN客户端可以正常使用;但在eclipse下载时报错。

2.安装时碰到zlib问题,系统显示已经安装,但是subversion在编译时无法识别。另外源码安装后编译通过

subversion for linux的安装(SVN+apache+linux)

准备的软件包如下:

httpd-2.2.22tar.gz

subversion-1.4.5.tar.gz

1、安装APR和APR-util(httpd-2.2.22.tar.bz2包中有这两个包)

[[email protected] soft]# tar zxvf apr-1.2.7.tar.gz

[[email protected] soft]# cd apr-1.2.7

[[email protected] soft]# ./configure

[[email protected] soft]# make

[[email protected] soft]# make install

[[email protected] soft]# tar zxvf apr-util-1.2.7.tar.gz

[[email protected] soft]# cd apr-util-1.2.7

[[email protected] soft]# ./configure --with-apr=/usr/local/apr/

[[email protected] soft]# make

[[email protected] soft]# make install

2、编译安装APACHE

[[email protected] soft]# tar zxvf httpd-2.2.22.tar.bz2

[[email protected] soft]# cd httpd-2.2.22

[[email protected] soft]# ./configure --prefix=/chroot/apache --enable-so --enable-dav=share --enable-dav-fs --with-apr=/usr/local/apr/ --with-apr-util=/usr/local/apr/bin/

[[email protected] soft]# make

[[email protected] soft]# make install

[[email protected] soft]# /usr/local/apache/bin/apachectl start

3、安装subversion-1.6.9(configure时是否需加入java的路径)

[[email protected] soft]# tar zxvf subversion-1.6.9.tar.gz

[[email protected] soft]# cd subversion-1.6.9

[[email protected] soft]# ./configure --prefix=/usr/local/svn --with-apxs=/chroot/apache/bin/apxs --with-apr=/usr/local/apr/ --with-apr-util=/usr/local/apr/bin  --with-jdk=/usr/java/jdk1.7.0_01/

[[email protected] soft]# make

[[email protected] soft]# make install

4、查看subversion两个动态库有没有安装成功

[[email protected] soft]# vi /usr/local/apache/conf/httpd.conf

看到下面两个模块说明安装成功

LoadModule dav_svn_module     modules/mod_dav_svn.so

LoadModule authz_svn_module   modules/mod_authz_svn.so

5、配置SVN

//////配置用户可自己更改密码功能,可不配置

# This make the user can change the password by itsself

[[email protected] soft]# vi /usr/local/apache/conf/httpd.conf

Alias /changpasswd/ "/usr/local/apache/htdocs/changepasswd"

<Directory "/usr/local/apache/htdocs/">

Require valid-user

# how to authenticate a user

AuthType Basic

AuthName "Subversion Tools"

AuthUserFile /svndata/svn/passwd

</Directory>

///////配置用户可自己更改密码功能,可不配置

<Location /svn/>

DAV svn

SVNParentPath /chroot/svndata

SVNListParentPath on

#       SVNIndexXSLT "/svnindex.xsl"  用于配置SVN的WEB页面,建议不使用!

AuthType Basic

AuthName "Subversion repository"

AuthUserFile /usr/local/svn/passwd

AuthzSVNAccessFile /usr/local/svn/authz

Require valid-user

</Location>

6、建立SVN存储仓库

[[email protected] soft]# mkdir -p /chroot/svndata

[[email protected] soft]# svnadmin create /svndata/svn/rds/rds/

备份以前的SVN库

[[email protected] soft]# svnadmin dump /svndata/svn/rds/rds/ > /home/rds

把备份出来的数据恢复到本地

[[email protected] soft]# svnadmin load /svndata/svn/rds/rds/ < /home/rds

7、建立本地访问控制文件

[[email protected] ~]# cd /svndata/svn/

[[email protected] svn]# /usr/local/apache/bin/htpasswd passwd test123

New password:

提示你输入密码,默认是MD5加密

8、建立本地项目控制文件

[[email protected] svn]# vi auth

我的文件内容为:

[groups]

admin = ryanwu

rdc_admin = wangning

user = shanweimin,wuweimin,wangning

rdc_user = wangning,dengby,cjing,wangl,denby,gaowei,hzming,lxcan,qnhui,zhzg,yuhuan,ltfei,lyli,wfpeng,zqbing,lcyun,daili,wliang,lfeng

,qqchuang,asqiao,lsna,wangpf,gjia

product_user = lgang,chxx,zlli,qqqiong,speng,zyang,lguang,cbfen

[/]

@admin = rw

wangning = rw

mobohan = rw

lgang = rw

[/RDC]

@rdc_admin = rw

@rdc_user = rw

wangfp = rw

[/PC]

cbfen = rw

[/ShareDoc]

* = rw

[/RDC/weekrpt]

@rdc_user = rw

zhzg = rw

lyli = rw

[/RDC/reference]

* = rw

[/RDC/ShareDoc]

* = rw

[/software]

@user = r

shanweimin = rw

* =

[reference]

* = rw

[/RDC/GDAS]

@rdc_user = rw

dengby = rw

daili = rw

yuhuan = rw

9、安装客户端,访问服务器

http://192.168.1.208/svn/

10、到此安装基本结束

修改一下/svndata/svn/rds/rds属性,否则会导致文件上传失败;

[[email protected] svn]# cd /svndata/svn

[[email protected] svn]# chmod -R svnadmin.svnadmin *

[[email protected] svn]# cd rds

[[email protected] svn]# chmod -R svnadmin.svnadmin rds

附:可能出现的问题

Can‘t locate ExtUtils/Embed.pm in @INC (@INC contains

------

#yum install perl-ExtUtils-CBuilder perl-ExtUtils-MakeMaker

#yum install cpan

#cpan install ExtUtils::Install

#perl -MCPAN -e shell

#install CGI(可有可无)

#yum install perl-ExtUtils-Embed

#perl -MCGI -e ‘print "CGI.pm version $CGI::VERSION\n";‘

#find / -name CGI.pm -print 2>/dev/null

solve!!

时间: 2024-10-12 17:39:56

apache+svn配置过程的相关文章

CentOS 6.5 Apache+SVN配置

yum -y install subversion #安装SVN  svnserve -- version #查看svn版本信息确定是否安装 yum -y install httpd #安装Apache  yum -y install mod_dav_svn #安装Apache的SVN支持 mkdir -p /var/www/svn #创建SVN目录  svnadmin create /var/www/svn/repos #创建repos版本库  htpasswd -c /etc/httpd/c

Apache+PHP配置过程详解以及常见问题

1.Apache配置PHP个人认为首先要注意的是Apache和PHP的版本信息,不同的版本之间所要进行设置的参数是不同的,开始的盲目让自己受尽了苦头. 2.选择版本:Apache 2.2.14  PHP:5.2.5 具体细节不再赘述... 3.验证Apache和PHP是否安装成功: (1) Apache: http://localhost (2)PHP:在dos窗口下运行php -i 4.PHP配置文件php.ini (1)修改: extension_dir = “./” extension_d

Apache+Svn配置记录

<Location /svn> DAV svn SVNParentPath /data/svn AuthType Basic AuthName "Authorization Realm" AuthzSVNAccessFile /data/svn/auth AuthUserFile /data/svn/passwd Satisfy any Require valid-user </Location>

CentOS下Apache+SVN+LDAP的安装与配置

上班接近4个月了,在公司做配置管理工程师,主要是在Linux下对公司的源代码以及项目发布进行管理.4个月接触了好多新知识,也对各种工具的集成使用搞得云里来雾里去的,所以打算自己搭建一套环境,进行测试. 首先是Apache+SVN的安装与配置.本人使用Virtualbox创建了一个虚拟机,所以接下来的环境搭建均在虚拟机CentOS上实现 1.Apache的安装 网上有很多教程都是使用源码安装的方式,但安装起来稍显复杂,容易将像我这样的初学者搞晕,所以我就采用了yum工具(CentOS系统下是yum

SVN配置以及自动部署到apache虚拟目录

SVN配置以及自动部署到apache虚拟目录 一.VisualSVN server 服务端和TortoiseSVN客户端下载 VisualSVN下载:http://subversion.apache.org/packages.html 页面最下方就可以找到(下图紫色链接) TortoiseSVN下载:http://tortoisesvn.net/downloads.html 下载的地方很醒目,有32位和64位 紧接着下边有语言包下载 二.VisualSVN server和TortoiseSVN安

apache配置过程出现的小问题

详细配置过程不再叙说. 出现的问题: ./configure --prefix=/usr/local/apache    命令后,出现编译错误提示. 如果没有安装gcc,先用 yum -y install gcc    命令安装gcc. 如果出现yum被锁定的提示 等待占用的程序自己停止.......

LINUX下PHP+MYSQL+APACHE配置过程

需要软件如下: apache: http://www.apache.org mysql: http://www.mysql.com php: http://www.php.net/downloads.php gd: http://www.boutell.com/gd/#buildgd ZendOptimizer http://www.zend.org/products/zend_optimizer Gettext http://ftp.gnu.org/pub/gnu/gettext/ netpb

yum/源码编译安装配置apache+svn

本次整理的比较急.源码编译和命令解释后续加上.不多说开始吧 系统环境:CentOS6.5_x86_64 minimal YUM版 1.检查是否安装了httpd.mod_dav_svn(实现apache+svn的一个模块).subversion(默认是安装的.需要yum remove subversion卸载掉) [[email protected] ~]# rpm -ql httpd package httpd is not installed [[email protected] ~]# rp

svn+ apache + ldap 配置

svn+ apache + ldap 配置: <Location /> # Uncomment this to enable the repository DAV svn # Set this to the path to your repository #SVNPath /var/lib/svn # Alternatively, use SVNParentPath if you have multiple repositories under # under a single directo