[viewvc-users] viewvc setup with subversion and apache

Kay Ibrahim <[email protected]> Thu, 26 Feb 2015 13:39:58 -0500
Newsgroups gmane.comp.version-control.cvs.viewcvs.user
Message-ID <CAAeeKtyeuYDUGf-gwLCZPER4c7bp0uz4h6KxwfAzGh_pZT=g3Q__40833.8378336795$1424978450$gmane$org@mail.gmail.com>
------=_Part_15269_304773715.1424978432381
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Hi,
I installed subversion 1.8.11 and apache (httpd-2.4.10). After the
installation of the svn and apache, I decided to install viewvc.-1.1.23. I
completed the installation of the viewvc by editing the viewvc.conf  and
hhtpd.conf as in the viewVC INSTALL file.
When I tried to access my svn repository via IE/Mozilla browser using
something like the following url: http://zyz.bit.com:10900/viewvc , I get
the below: Please help.

#!/usr/bin/python
# -*-python-*-
#
# Copyright (C) 1999-2014 The ViewCVS Group. All Rights Reserved.
#
# By using this file, you agree to the terms and conditions set forth in
# the LICENSE.html file which can be found at the top level of the ViewVC
# distribution or at http://viewvc.org/license-1.html.
#
# For more information, visit http://viewvc.org/
#
# -----------------------------------------------------------------------
#
# viewvc: View CVS/SVN repositories via a web browser
#
# -----------------------------------------------------------------------
#
# This is a teeny stub to launch the main ViewVC app. It checks the load
# average, then loads the (precompiled) viewvc.py file and runs it.
#
# -----------------------------------------------------------------------
#

#########################################################################
#
# INSTALL-TIME CONFIGURATION
#
# These values will be set during the installation process. During
# development, they will remain None.
#

LIBRARY_DIR = r"/testsvn/2rdparty/tools/viewvc-1.1.23/lib"
CONF_PATHNAME = r"/testsvn/2rdparty/tools/viewvc-1.1.23/viewvc.conf"

#########################################################################
#
# Adjust sys.path to include our library directory
#

import sys
import os

if LIBRARY_DIR:
  sys.path.insert(0, LIBRARY_DIR)
else:
  sys.path.insert(0, os.path.abspath(os.path.join(sys.argv[0],
                                                  "../../../lib")))

#########################################################################

### add code for checking the load average

#########################################################################

# go do the work
import sapi
import viewvc

server = sapi.CgiServer()
cfg = viewvc.load_config(CONF_PATHNAME, server)
viewvc.main(server, cfg)

------------------------------------------------------
http://viewvc.tigris.org/ds/viewMessage.do?dsForumId=4255&dsMessageId=3101385

To unsubscribe from this discussion, e-mail: [[email protected]].
------=_Part_15269_304773715.1424978432381
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div>Hi,</div><div>I installed subversion 1.8.11 and apach=
e (httpd-2.4.10). After the installation of the svn and apache, I decided t=
o install viewvc.-1.1.23. I completed the installation of the viewvc by edi=
ting the viewvc.conf=C2=A0 and hhtpd.conf as in the viewVC INSTALL file.</d=
iv><div>When I tried to access my svn repository via IE/Mozilla browser usi=
ng something like the following url: <a href=3D"http://zyz.bit.com:10900/vi=
ewvc">http://zyz.bit.com:10900/viewvc</a>=C2=A0, I get the below: Please he=
lp.</div><div><pre>#!/usr/bin/python
# -*-python-*-
#
# Copyright (C) 1999-2014 The ViewCVS Group. All Rights Reserved.
#
# By using this file, you agree to the terms and conditions set forth in
# the LICENSE.html file which can be found at the top level of the ViewVC
# distribution or at <a href=3D"http://viewvc.org/license-1.html">http://vi=
ewvc.org/license-1.html</a>.
#
# For more information, visit <a href=3D"http://viewvc.org/">http://viewvc.=
org/</a>
#
# -----------------------------------------------------------------------
#
# viewvc: View CVS/SVN repositories via a web browser
#
# -----------------------------------------------------------------------
#
# This is a teeny stub to launch the main ViewVC app. It checks the load
# average, then loads the (precompiled) viewvc.py file and runs it.
#
# -----------------------------------------------------------------------
#

#########################################################################
#
# INSTALL-TIME CONFIGURATION
#
# These values will be set during the installation process. During
# development, they will remain None.
#

LIBRARY_DIR =3D r&quot;/testsvn/2rdparty/tools/viewvc-1.1.23/lib&quot;
CONF_PATHNAME =3D r&quot;/testsvn/2rdparty/tools/viewvc-1.1.23/viewvc.conf&=
quot;

#########################################################################
#
# Adjust sys.path to include our library directory
#

import sys
import os

if LIBRARY_DIR:
  sys.path.insert(0, LIBRARY_DIR)
else:
  sys.path.insert(0, os.path.abspath(os.path.join(sys.argv[0],
                                                  &quot;../../../lib&quot;)=
))

#########################################################################

### add code for checking the load average

#########################################################################

# go do the work
import sapi
import viewvc

server =3D sapi.CgiServer()
cfg =3D viewvc.load_config(CONF_PATHNAME, server)
viewvc.main(server, cfg)</pre></div></div>

------=_Part_15269_304773715.1424978432381--