1. CGI error on Win32 Apache
- Posted by munchr at mac.com Aug 14, 2002
- 509 views
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. 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
2. Re: CGI error on Win32 Apache
- Posted by acran at readout.fsnet.co.uk Aug 18, 2002
- 491 views
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 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. > >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 > > > >
3. Re: CGI error on Win32 Apache
- Posted by christian.cuvier at education.gouv.fr Aug 19, 2002
- 506 views
Hi everybody ! EX.EXE sends its output to standard output as defined in the DOS session in which EX is runing. So, output from EX is to be fetched in the DOS session window, which is not as direct a process as getting direct output from EXW. Sounds like a likely reason for the condition you are telling us about. Regards Chris ----- Original Message ----- From: <munchr at mac.com> To: "EUforum" <EUforum at topica.com> Sent: Thursday, August 15, 2002 2:28 AM Subject: CGI error on Win32 Apache > > 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. > > 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 > > > >