Apache版本:Apache / 2.2.15(Unix) 操作系统:Fedora发行版13(Goddard)
在加载WebSVN时,它会显示在下面的文件中配置的所有存储库,但是在点击存储库名称时会显示“Rev 0”,请参阅随附的屏幕截图。
/var/www/html/websvn/include/config.php
<?php
$config->parentPath("/repos");
$config->addRepository('landfill', 'file:///repos/proj/landfill','Projects');
$config->setTemplatePath("$locwebsvnreal/templates/calm/");
$config->setMinDownloadLevel(2);
set_time_limit(0);
$config->expandTabsBy(8);
?>
答案 0 :(得分:0)
要尝试的事情。
config.php
:$config->parentPath('/proj/lamolabs.org/scm/svn');
$config->addTemplatePath($locwebsvnreal.'/templates/calm/');
$config->useTreeIndex(true); // Tree index, open by default
$config->setShowLastModInListing(true);
$config->addInlineMimeType('text/plain');
$config->allowDownload();
$config->setMinDownloadLevel(2);
$config->useGeshi();
set_time_limit(0);
$config->expandTabsBy(2);
/etc/init.d/svnserve
:#!/bin/bash
# Control script for the Subversion daemon
#
# chkconfig: 2345 89 40
# description: Subversion daemon
#
# processname: svnserve
source /etc/rc.d/init.d/functions
[ -x /usr/bin/svnserve ] || exit 1
### Default variables
SYSCONFIG="/etc/sysconfig/subversion"
### Read configuration
[ -r "$SYSCONFIG" ] && source "$SYSCONFIG"
RETVAL=0
prog="svnserve"
desc="Subversion daemon"
start() {
echo -n $"Starting $desc ($prog): "
daemon $prog -d $OPTIONS
RETVAL=$?
[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
echo
}
stop() {
echo -n $"Shutting down $desc ($prog): "
killproc $prog
RETVAL=$?
[ $RETVAL -eq 0 ] && success || failure
echo
[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$prog
return $RETVAL
}
case "$1" in
start)
start
;;
stop)
stop
;;
restart)
stop
start
RETVAL=$?
;;
condrestart)
[ -e /var/lock/subsys/$prog ] && restart
RETVAL=$?
;;
*)
echo $"Usage: $0 {start|stop|restart|condrestart}"
RETVAL=1
esac
exit $RETVAL
/etc/sysconfig/subversion
svnserve
# Configuration file for the Subversion service
#
# To pass additional options (for instace, -r root of directory to server) to
# the svnserve binary at startup, set OPTIONS here.
#
#OPTIONS=
OPTIONS="--threads --root /proj/lamolabs.org"
我在一篇标题为blog的帖子中写了关于我如何在Git and subversion setup on CentOS 5上设置此内容的文章。该帖子有一些可能有用的其他信息。
让我知道你是如何知道的,我很想知道你的设置是什么。
编辑#2
/etc/httpd/conf.d/subversion.conf
:
<VirtualHost *:80>
UseCanonicalName Off
ServerName websvn.lamolabs.org
ServerAlias websvn.bubba.net
DocumentRoot /var/www/websvn/current
<Directory /var/www/websvn/current>
Allow from all
</Directory>
</VirtualHost>
答案 1 :(得分:0)
在菜单系统&gt;管理&gt; SElinuxManagement已禁用Selinux,现在它工作正常!!