[Moin-user] Newbee--Install on IIS

John Eiwen jeiwen at comcast.net
Sun Mar 21 13:30:03 EST 2004


I have installed "MoinMoin 1.2.1" and "Python-2.3.3-1.exe" onto a MS2000
Server running IIS. I get the error message below when I attempt to access
the Frontpage through my browser via the URL
http://name.mydomainname.biz/TremontWIKI I have previously, and those sites
currently work) configured IIS to use Host Headers. I am in need of an
example "moin.cgi" file that demonstrates syntax. I have also included the
contents of my "moin.cgi" file below the error.

Thank You,

John


MY CURRENT ERROR:
"CGI Error
The specified CGI application misbehaved by not returning a complete set of
HTTP headers. The headers it did return are:
Traceback (most recent call last):
  File "C:\Moin\TremontWIKI\moin.cgi", line 13, in ?
    from MoinMoin.request import RequestCGI
ImportError: No module named MoinMoin.request"



MY CURRENT MOIN.CGI FILE:
#!/usr/bin/env python
# -*- coding: iso-8859-1 -*-
"""
    MoinMoin - CGI Driver Script

    @copyright: 2000-2004 by Jürgen Hermann <jh at web.de>
    @license: GNU GPL, see COPYING for details.
"""

#import sys
#sys.path.append(r'C:\Moin\Lib\site-packages')

from MoinMoin.request import RequestCGI

import os
if os.environ.get('QUERY_STRING') == 'test':
    print "Content-Type: text/plain\n\nMoinMoin CGI
Diagnosis\n======================\n"

    try:
        from MoinMoin.wikitest import runTest
        print 'Package "MoinMoin" successfully imported.\n'
        request = RequestCGI()
        runTest(request)
    except:
        import sys, traceback, string, pprint
        type, value, tb = sys.exc_info()
        if type == ImportError:
            print 'Your PYTHONPATH is:\n%s' % pprint.pformat(sys.path)
        print "\nTraceback (innermost last):\n%s" % string.join(
            traceback.format_tb(tb) + traceback.format_exception_only(type,
value))
else:
    request = RequestCGI()
    request.run()








More information about the Moin-user mailing list