subversion-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pavel Lyalyakin <pavel.lyalya...@visualsvn.com>
Subject Re: Compiling svn + httpd for windows python 2.x
Date Thu, 23 Jun 2016 12:38:49 GMT
Hello Mark,

On Thu, Jun 23, 2016 at 2:39 PM, Cooke, Mark <mark.cooke@siemens.com> wrote:
>
> Hi Pavel,
>
> > -----Original Message-----
> > From: Pavel Lyalyakin [mailto:pavel.lyalyakin@visualsvn.com]
> > Sent: 22 June 2016 17:11
> >
> > Hello Mark,
> >
> > On Wed, Jun 22, 2016 at 1:46 PM, Cooke, Mark <mark.cooke@siemens.com> wrote:
> > >
> > > Folks,
> > >
> > > We use subversion with Trac behind httpd on Windows Server.  As Trac is
> > written in "old" Python (2.x), I have had to resort to building everything
> > from source.  This is not simple and so I thought I would publish my notes
> > here in case it helps anyone else and in the hope that if I have made any
> > mistakes, someone will be kind enough to point them out to me!
> >
> > You say that you had to resort to building SVN and HTTPD on Windows
> > from source. Does it mean that all the existing SVN server packages
> > such as VisualSVN Server don't work for you by some reason? Why?
> >
> > I'm asking because VisualSVN Server comes with Python 2.7.x bindings
> > and `mod_wsgi` which should perfectly work with Trac.
>
> At the risk of going off-topic for the svn-users list... how do I integrate Trac with
VisualSVN?  I have got VisualSVN installed in a test server but the `conf` file warns against
modifications and web searches have provided no hints except links to an apparently defunct
Trac plugin [1] including the comment "The new web browser is powered by HTML5 and ensures
easy integration with third-party issue trackers" and a version of the svn book[2]
>
> [1] https://www.visualsvn.com/server/trac/
> [2] https://www.visualsvn.com/support/svnbook/serverconfig/httpd/
>
> Cheers,
>
> ~ Mark C
>
> > --
> > With best regards,
> > Pavel Lyalyakin
> > VisualSVN Team

Here are the basic steps. The main idea is to modify httpd-custom.conf
file instead of httpd.conf.

1. Modify "%VISUALSVN_SEREVR%conf\httpd-custom.conf" file instead of
   httpd.conf.

2. Load mod_wsgi module by adding the line to the httpd-custom.conf.
   [[[
   LoadModule wsgi_module bin/mod_wsgi.so
   ]]]

3. Generate the trac.wsgi script by running `tracadmin deploy` and
   specify WSGIScriptAlias directory in httpd-custom.conf pointing to
   trac.wsgi file.

4. Add the desired <directory> configuration to httpd-custom.conf
   file.

   Generally speaking, the steps and some examples are specified on
   the Trac wiki page: https://trac.edgewall.org/wiki/TracModWSGI.

NOTE: The latest version of Python 2.7 is 2.7.11 and it has a bug in
its installer on Windows. See https://bugs.python.org/issue25824. The
problem may cause service load failures when loading `mod_wsgi`. The
workaround specified at https://bugs.python.org/msg256500 should solve
the problem. In short, after installing Python 2.7.11 you should
adjust the Windows Registry key mentioned in the workaround. The bug
has to be solved in the upcoming Python 2.7.x patch update AFAIK.

--
With best regards,
Pavel Lyalyakin
VisualSVN Team

Mime
View raw message