Re: Valid Euphoria Web Page?
- Posted by cklester <cklester at yahoo.com> Aug 27, 2004
- 451 views
Andy Serpa wrote: > > > cklester wrote: > > > > Shouldn't this work from an Apache server on Linux? I'm getting > > > > the mysterious "Premature end of script headers:" error message. > > > > How do I troubleshoot this? Thank! :) > > Here's everything I can think of to double-check: > > -- make sure you uploaded the interpreter in Binary mode, and it is in the > same directory > as the script or your EUDIR variable is set properly. I'm telnetting into my server. The interpreter ("exu") is in a directory called /var/www/interpreters. If I go to that directory and type "exu," it says command not found. If I type "./exu," it does nothing. Shouldn't I get the prompt that asks me for the filename to run? > -- make sure you upload the scripts in ASCII mode Check. > -- scripts & the directory they are in should be chmod'd to 755 Check. > -- the interpreter itself & the directory it is in should be chmod'd to 755 > (did you > check that?) Check. > -- the script must output a "Content-type" line (looks like you've got that) Got it. > -- use a ".cgi" extension on the scripts, or set an Apache handler for the > extension > you are using to "cgi-script" I've got an .htaccess file in my directory consisting of this: AddHandler cgi-script .esp Options +ExecCGI DirectoryIndex index.esp index.html index.htm > -- try to get it working first in your cgi-bin directory -- some servers don't > allow > cgi scripts just anywhere (although this is rare these days) I've run my .esp scripts in the past with no problem. I switched to a different directory to run some test code and now can't get it to work again! sheesh!!! This should be easier for us dummies. :/ -=ck "Programming in a state of EUPHORIA." http://www.cklester.com/euphoria/