简体   繁体   English

WebSVN列出了所有存储库。 但不显示文件

[英]WebSVN listing all repositories. But Not showing files

Apache version : Apache/2.2.15 (Unix) Operating System : Fedora release 13 (Goddard) Apache版本:Apache / 2.2.15(Unix)操作系统:Fedora版本13(Goddard)

While loading WebSVN, it shows all repositories configured in below file ,But It shows 'Rev 0' while Click on repository name,Please see the attached screen shot. 在加载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'而点击存储库名称

Couple of things to try. 几件事要尝试。

First here's my config.php : 首先这是我的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);

Second, I setup my own start/stop script, /etc/init.d/svnserve , for svnserve: 其次,我为svnserve设置了自己的启动/停止脚本/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

Third, I setup a config file, /etc/sysconfig/subversion , for svnserve 第三,我为svnserve设置了一个配置文件/etc/sysconfig/subversion

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

I wrote about how I set this up on my blog in a post titled: Git and subversion setup on CentOS 5 . 我写了一篇关于如何在我的博客上设置这个标题的文章: CentOS 5上的Git和颠覆设置 The post has some additional info that might be helpful. 该帖子有一些可能有用的其他信息。

Let me know how you make out, I'm curious to find out what's up with your setup. 让我知道你是如何做出来的,我很想知道你的设置是什么。

EDIT #2 编辑#2

/etc/httpd/conf.d/subversion.conf : /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>

In Menu sytem>Administration>SElinuxManagement Disabled Selinux and now it working Fine!! 在菜单系统>管理> SElinuxManagement禁用Selinux现在它工作正常!!

在此输入图像描述

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM