Blog信息 |
blog名称: 日志总数:1304 评论数量:2242 留言数量:5 访问次数:7586474 建立时间:2006年5月29日 |

| |
[Subversion]subversion 1.2.3 for Redhat linux AS 4 源码包安装文档 软件技术, 电脑与网络
lhwork 发表于 2006/6/23 13:16:30 |
安装环境:REDHAT AS 4
时间:2005-11-21
作者:millsguo
Blog:http://bbs.guomin.net/blog/mills
[参考了本论坛相关文档]
安装步骤:
系统默认安装包:
代码:
autoconf-2.59-5
libtool-1.5.6-4
一、下载安装APACHE2
1、下载httpd-2.0.55.tar.gz源码包
该源码包中包含APR和APR-UTIL模块,不需重新下载
代码:
#tar xvzf httd-2.0.55.tar.gz
#cd httpd-2.0.55
//安装APR和APR-UTIL
#cd srclib/apr
#./buildconf
#./configure --prefix=/usr/local/apr
#make && make install
#cd ../apr-util
#./buildconf
#./configure --prefix=/usr/local/apr --with-apr=/usr/local/apr
#make && make install
#cd ../..
#./configure --enable-dav --enable-maintainer-mode
--prefix=/usr/local/apache2 --with-apr=/usr/local/apr
--with-apr-util=/usr/local/apr --with-mpm=worker --enable-track-vars
--enable-cgi --enable-modules=so --enable-rewrite
#make && make install
修改httpd.conf文件
加入
代码:
LoadModule php4_module modules/libphp4.so
LoadModule perl_module modules/mod_perl.so
AddType application/x-httpd-php .php .php3 .inc
AddType application/x-httpd-php-source .phps
二、PHP安装
代码:
configure --enable-pic --with-bz2 --with-png --with-freetype-dir
--with-gd --enable-gd-native-ttf --with-iconv --with-jpeg-dir=/usr/lib
--with-xml --with-zlib --enable-ftp --enable-sockets
--with-pear=/usr/share/pear --with-mysql=/usr/local/mysql
--with-apxs2=/usr/local/apache2/bin/apxs --enable-mbstring=all
--prefix=/usr/local/php4 --enable-exif
三、安装subversion
代码:
#./configure --prefix=/usr/local/subversion
--with-apr=/usr/local/apr --with-apr-util=/usr/local/apr
--with-apxs=/usr/local/apache2/bin/apxs
#make && make install
#/usr/local/subversion/bin/svnadmin create /data/svn/root
#chown -R nobody /data/svn
在apache2的httpd.conf中加入以下代码:
代码:
<Location /svn>
DAV svn
SVNPath /data/svn/root
AuthType Basic
AuthName "CSYL Version Control System"
AuthUserFile /data/svn/svn-auth-file
Require valid-user
</Location>
生成密码文件
代码:
#mkdir /data/svn
#chown -R nobody /data/svn
#/usr/local/apache2/bin/htpasswd -c /data/svn/svn-auth-file mills
引用:
在安装完后出现以下问题:
svn: PROPFIND request failed on '/svn/repository'
svn:Could not open the requested SVN filesystem
GOOGLE了半天后,终于发现是httpd.conf中的<location>标签中的路径没设好。
<Location /svn>
DAV svn
SVNPath /data/svn/root
</Location>
访问方式:http://blog.guomin.net/svn
|
|
|