hmmm... I was just trying to start up Webkit for the first time, before I added any contexts. Doesn't that bring up a page with links to docs and the various default contexts? That's how I remember it working on windows a year or two ago.
I have no servlets.. I'm trying to get my feet wet with little bitty baby steps into the puddle of pythonic pleasure that is Webware... I'm following the base install and setup instructions from the webware documents and I thought I was following it correctly. Do I need to create a servlet after creating a context to even "get into" webkit, or is there some default facade like I remember from the wayback? I am using "#!/usr/bin/env python" as the start of my script. Should I use your suggestion of "#!/usr/bin/python" instead? I can succesfully start python from the shell using that command. Hmmm... Thanks for that particular bit of info though. That will definitely come in handy when I do have servlets. ~Israel~ -----Original Message----- From: Ian Bicking [mailto:ianb@;colorstudy.com] Sent: Friday, November 08, 2002 2:23 PM To: Israel Evans Cc: '[EMAIL PROTECTED]' Subject: Re: [Webware-discuss] help getting set up... 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 _________________________________________________ Scanned for viruses on 08 Nov 2002 22:21:48 No viruses found. Virus scanning by http://erado.com ------------------------------------------------------- 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
