On Tue, 2002-11-05 at 12:09, Israel Evans wrote:
> 
> 
> Hello there Good people...  I'm having a little trouble getting set up and
> I'm certain that it's something quite simple that I'm overlooking.  I would
> be most grateful for any help...
> 
> After having set everything up to whatever degree I'm capable of at the
> moment, I get an internal server error which feeds to my error_log the
> "Premature end of script headers: /Users/iz/Sites/py-cgi/WebKit.cgi"
> error...
> 
> 
> I'm on Mac OS X (10.1), using Apache/1.3.26 (darwin)
> I've set up the WebKit.cgi file to call to the appropriate python location
> with the default #!/usr/bin/env python and I've pointed the WebwareDir
> within WebKit.cgi to '/apps/Webware' which is where the webkit directory
> resides.
> 
> I've set up apache to handle both .cgi and .py files as scripts.
> I've set up a ScriptAlias to point to my py-cgi folder with these options:
>       <Directory "/Users/iz/Sites/py-cgi">
>               AllowOverride None
>               Options ExecCGI
>               Order allow,deny
>               Allow from all
>       </Directory>
> 
> I have both Apache and webware's Appserver running.

Okay, I think you're all wrong here (at least if you're trying to use
Webware servlets).  Assuming you have a servlet in /path/to/servlet.py,
you must add "/path/to/" to Application.config as a context.  Then you
must start the AppServer, and go to
/path/to/WebKit.cgi/context-name/servlet.py

I think you're trying to access servlet.py as a CGI script, which you
cannot do.  If you still get "premature end of headers", then something
is wrong with how WebKit.cgi is set up -- you should make sure it is
executable (try "./WebKit.cgi" in a shell -- you'll probably get an
error, which is okay, so long as its executable).  Then try typing
"which python", and if for example you get back "/usr/bin/python" put in
"#!/usr/bin/python" on the top line of WebKit.cgi.

  Ian



-------------------------------------------------------
This sf.net email is sponsored by: See the NEW Palm 
Tungsten T handheld. Power & Color in a compact size!
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0001en
_______________________________________________
Webware-discuss mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webware-discuss

Reply via email to