Re: Valid Euphoria Web Page?
- Posted by Andy Serpa <ac at onehorseshy.com> Aug 26, 2004
- 431 views
cklester wrote: > > 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! :) > > > > Don't forget to set the permissions correctly so that it is executable... > > I verified that the permissions are set to "execute" for everyone. That > didn't resolve the problem... > > Thanks! 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. -- make sure you upload the scripts in ASCII mode -- scripts & the directory they are in should be chmod'd to 755 -- the interpreter itself & the directory it is in should be chmod'd to 755 (did you check that?) -- the script must output a "Content-type" line (looks like you've got that) -- use a ".cgi" extension on the scripts, or set an Apache handler for the extension you are using to "cgi-script" -- 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)