[Moin-user] Win98-OK but Win2k No Success

Spille Jens jens.spille at thomson.net
Tue Aug 26 08:53:06 EDT 2003

Dear Experts,
First I implemented MoinMoin on Win98 with success. :-) Great tool!
Then I tried to repeat the same installation on Windows2000 using the same
 * Apache/2.0.47 (Win32)
 * Python 2.2.3 plus win32all-152
 * Moin-1.0.zip installed on "d:/moin"
and Apache tells my by using "http:/localhost/mywiki" ==> "Internal Server
The Apache Error Log shows: "[Mon Aug 25 16:58:37 2003] [error] [client] Premature end of script headers: moin.bat".
The Apache itself is running, "http:/localhost" returns with the default
Apache Page and the Environment is set to:
If I directly start the "D:\moin\mywiki\moin.bat" file I receive the correct
HTML-FrontPage, but if I start the batch file with "set QUERY_STRING=test"
then I receive the following:
    Content-Type: text/plain
    MoinMoin CGI Diagnosis
    Package "MoinMoin" successfully imported.
    Release  1.0
    Revision 1.159
    Traceback (innermost last):
      File "moin.cgi", line 22, in ?
       File "D:\moin\Lib\site-packages\MoinMoin\cgimain.py", line 43, in
        local_request = socket.getfqdn(os.environ.get('SERVER_NAME')) == \
       File "D:\Programs\Python22\lib\socket.py", line 100, in getfqdn
        name = name.strip()
     AttributeError: 'NoneType' object has no attribute 'strip'
Does anybody knows what's wrong with my installation? How can I further
debug the problem?
Thank you very much in advanced
PS: My init files:
@echo off
set PYTHONPATH=D:\moin\Lib\site-packages
rem set QUERY_STRING=test
cd \moin\mywiki
D:\programs\Python22\python.exe moin.cgi

D:\Program Files\Apache Group\Apache2\conf\httpd.conf extension:
SetEnv PYTHONPATH "D:/moin/Lib/site-packages"
Alias /wiki/ "D:/moin/share/moin/htdocs/"
ScriptAlias /mywiki "D:/moin/mywiki/moin.bat"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/moin-user/attachments/20030826/08621735/attachment.html>

More information about the Moin-user mailing list