On Tue, 2012-07-17 at 09:12 +0200, Ole Holm Nielsen wrote:
> Thanks for your advice, Paul Boddie! To answer Reimar Bauer about the
> use of CGI: I use it because it's simple to implement, and performance
> isn't an issue at present. I did look at mod_wsgi a long time ago and
> found it way too complex for simple usages of Moin.
Well, that's strange, as I found it way more simple than CGI. :D
In the dark past, at some time I also used CGI, but I often needed
additional stuff to get the job done (like mod_rewrite for running stuff
at root url, suexec for running stuff under different users to isolate
stuff). And of course, it was really slow and eating lots of resources.
mod_rewrite and suexec was a pain, due to bugs and unflexilibity.
After that, I played with persistent stuff, like mod_python (ugh),
twisted, fastcgi etc., but I wasn't too happy, because it really was
additional setup work to manage the daemon processes and reliability
also wasn't that great in the configurations I tried.
mod_wsgi (daemon mode) solves ALL that with 2 lines of configuration
(see the sample moin.wsgi we provide) and has been a reliable and fast
tool for me in the past years (on Debian).
Note: RHEL/CENTOS 5 had bad/too old support for python stuff, including
not providing mod_wsgi. So, if you mean that with "too complex" (to
compile and setup all the stuff on your own, I agree, but that is a
RHEL5/CENTOS5 specific issue).
Another important note I want to give is to never ever use mod_python or
even just have it loaded/installed. It is dead since years, smells and
only makes trouble, so best is to deinstall it completely.