linux 下 apache2和subverion的通用安装和配置(无权限)

debian6.0.6下测试通过

1、 安装apr1.5.1

./configure --prefix=/opt/apr1.5.1
make
sudo make install
2、安装apr-util-1.5.3
./configure --prefix=/opt/apr_util_1.5.3  --with-apr=/opt/apr1.5.1
make
sudo make install
3、安装apache2-httpd-2.4.10
./configure --prefix=/opt/apache_httpd_2.4.10 --with-apr=/opt/apr_1.5.1 --with-apr-util=/opt/apr_util_1.5.3 
错误报告:configure: error: pcre-config for libpcre not found. PCRE is required and available from http://pcre.org/
解决:安装libpcrecpp0 \ libpcre++0 \ libpcre3-dev
make
sudo make install
4、启动apache 
报错: AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally  to suppress this message
(13)Permission denied: AH00091: httpd: could not open error log file /opt/apache_httpd_2.4.10/logs/error_log.
AH00015: Unable to open logs
解决:conf/httpd.conf  改  Listen 8081 添加 ServerName localhost:8081
把apache_httpd_2.4.10目录及子目录修改所有者ydp
5、安装sqlite3.8.5


6、配置apache的svn支持
conf/httpd.conf  增加(顺序不可以颠倒)
LoadModule dav_module         modules/mod_dav.so
LoadModule dav_svn_module     modules/mod_dav_svn.so
复制$subversion_home/libexec/mod_dav_svn.so    到  $apache_home/modules/


<Location /svn>
DAV svn
SVNParentPath /home/ydp/repository/svn
</Location>

7、安装subversion1.8.9
./configure --prefix=/opt/subversion_1.8.9 --with-apr=/opt/apr_1.5.1 --with-apr-util=/opt/apr_util_1.5.3 --with-apxs=/opt/apache_httpd_2.4.10/bin/apxs
./configure --prefix=/opt/subversion_1.8.9 --with-apr=/opt/apr_1.5.1 --with-apr-util=/opt/apr_util_1.5.3 --with-apxs=/opt/apache_httpd_2.4.10/bin/apxs --with-sqlite=/opt/sqlite_3.8.5


configure: error: subversion requires zlib
解决:安装zlib1g-dev
./configure --prefix=/opt/subversion_1.8.9 --with-apr=/opt/apr_1.5.1 --with-apr-util=/opt/apr_util_1.5.3 --with-apxs=/opt/apache_httpd_2.4.10/bin/apxs --with-sqlite=/opt/sqlite_3.8.5


8、启动apache,访问http://127.0.0.1/svn 报错:you don't have permission to access /svn on this server.
解决:在$apache_home/conf/httpd.conf 文件的最后
<Location /svn>
DAV svn
SVNParentPath /home/ydp/repository/svn
SVNListParentPath on  ----这个很重要哦

</Location>


9、创建库 $subversion_home/bin    svnadmin create $SVNParentPath/javaprojects


10、eclipse(kepler)+subclipse1.6.18 提交时报错JavaHL(JNI) Not available
解决:启用javaHL 使用SVNKit

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值