Re: CGI error on Win32 Apache

new topic     » goto parent     » topic index » view thread      » older message » newer message

Hello James,

Does your CGI script refer to pathnames that don't conform to DOS'es old "8
dot 3" standard?  I mean the way DOS only allows filenames up to 8
characters and an optional file extension of up to only 3 characters?  I
think that might cause some problems when you "dumb down" (no offence
intended smile from EXW.EXE to EX.EXE.

Also maybe just changing the "sheban" in the script isn't enough.  Perhaps
the Apache config might need to be tweaked a little as well.  I've only
used Apache on UNIX (mainly RedHat, HP-UX and a little Solaris) so can't
comment on how the Windows version might need to be configured.

Finally one thing I found when I first started with CGI with Euphoria on
Linux was that I found it easiest to have a wrapper script which set EUDIR,
set a PATH with included $EUDIR/bin and then called the Euphoria
interpreter with the relevant Euphoria source file as input passing along
any necessary command line parameters.

I have an example in the Archive on the RDS website - search on:

  intphone

(thats all one word - no leading or trailing spaces).

Now maybe if you take a similar approach usinbg a BAT file as a wrapper
which sets EUDIR, PATH and then calls EX.EXE things might improve?  At the
least you might find you can trace more of what is happening at the server
end to discover the root cause.

Hope this helps.

Regards,

Andy C.

At 17:28 14/08/02 -0700, you wrote:
>
>Has anyone been able to get EX.EXE working with Apache on
>Win32?  I have been successful with EXW, but not EX.
>
>Using a sheban of "#!c:/euphoria/bin/ex.exe" I get the following
>server error:
>
>   Error message:
>   Premature end of script headers: D:/MyWebs/cgi-bin/cgi-test.cgi
>
>Using "#!c:/euphoria/bin/exw.exe", everything works fine.  I am not
>changing the code in anyway, other than the shebang.
>It's not a critical issue since, as I said, I can use EXW just fine.  It's
>just bugging me.  smile
>
>Has this been discussed on the list before, and I just missed it?
>
>Are there issues with getting standard output from EX when called
>from a Win32 application?
>
>Thanks for any help or ideas you can send my way.
>
>James Powell
>
>
>
>

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu