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

来源:互联网 发布:知乎关注最多的话题 编辑:程序博客网 时间:2024/04/30 07:57

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

0 0
原创粉丝点击