4

Apache 版本:Apache/2.2.15 (Unix) 操作系统:Fedora release 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);
?>

但它在单击存储库名称时显示“Rev 0”

4

2 回答 2

0

在 Menu sytem>Administration>SElinuxManagement Disabled Selinux 现在它工作正常!!

在此处输入图像描述

于 2013-01-22T13:56:59.227 回答
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为 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/subversionsvnserve

# 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"

我在我的博客上写了一篇题为: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>
于 2013-01-08T05:39:42.813 回答