1. Problem with cgi scripts on win2000

I have a number of web applications that I run on my local Windows 95/98 PCs
with xitami as my web server. I have just upgraded to Windows 2000 pro on
one of my machines, installed euphoria and xitami but my applications no
longer work. To simplify the problem, I wrote the simplest possible euphoria
program:
---
euphoria.ex:
printf(1,"%s",{"Hello from Euphoria"})
===
This works fine in win2000 in the command window using either "ex
euphoria.ex" or when turned into a euphoria.exe. I copied euphoria.exe into
the cgi-bin directory and when I pointed my browser to
"127.0.0.1/cgi-bin/euphoria" I got nothing. In Win98 I got my "Hello from
Euphoria" as expected. I don't experience this difference using either perl
or php. Does anyone know what I need to do in Win2000 to get euphoria
working as a cgi program again?
Richard.
                PFIZER GLOBAL RESEARCH AND DEVELOPMENT
----------------------------------------------------------------
This message and any attachment has been virus checked by the
PGRD Sandwich Data Centre.
----------------------------------------------------------------

new topic     » topic index » view message » categorize

2. Re: Problem with cgi scripts on win2000

richard_blazek at SANDWICH.PFIZER.COM sez:

>I have a number of web applications that I run on my local Windows 95/98 PCs
>with xitami as my web server. I have just upgraded to Windows 2000 pro on
>one of my machines, installed euphoria and xitami but my applications no
>longer work. To simplify the problem, I wrote the simplest possible euphoria
>program:
>---
>euphoria.ex:
>printf(1,"%s",{"Hello from Euphoria"})
>===
>This works fine in win2000 in the command window using either "ex
>euphoria.ex" or when turned into a euphoria.exe. I copied euphoria.exe into
>the cgi-bin directory and when I pointed my browser to
>"127.0.0.1/cgi-bin/euphoria" I got nothing. In Win98 I got my "Hello from
>Euphoria" as expected. I don't experience this difference using either perl
>or php. Does anyone know what I need to do in Win2000 to get euphoria
>working as a cgi program again?

I don't think it should work either under W2K, W98, or any other os,
without the proper header being sent:
 puts(1,"Content type: text/html\n\n")
 puts(1,"Hello World\n")

Secondly, unless I misread your post, you're calling the program
euphoria, but have saved it to disk as euphoria.ex or euphoria.exe.

Thirdly, if it is an .ex file, you need to allow it to run ex.exe -
#!ex -- in the very first line
will work if ex.exe is in the cgi-bin directory, and everything has the
proper ownership and permissions.

Lastly, if you truly "get nothing" - no 404 or Server Error, then the
program is probably not even running. See #3.
Not knowing (or wanting to know) anything more about W2K, I think that's
about all I can contribute.

Regards,
Irv

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu