Re: [Trac] Do people use mod_python or mod_wsgi these days, on Windows with Apache?

511 views
Skip to first unread message

Matthew Caron

unread,
Jun 19, 2012, 9:38:25 AM6/19/12
to trac-...@googlegroups.com
On 06/18/2012 10:34 PM, Warren Postma wrote:
> So, Today, in 2012, what is the best way to run Trac, if I want to use
> Apache httpd server? It seems Mod_WSGI is not available in a flavor
> that is precompiled that runs with Apache httpd 2.2.22 or 2.4.2. If I
> want to go with mod_python, and stay with the now-ancient seeming Python
> 2.5, that's one path. But I'd really like to use Python 2.7, and
> Apache, on Windows.

We use mod_wsgi, on Linux. Specifically Ubuntu 10.04 LTS (to be upgraded
to 12.04, likely in late Q3, early Q4).

WSGI installation is "sudo apt-get install libapache2-mod-wsgi".

As an aside, I honestly don't know how you can deal with OS's without a
centralized package management system - I'd hang myself from the rafters
with Cat5. Unless I'm rolling my own distro, or using something super
bleeding edge, I just want to apt-get or yum install something and get
on with getting things done.

Then again, some folks still prefer writing code in assembler, not one
of those newfangled high level languages like C. It takes all kinds, I
suppose.
--
Matthew Caron, Build Engineer
Sixnet, a Red Lion business | www.sixnet.com
+1 (518) 877-5173 x138 office


Cooke, Mark

unread,
Jun 19, 2012, 9:50:45 AM6/19/12
to trac-...@googlegroups.com
> -----Original Message-----
> From: trac-...@googlegroups.com On Behalf Of Warren Postma
> Sent: 19 June 2012 03:35
> To: trac-...@googlegroups.com
> Subject: [Trac] Do people use mod_python or mod_wsgi these
> days, on Windows with Apache?
>
> Notwithstanding the comments that this parrot, or python is
> "not dead", Mod_Python seems very dead to me, if it's not
> been updated since 2008, and Python itself, has been changed a lot.
>
> But I had very little luck trying to get Trac going via
> Mod_WSGI. I got stuck trying to build Mod_WSGI on Windows,
> which seems very complex indeed. I was unable to do it.

I'm not sure why you wanted to compile yourself?

> So, Today, in 2012, what is the best way to run Trac, if I
> want to use Apache httpd server? It seems Mod_WSGI is not
> available in a flavor that is precompiled that runs with
> Apache httpd 2.2.22 or 2.4.2. If I want to go with
> mod_python, and stay with the now-ancient seeming Python 2.5,
> that's one path. But I'd really like to use Python 2.7, and
> Apache, on Windows.

Check out Graham's master project:-

http://code.google.com/p/modwsgi/downloads/list

...the fourth link is precompiled for windows, python 2.7 and httpd 2.2.

I use mod_wsgi with httpd 2.2 on windows no problems (although I am still on python 2.6). Have you actually tried it? What problems did you encounter?

> Maybe, since it seems a bit of a pain, what I need to do is
> build both apache and mod_wsgi, and trac, and build a
> combined installer and upload that somewhere, because it's
> just Way Too Much Fun to install Trac, and Apache HTTPD, and
> Python 2.7 and all its bits right now.
>
> Help?
>
> P.S. since the first helpful account in the FAQ on Windows
> installation is a link to the Wayback machine, I think that
> getting some more help sources for Trac out there on the
> Internets might be helpful. So if anyone can answer this
> question on SuperUser, it would be appreciated:
>
> http://superuser.com/questions/437373/installing-trac-on-windows-under-apache-2-2
>
I managed to get everything going on windows OK with the existing information, especially from the Trac and mod_wsgi websites. Did you read Graham's help pages at:

http://code.google.com/p/modwsgi/wiki/InstallationOnWindows
...and...
http://code.google.com/p/modwsgi/wiki/IntegrationWithTrac

>
> Warren
>

~ Mark C

Frank Murphy

unread,
Jun 19, 2012, 9:53:18 AM6/19/12
to trac-...@googlegroups.com
On 19/06/12 03:34, Warren Postma wrote:

> So, Today, in 2012, what is the best way to run Trac, if I want to use
> Apache httpd server?

Change OS?


--
Regards,
Frank
"Jack of all, fubars"

Craig A

unread,
Jun 19, 2012, 5:11:29 PM6/19/12
to trac-...@googlegroups.com
I answered on superuser http://superuser.com/a/439002/141169 suggesting the Bitnami Trac Installer

victoria

unread,
Jun 20, 2012, 3:46:15 AM6/20/12
to trac-...@googlegroups.com
On Tue, Jun 19, 2012 at 11:11 PM, Craig A <txc...@gmail.com> wrote:
> I answered on superuser http://superuser.com/a/439002/141169 suggesting the
> Bitnami Trac Installer
>

Hi, I'm from the BitNami team. Only mention that the current BitNami
Trac Stack includes Python 2.6.5 not Python 2.7. The next release will
include Python 2.7 though.

> --
> You received this message because you are subscribed to the Google Groups
> "Trac Users" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/trac-users/-/IyRywih-VnwJ.
>
> To post to this group, send email to trac-...@googlegroups.com.
> To unsubscribe from this group, send email to
> trac-users+...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/trac-users?hl=en.

Warren Postma

unread,
Jun 26, 2012, 10:41:29 AM6/26/12
to trac-...@googlegroups.com
Thanks victoria.

I will upgrade to the Python 2.7 version as soon as possible. It seems that Python 2.6 might have some really odd quirks with TracMercurial + Mercurial and I hope that these are all sorted in Python 2.7.

On Tue, Jun 19, 2012 at 11:11 PM, Craig A  wrote:
> I answered on superuser http://superuser.com/a/439002/141169 suggesting the
> Bitnami Trac Installer

I have a feature request for the Bitnami Trac Stack. It would be great if it was a bit more of a"Batteries Included" version of trac with more plugins pre-installed out of box.  Most users need a bunch more plugins, including user-management to add and create users, and their permissions, defaulting to apache htpasswd auth backend, right out of the box.  It is surprising that user-configuration requires a Trac plugin to be added, and manually configured, before I can even add a user to my installation.    It was a lot easier to get going than manually installing Mod_Wsgi into Apache, then getting Trac going  purely with Easy-install and setup.py, etc etc.   

It might be a bit selfish of me to wish that TracMercurial and Mercurial itself get added to the base Bitnami Trac Stack, but  at least on Windows, those are hard to get going.

To those who said "Change to Linux", I know, I know. I am setting up a build-integration environment that is for a Windows codebase.   I love using Trac, and python solutions on Linux, and find the environment much saner to work with.   That bitnami trac stack makes a big job on Windows easier, is an amazing thing, thanks Victoria, and the rest of the Bitnami team for doing this work.

Trac is amazing, and the Bitnami stack is amazing.   Kudos to all involved.

Warren

Cooke, Mark

unread,
Jun 26, 2012, 10:56:41 AM6/26/12
to trac-...@googlegroups.com
> -----Original Message-----
> From: trac-...@googlegroups.com On Behalf Of Warren Postma
> Sent: 26 June 2012 15:41
> To: trac-...@googlegroups.com
> Subject: Re: [Trac] Re: Do people use mod_python or mod_wsgi
> these days, on Windows with Apache?
>
> Thanks victoria.
>
> I will upgrade to the Python 2.7 version as soon as possible.
> It seems that Python 2.6 might have some really odd quirks
> with TracMercurial + Mercurial and I hope that these are all
> sorted in Python 2.7.
>
>
> On Tue, Jun 19, 2012 at 11:11 PM, Craig A wrote:
> > I answered on superuser
> http://superuser.com/a/439002/141169
> <http://superuser.com/a/439002/141169> suggesting the
> > Bitnami Trac Installer
>
>
>
> I have a feature request for the Bitnami Trac Stack. It would
> be great if it was a bit more of a"Batteries Included"
> version of trac with more plugins pre-installed out of box.

