linux下apache+svn的安装

1 -- 软件依赖与下载

apache依赖的软件:openssl、apr-util、apr

svn依赖的软件:openssl、apr-util、apr、sqlite、neon

下载各软件链接:
apache:http://mirrors.tuna.tsinghua.edu.cn/apache/httpd/httpd-2.2.23.tar.gz

apr-util:http://mirrors.tuna.tsinghua.edu.cn/apache/apr/apr-util-1.5.1.tar.gz

apr:http://mirrors.tuna.tsinghua.edu.cn/apache/apr/apr-1.4.6.tar.gz

openssl:http://openssl.org/source/openssl-1.0.1c.tar.gz

subversion:http://www.fayea.com/apache-mirror/subversion/subversion-1.7.7.tar.gz

sqlite:http://sqlite.org/sqlite-autoconf-3071401.tar.gz

neon:http://www.webdav.org/neon/neon-0.29.6.tar.gz

2 -- 创建运行环境用户以及用户组
该用户将是apache和svn运行时使用的有效用户,创建命令:
shell# groupadd svn
shell# useradd svn
shell# mkdir /home/svn
shell# chown -R svn:svn /home/svn
创建用户svn以及用户组svn,该用户以及用户组将用在以后软件编译、路径权限设置以及apache和svn的运行时用户。
3 -- 安装依赖库
STEP01 安装apr
shell# tar -zxvf apr-1.4.6.tar.gz
shell# cd apr-1.4.6/
shell# ./configure --prefix=/home/svn/apps/apr
shell# make && make install
STEP02 安装apr-util
shell# tar -zxvf apr-util-1.5.1.tar.gz 
shell# cd apr-util-1.5.1/
shell# ./configure --prefix=/home/svn/apps/apr-util --with-apr=/home/svn/apps/apr/
shell# make & make install
STEP03 安装SQLite
shell# tar -zxvf sqlite-autoconf-3071401.tar.gz 
shell# cd sqlite-autoconf-3071401/
shell# ./configure --prefix=/home/svn/apps/sqlite
shell# make && make install
STEP04 安装openssl
shell# tar -zxvf openssl-1.0.1c.tar.gz
shell# cd openssl-1.0.1c/
shell# ./config --prefix=/home/svn/apps/ssl shared
shell# make && make install
STEP05 安装neon
shell# tar -zxvf neon-0.29.6.tar.gz
shell# cd neon-0.29.6/
shell# ./configure --prefix=/home/svn/apps/neon --with-ssl --with-libs=/home/svn/apps/ssl --enable-shared
shell# make && make install
neon并非必要软件,但如果需要通过http或者https协议访问版本库,那就必须安装。我们知道,SVN有ra_dav(http,https)、ra_svn(svn原生协议)、ra_local(本地路径)三种存取模块,系统为我们默认安装了ra_svn和ra_local,我们自己安装neon库,从而让svn支持ra_dav存储模块。下面是不安装neon的情况下,svn的输出:
shell# svn --version

The following repository access (RA) modules are available:

* ra_svn : Module for accessing a repository using the svn network protocol.
  - handles 'svn' scheme
* ra_local : Module for accessing a repository on local disk.
  - handles 'file' scheme
当我们正确安装neon,svn已经支持ra_dav之后,执行上述命令应该是如下输出:
shell# svn --version

The following repository access (RA) modules are available:

* ra_neon : Module for accessing a repository via WebDAV protocol using Neon.
  - handles 'http' scheme
  - handles 'https' scheme
* ra_svn : Module for accessing a repository using the svn network protocol.
  - handles 'svn' scheme
* ra_local : Module for accessing a repository on local disk.
  - handles 'file' scheme
4 -- 安装apache(with https)
shell# tar -zxvf httpd-2.2.23.tar.gz
shell# cd httpd-2.2.23
shell# ./configure --prefix=/home/svn/apps/apache --with-apr=/home/svn/apps/apr --with-apr-util=/home/svn/apps/apr-util --with-ssl=/home/svn/apps/ssl --enable-dav --enable-so --enable-ssl --enable-rewrite
shell# make & make install
5 -- 安装svn(with mod_dav_svn)
shell# tar -zxvf subversion-1.7.7.tar.gz
shell# cd subversion-1.7.7
shell# ./configure --prefix=/home/svn/apps/svn --with-apr=/home/svn/apps/apr --with-apr-util=/home/svn/apps/apr-util --with-ssl=/home/svn/apps/ssl  --with-sqlite=/home/svn/apps/sqlite --with-apxs=/home/svn/apps/apache/bin/apxs --with-neon=/home/svn/apps/neon --with-openssl
shell# make & make install

转载于:https://www.cnblogs.com/motadou/archive/2012/07/01/2572075.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值