Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 3EDA8200B32 for ; Thu, 23 Jun 2016 14:39:36 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 3D3F6160A59; Thu, 23 Jun 2016 12:39:36 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 82F4B160A58 for ; Thu, 23 Jun 2016 14:39:35 +0200 (CEST) Received: (qmail 37099 invoked by uid 500); 23 Jun 2016 12:39:34 -0000 Mailing-List: contact users-help@subversion.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list users@subversion.apache.org Received: (qmail 37087 invoked by uid 99); 23 Jun 2016 12:39:34 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 23 Jun 2016 12:39:34 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id E2EF1C229D for ; Thu, 23 Jun 2016 12:39:33 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.821 X-Spam-Level: X-Spam-Status: No, score=-0.821 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (1024-bit key) header.d=visualsvn.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id kLaMwsYo_ZFV for ; Thu, 23 Jun 2016 12:39:31 +0000 (UTC) Received: from mail-lf0-f50.google.com (mail-lf0-f50.google.com [209.85.215.50]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 2B0885F64B for ; Thu, 23 Jun 2016 12:39:31 +0000 (UTC) Received: by mail-lf0-f50.google.com with SMTP id h129so95043446lfh.1 for ; Thu, 23 Jun 2016 05:39:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=visualsvn.com; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=ntDY1dclKz6gNIlNxop9DuRdFhIWSlZQLenJQd7W9O4=; b=Dh7mCLX8dmJo/EG3pPGhn3MDEWljJFHG2PDbIhZkRkbHbWtrivsMX/2QqdtHzNB0fi tFKiBllJgJEmWiHQjdDODRq0shP524lFDvRoQdZIizclmJx9DdNBiOLuIChcbh1qr7NZ RSWlGjw4qNZwxPVTtjpupF4hrw/3AeMWELQn4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=ntDY1dclKz6gNIlNxop9DuRdFhIWSlZQLenJQd7W9O4=; b=Ln45YoXmUkoJERRYBQKrz9tUO3fxHOyxhg8e/JgfZiwG7DV1VE4CJfwtkhFUKgVQtS UX1MQMjuN/nvE51StYJEAPYCTLC4n8WM/c/WkBmIhpHjuycPva4hkNp6EaLFV8QS6U7w clkd5mqyP0ek1ixdf0Ufi8jTn7tB4PC/ePMIkDS35yNeYJ/qPkyKVYgc/qDgUacM7ZwJ QdgqQTbbBE5YEfBSmFHnRNOY3I0j2pyaZkZIXAP6yTklCUzrm0MWHBvUzrtodcYEstBa h6cgfwQfg7plQTkJQbAWTt+E85LhgGbMrj/F/aliYmEKwrb9jjklfiPF2fpvWQZLhuT8 7zyw== X-Gm-Message-State: ALyK8tJ9H497dFUzfbMGTDnprfeBjl0fRGv8wFc/Rse2Wag3/xE8/8zWZtrx5qQ71s7AYR48PX7OzngJ65bf1hUx X-Received: by 10.25.147.200 with SMTP id v191mr9815161lfd.9.1466685569549; Thu, 23 Jun 2016 05:39:29 -0700 (PDT) MIME-Version: 1.0 Received: by 10.25.22.212 with HTTP; Thu, 23 Jun 2016 05:38:49 -0700 (PDT) In-Reply-To: References: From: Pavel Lyalyakin Date: Thu, 23 Jun 2016 15:38:49 +0300 Message-ID: Subject: Re: Compiling svn + httpd for windows python 2.x To: "Cooke, Mark" Cc: "users@subversion.apache.org" Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable archived-at: Thu, 23 Jun 2016 12:39:36 -0000 Hello Mark, On Thu, Jun 23, 2016 at 2:39 PM, Cooke, Mark 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 w= rote: > > > > > > 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 everyth= ing > > from source. This is not simple and so I thought I would publish my no= tes > > here in case it helps anyone else and in the hope that if I have made a= ny > > 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 integra= te Trac with VisualSVN? I have got VisualSVN installed in a test server bu= t the `conf` file warns against modifications and web searches have provide= d 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 integ= ration 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 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