...have you heard of apache bloodhound (http://incubator.apache.org/bloodhound/)? Its not ready yet but sounds more like "Batteries Included" than vanilla Trac.

~ Mark C

Dave Huang

unread,
Jun 26, 2012, 1:42:22 PM6/26/12
to trac-...@googlegroups.com
Does anyone have a solution for Apache 2.4.x on Windows with Python 2.7? It seems like everything mentioned so far is Apache 2.2, but I'd like to move to 2.4 for IPv6 support (while Apache has had IPv6 support for a long time, it's been disabled in the official Windows builds up until 2.4, for reasons that I didn't pay much attention to). I'm currently running Apache 2.2, Python 2.7, and mod_wsgi, and it's working well, and I'd like to stick with mod_wsgi. However, the mod_wsgi website doesn't seem to have any binaries compatible with Apache 2.4. I guess I could try compiling it myself...
--
Name: Dave Huang | Mammal, mammal / their names are called /
INet: kh...@azeotrope.org | they raise a paw / the bat, the cat /
FurryMUCK: Dahan | dolphin and dog / koala bear and hog -- TMBG
Dahan: Hani G Y+C 36 Y++ L+++ W- C++ T++ A+ E+ S++ V++ F- Q+++ P+ B+ PA+ PL++

Warren Postma

unread,
Jun 26, 2012, 3:17:20 PM6/26/12
to trac-...@googlegroups.com
It would be nice if the next drop of the Bitnami trac stack included not only Python 2.7 (instead of 2.6 which it is currently) but also had an Apache 2.4 version.  But it seems that the staying-with-2.2 and python-2.6 thing bodes not well for that. There must be some chain-of-dependency issues that would make it hard for them to move up.  Obviously dependency management on Windows is a big pain, we have no apt-get alternative.  And when Python is involved, there is the question of building all your binary extensions with the same compiler version, and all that, too.  Some stuff is built with mingw/cygwin, and some stuff is built with a particular VisualC++ compiler.

Warren

victoria

unread,
Jun 27, 2012, 8:50:06 AM6/27/12
to trac-...@googlegroups.com
Hi

> It would be nice if the next drop of the Bitnami trac stack included not
> only Python 2.7 (instead of 2.6 which it is currently) but also had an
> Apache 2.4 version.

We configure Trac to work with Apache and mod_wsgi and currently there
is not a mod_wsgi version for Windows for Apache 2.4.


> I have a feature request for the Bitnami Trac Stack. It would be great if it
> was a bit more of a"Batteries Included" version of trac with more plugins
> pre-installed out of box. Most users need a bunch more plugins, including
> user-management to add and create users, and their permissions, defaulting
> to apache htpasswd auth backend, right out of the box. It is surprising
> that user-configuration requires a Trac plugin to be added, and manually
> configured, before I can even add a user to my installation. It was a lot
> easier to get going than manually installing Mod_Wsgi into Apache, then
> getting Trac going purely with Easy-install and setup.py, etc etc.
>

Yes, we are considering adding the user-management plugin. However
there so many possible configuration that we will need to preconfigure
it with the most used by users. But more and more users are requesting
it so this is something that will add to the BitNami stack.

> It might be a bit selfish of me to wish that TracMercurial and Mercurial
> itself get added to the base Bitnami Trac Stack, but at least on Windows,
> those are hard to get going.


Regarding adding Mercurial and TracMercurial plugin in the stack, we
really appreciate your feedback and requests :) our development is
driven by the our users requests so we are glad of hearing your
suggestions. It is already something that we would like to implement.
However it is not as simple, also we may find incompatibilities if for
instance if we upgrade to Python 2.7. There are not official Mercurial
installer for this version of Python. Apart of that it seems that Git
is getting more attraction and even it seems that it has been consider
to make it the official repository for Trac 1.x.


Best regards,

Victoria.
> Warren
>
>
> On Tuesday, June 26, 2012 1:42:22 PM UTC-4, Dave Huang wrote:
>>
>> Does anyone have a solution for Apache 2.4.x on Windows with Python 2.7?
>> It seems like everything mentioned so far is Apache 2.2, but I'd like to
>> move to 2.4 for IPv6 support (while Apache has had IPv6 support for a long
>> time, it's been disabled in the official Windows builds up until 2.4, for
>> reasons that I didn't pay much attention to). I'm currently running Apache
>> 2.2, Python 2.7, and mod_wsgi, and it's working well, and I'd like to stick
>> with mod_wsgi. However, the mod_wsgi website doesn't seem to have any
>> binaries compatible with Apache 2.4. I guess I could try compiling it
>> myself...
>> --
>> Name: Dave Huang
>
> --
> You received this message because you are subscribed to the Google Groups
> "Trac Users" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/trac-users/-/7arGaoPQkk4J.
Reply all
Reply to author
Forward
0 new messages