[Moin-user] Non-CGI install?

David LeBlanc whisper at oz.net
Thu Jun 13 15:10:04 EDT 2002

> -----Original Message-----
> From: moin-user-admin at lists.sourceforge.net
> [mailto:moin-user-admin at lists.sourceforge.net]On Behalf Of Juergen
> Hermann
> Sent: Thursday, June 13, 2002 12:48
> To: moin-user at lists.sourceforge.net
> Subject: RE: [Moin-user] Non-CGI install?
> On Thu, 13 Jun 2002 11:27:53 -0700, David LeBlanc wrote:
> >This doesn't work. httpdmain attempts to serve documents from
> the hard-coded
> >default wiki name, which doesn't exist. The server runs, but it's only
> >serving empty pages and throwing mass amounts of tracebacks and
> "404" errors
> >on the console it was started on (windows).
> It does work, if you do it right. It has to find moin_config, and
> the paths
> have to be absolute or the pwd has to fit. In reality this means
> you first CD
> to your instance directory (where moin_config lives) and start the thing
> there.
> And you have to set "httpd_docs" and the other httpd config vars.
> Ciao, Jürgen

Ok, that does work at least as well as my ploy of putting httpdmain in my
wiki instance directory, but the problem is still that images and
stylesheet(s) aren't being found:

Python 2.2.1 (#34, Apr  9 2002, 19:34:33) [MSC 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> sys.path.append("h:/moin/lib/site-packages")
>>> from MoinMoin import httpdmain
>>> httpdmain.run()
Serving on localhost:8080, documents in 'H:\Moin\wiki\wiki-moinmoin'
lion - - [13/Jun/2002 13:26:40] "GET / HTTP/1.1" 200 -
lion - - [13/Jun/2002 13:26:40] CGI script exited OK, taking 0.207 secs
lion - - [13/Jun/2002 13:26:40] code 404, message File not found
lion - - [13/Jun/2002 13:26:40] "GET /wiki/css/moinmoin.css HTTP/1.1" 404 -
lion - - [13/Jun/2002 13:26:40] code 404, message File not found

(the rest is chopped off - it's more of the same. This was on accessing
http://localhost:8080. FrontPage showed with all images missing and no

Why does Moin report the directory it's serving from as wiki-moinmoin? That
directory does not exist under wiki. It actually seems to be serving pages
from H:\Moin\share\moin\data\text. I understand that these are the oringinal
pages, but this brings up an interesting question: where do user-created
pages get put? I'm guessing that these get put somewhere in the wiki
instance, but how does Moin know where to look for pages, or does it look
for both or does it put links in the distro pages to user-created pages
pointing to the wiki instance?

moin_config.py has the following:
	# basic options (you normally need to change these)
	sitename = 'Wiki'
	interwikiname = None
	data_dir = './data/'
	url_prefix = '/wiki'
	logo_url = url_prefix + '/img/moinmoin.gif'

I think for this to work the img directory would have to be copied under the
wiki instance directory (aka "data_dir"?) - or am I missing something? What
should I do to fix this? (N.B. I don't have this problem when running Moin
via Apache cgi.)

It's strange to me that I have to depend on noticing a small comment in the
install.html file or a comment in the moin_config.py file to find the config
info and that that file is not in the distro but depends on being able to
access sourceforge to download this information. I valid uses of MoinMoin
include stand-alone LANS not connected to the internet as well as using
MoinMoin on a single non-connected machine at home as a journal (an interest
of mine). I'm not sure I would depend on Sourceforge always being around


Dave LeBlanc
Seattle, WA USA

More information about the Moin-user mailing list