EXEs won't work

 
Post new topic   Reply to topic    Aprelium Forum Index -> FastCGI/CGI
View previous topic :: View next topic  
Author Message
Skit3000
-


Joined: 19 Apr 2003
Posts: 25

PostPosted: Sun May 11, 2003 10:14 am    Post subject: EXEs won't work Reply with quote

Hello all,

I'm trying to run some EXE files as CGI files. On another server it works, but with Abyss it doesn't... :( I downloaded some pre-made EXEs, which did work. Any idea of what I'm doing wrong here?

Thanks,

Sjoerd van der Hoorn
Back to top View user's profile Send private message
jmper
-


Joined: 23 Feb 2003
Posts: 11
Location: Cluj-Napoca, Romania

PostPosted: Sun May 11, 2003 11:32 am    Post subject: Reply with quote

make sure that your EXE is not a 16bit one
_________________
There was nothing like tomorrow, and there will be nothing like yesterday.
Back to top View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger
Skit3000
-


Joined: 19 Apr 2003
Posts: 25

PostPosted: Sun May 11, 2003 1:12 pm    Post subject: Reply with quote

I can't make it more 32-bit than it already is... :wink: Btw. the other server where it works is OmniHTTPd...
Back to top View user's profile Send private message
jmper
-


Joined: 23 Feb 2003
Posts: 11
Location: Cluj-Napoca, Romania

PostPosted: Sun May 11, 2003 1:19 pm    Post subject: Reply with quote

have you correctly configured the server, I think you should set Resolve interpreter using the Windows Registry option and put the exe in /cgi-bin directory, try this
_________________
There was nothing like tomorrow, and there will be nothing like yesterday.
Back to top View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger
Skit3000
-


Joined: 19 Apr 2003
Posts: 25

PostPosted: Sun May 11, 2003 1:22 pm    Post subject: Reply with quote

Doesn't work... :cry: Maybe you can see what's wrong if you look at it?

http://skit3000.dyndns.org/cgi-bin/test.exe

Thanks
Back to top View user's profile Send private message
Skit3000
-


Joined: 19 Apr 2003
Posts: 25

PostPosted: Sun May 11, 2003 1:23 pm    Post subject: Reply with quote

Maybe I should set a new MIME Type or something? Cause I don't think exe is listed...
Back to top View user's profile Send private message
jmper
-


Joined: 23 Feb 2003
Posts: 11
Location: Cluj-Napoca, Romania

PostPosted: Sun May 11, 2003 1:25 pm    Post subject: Reply with quote

can you send me the file at test.exe csoroiu@mymail.ro?
_________________
There was nothing like tomorrow, and there will be nothing like yesterday.
Back to top View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger
killermist
-


Joined: 10 May 2003
Posts: 19

PostPosted: Sun May 11, 2003 8:37 pm    Post subject: Reply with quote

What programming language and/or compiler did you use? I've had problems in the past where I tried to run GUI applications (dispite the fact that they had no interface) and they wouldn't run. As long as the program is compiled as a Console application and used standard input and output, it 'should' work.
As a side note, I've never had to add an 'interpreter' for exe console applications before in order to get them to work. The only problem I've had with Abyss is that my scripts hang when trying to do a disc write. No problems reading, just writing.
Back to top View user's profile Send private message
killermist
-


Joined: 10 May 2003
Posts: 19

PostPosted: Sun May 11, 2003 8:38 pm    Post subject: Reply with quote

Skit3000 wrote:
Doesn't work... :cry: Maybe you can see what's wrong if you look at it?

http://skit3000.dyndns.org/cgi-bin/test.exe

Thanks

Quote:
HTTP 404 - File not found
Back to top View user's profile Send private message
Skit3000
-


Joined: 19 Apr 2003
Posts: 25

PostPosted: Sun May 11, 2003 8:39 pm    Post subject: Reply with quote

That's because my server was online... :wink:
Back to top View user's profile Send private message
killermist
-


Joined: 10 May 2003
Posts: 19

PostPosted: Sun May 11, 2003 8:41 pm    Post subject: Reply with quote

Oh! Just thought of something (which that error reminded me of).
If doing EXE's you have to add a 'content-type' line at the very beginning of the program in order to tell the browser what kind of data is following.

for example:
"Content-type: text/html"
(without the quote marks, of course)
Back to top View user's profile Send private message
Skit3000
-


Joined: 19 Apr 2003
Posts: 25

PostPosted: Sun May 11, 2003 8:43 pm    Post subject: Reply with quote

I have that too... :( That's why I don't know what to do anymore...

Btw. I'll start the other server now, so you can see it... (Same URL)
Back to top View user's profile Send private message
Skit3000
-


Joined: 19 Apr 2003
Posts: 25

PostPosted: Sun May 11, 2003 8:44 pm    Post subject: Reply with quote

Btw. The error you'll get is a fake error. It was just to test some code.
Back to top View user's profile Send private message
killermist
-


Joined: 10 May 2003
Posts: 19

PostPosted: Sun May 11, 2003 8:45 pm    Post subject: Reply with quote

Everything appears fine except that it's reporting an error and not reporting what kind of error. Is there really an error?
Back to top View user's profile Send private message
Skit3000
-


Joined: 19 Apr 2003
Posts: 25

PostPosted: Sun May 11, 2003 8:46 pm    Post subject: Reply with quote

No, it's just something like this in the code:

Code:
sdfsdfsdfsdfsdfsdfihsdf9sdhfiw
Back to top View user's profile Send private message
killermist
-


Joined: 10 May 2003
Posts: 19

PostPosted: Sun May 11, 2003 8:46 pm    Post subject: Reply with quote

ok, the script appears to work. Where's the problem?
Back to top View user's profile Send private message
Skit3000
-


Joined: 19 Apr 2003
Posts: 25

PostPosted: Sun May 11, 2003 8:47 pm    Post subject: Reply with quote

Now there isn't a problem anymore, because it is now on another webserver (without PHP and MySQL). The problem is that I can't run it on Abyss... (Which is now on the air again)
Back to top View user's profile Send private message
killermist
-


Joined: 10 May 2003
Posts: 19

PostPosted: Sun May 11, 2003 8:48 pm    Post subject: Reply with quote

Code:
<table border='1' align='right'><tr><td><font face='Courier New'><small><b>Files</b><p>
<a href='/@- work - want to make it up.wav'>@- work - want to make it up.wav</a><br>
<a href='/10.html'>10.html</a><br>
<a href='/adrenaline.doc'>adrenaline.doc</a><br>
<a href='/antidecompile.zip'>antidecompile.zip</a><br>
<a href='/bforcethis.php'>bforcethis.php</a><br>
<a href='/challenge.swf'>challenge.swf</a><br>
<a href='/challenge2.bak'>challenge2.bak</a><br>
<a href='/challenge2.swf'>challenge2.swf</a><br>
<a href='/david.html'>david.html</a><br>
<a href='/deoplossing.php'>deoplossing.php</a><br>
<a href='/deoplossing.txt'>deoplossing.txt</a><br>
<a href='/email.php'>email.php</a><br>
<a href='/freerider.wma'>freerider.wma</a><br>
<a href='/garrett.jpg'>garrett.jpg</a><br>
<a href='/huis3.jpg'>huis3.jpg</a><br>
<a href='/huissjoerd.jpg'>huissjoerd.jpg</a><br>
<a href='/ip.php'>ip.php</a><br>
<a href='/ip.txt'>ip.txt</a><br>
<a href='/leimuiden.zip'>leimuiden.zip</a><br>
<a href='/leimuidensatelliet.jpg'>leimuidensatelliet.jpg</a><br>
<a href='/leimuiduh.gif'>leimuiduh.gif</a><br>
<a href='/msn.php'>msn.php</a><br>
<a href='/msn_messenger_bot_(framework).php'>msn_messenger_bot_(framework).php</a><br>
<a href='/msn_messenger_bot_(framework).zip'>msn_messenger_bot_(framework).zip</a><br>
<a href='/mysql.php'>mysql.php</a><br>
<a href='/mysqlhelp.txt'>mysqlhelp.txt</a><br>
<a href='/netforce.html'>netforce.html</a><br>
<a href='/phpinfo.php'>phpinfo.php</a><br>
<a href='/pspbrwse.jbf'>pspbrwse.jbf</a><br>
<a href='/rietlanden.jpg'>rietlanden.jpg</a><br>
<a href='/sjoerd.jpg'>sjoerd.jpg</a><br>
<a href='/skit 3000.gif'>skit 3000.gif</a><br>
<a href='/skit3000.html'>skit3000.html</a><br>
<a href='/smileys.html'>smileys.html</a><br>
<a href='/snelheid.php'>snelheid.php</a><br>
<a href='/test.dsc'>test.dsc</a><br>
<a href='/test.gif'>test.gif</a><br>
<a href='/tt.zip'>tt.zip</a><br>
<a href='/vdsbrowser.zip'>vdsbrowser.zip</a><br>
<a href='/vdsscript.php'>vdsscript.php</a><br>
<a href='/vdsworld check-up + online users.dsc'>vdsworld check-up + online users.dsc</a><br>
<a href='/vdsworld.php'>vdsworld.php</a><br>
</small></td></tr></table></small></font><p>
<font face='Verdana'><small>Hello<p>
You tried to access this page with this query: <p></small></font>
<font face='Verdana'><small>The current server time: <b>Sunday 11 May 2003 21:44:48</b></small></font><p>
<p><hr size='1'>
<font color='red' face='Verdana'><small><b><center>An error has occured. Please contact the webmaster.</center></b></small></font>
<hr size='1'><p>

That's the content that your server sends. It looks all well and good to me.
Back to top View user's profile Send private message
Skit3000
-


Joined: 19 Apr 2003
Posts: 25

PostPosted: Sun May 11, 2003 8:49 pm    Post subject: Reply with quote

Like I said, that was with another server, not with Abyss... :wink:
Back to top View user's profile Send private message
killermist
-


Joined: 10 May 2003
Posts: 19

PostPosted: Sun May 11, 2003 8:51 pm    Post subject: Reply with quote

Ah. May I take a look at the EXE myself?
Back to top View user's profile Send private message
Skit3000
-


Joined: 19 Apr 2003
Posts: 25

PostPosted: Sun May 11, 2003 8:53 pm    Post subject: Reply with quote

Sure, you can download the code of it at
http://skit3000.dyndns.org/test.dsc (It's Visual Dialog Script code, but if you don't know it you should still understand it)

You can download the exe itself here
http://skit3000.dyndns.org/test.exe
Back to top View user's profile Send private message
killermist
-


Joined: 10 May 2003
Posts: 19

PostPosted: Sun May 11, 2003 8:56 pm    Post subject: Reply with quote

Could you try something for me? I have a diagnostic script that I use when testing forms and such. Would you be interested in using it and see how it responds?
From my server it's http://killermist.d2g.com:85/cgi-bin/second.exe It displays whatever command line parameters the server passed, the get or post data passed, and the environment as passed by the server.
If you'd like to load it on your machine, http://killermist.d2g.com/binaries/second.exe is the actual download link.
Back to top View user's profile Send private message
Skit3000
-


Joined: 19 Apr 2003
Posts: 25

PostPosted: Sun May 11, 2003 8:59 pm    Post subject: Reply with quote

Doesn't work... :cry: But if I open it just from Windows I'll get a popup message real quick... :)

Btw. The link had to be http://skit3000.dyndns.org/cgi-bin/second.exe :wink:

I'm going to get some sleep now, if you have any more suggestions I'll try them out tomorrow.
Back to top View user's profile Send private message
killermist
-


Joined: 10 May 2003
Posts: 19

PostPosted: Sun May 11, 2003 9:02 pm    Post subject: Reply with quote

Did you make sure to set your cgi-bin directory as executable? I'm getting the same 404 error from second.exe
Back to top View user's profile Send private message
Skit3000
-


Joined: 19 Apr 2003
Posts: 25

PostPosted: Sun May 11, 2003 9:03 pm    Post subject: Reply with quote

How can that be done?
Back to top View user's profile Send private message
killermist
-


Joined: 10 May 2003
Posts: 19

PostPosted: Sun May 11, 2003 9:08 pm    Post subject: Reply with quote


That first is on the aliases page


that second is on the CGI parameters page
Back to top View user's profile Send private message
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Sun May 11, 2003 9:12 pm    Post subject: Reply with quote

killermist wrote:

That first is on the aliases page


that second is on the CGI parameters page

Sorry for the stupid question, but are you putting the .exe file in the right /cgi-bin directory. By default, /cgi-bin is found in the directory where you installed the web server and error 404 means that the file was not found (that has nothing to do with executing the file itself). So check the file path and so on.
For your information, Abyss runs now almost any king of .exe (including 16 bit .exe).
_________________
Support Team
Aprelium - http://www.aprelium.com
Back to top View user's profile Send private message Send e-mail
killermist
-


Joined: 10 May 2003
Posts: 19

PostPosted: Sun May 11, 2003 9:19 pm    Post subject: Reply with quote

Well, as a comparison, here are the 2 links. Both point at the same EXE.
http://killermist.d2g.com:85/cgi-bin/text.exe That's it on Tinyweb.
http://killermist.d2g.com:86/cgi-bin/text.exe That's it on Abyss.
Tiny reports an internal server error.

That's probably why.
But, Abyss just reports a 404 error. Both servers use the same directory structures for serving out of.
Back to top View user's profile Send private message
Skit3000
-


Joined: 19 Apr 2003
Posts: 25

PostPosted: Mon May 12, 2003 4:16 pm    Post subject: Reply with quote

The error you get is because I forgot to send you the runtime dlls... :oops: Please E-mail me when you're reading this, so I can send them...

skit3000@hotmail.com
Back to top View user's profile Send private message
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Mon May 12, 2003 8:11 pm    Post subject: Reply with quote

Skit3000 wrote:
The error you get is because I forgot to send you the runtime dlls... :oops: Please E-mail me when you're reading this, so I can send them...

skit3000@hotmail.com

Sorry for saying that twice, error 404 means that Abyss has not found the file. So check again the locations.
_________________
Support Team
Aprelium - http://www.aprelium.com
Back to top View user's profile Send private message Send e-mail
Skit3000
-


Joined: 19 Apr 2003
Posts: 25

PostPosted: Tue May 13, 2003 4:41 pm    Post subject: Reply with quote

aprelium wrote:
killermist wrote:

That first is on the aliases page


that second is on the CGI parameters page

Sorry for the stupid question, but are you putting the .exe file in the right /cgi-bin directory. By default, /cgi-bin is found in the directory where you installed the web server and error 404 means that the file was not found (that has nothing to do with executing the file itself). So check the file path and so on.
For your information, Abyss runs now almost any king of .exe (including 16 bit .exe).


I found out that I had to change the /cgi-bin path to c:\website\cgi-bin... :oops: The program I got from Killermist now works, but my own program still doesn't (while it works with another webserver)... Any ideas?
Back to top View user's profile Send private message
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Tue May 13, 2003 7:48 pm    Post subject: Reply with quote

Skit3000 wrote:
The program I got from Killermist now works, but my own program still doesn't (while it works with another webserver)... Any ideas?

Do you get an error message? Doesn't work is not enough to describe the problem, so please be more accurate.
If you can let us download yours, please give us an URL from where we can get it and test it.
_________________
Support Team
Aprelium - http://www.aprelium.com
Back to top View user's profile Send private message Send e-mail
Skit3000
-


Joined: 19 Apr 2003
Posts: 25

PostPosted: Tue May 13, 2003 7:50 pm    Post subject: Reply with quote

It tries to download the program... :( And the other program just runs and sends feetback to the server...
Back to top View user's profile Send private message
killermist
-


Joined: 10 May 2003
Posts: 19

PostPosted: Wed May 14, 2003 1:46 am    Post subject: Reply with quote

Skit3000 wrote:
It tries to download the program... :( And the other program just runs and sends feetback to the server...

I would double check your content-type declaration in the program.
For anything Text based (HTML or plain text) I use text/html or text/plain
BTW, did you put second.exe into the CGI directory of the other server you'rre running? I can't access it currently. (404 error) Nevermind, after closer inspection, it would appear that your server's not online right now.
Back to top View user's profile Send private message
Skit3000
-


Joined: 19 Apr 2003
Posts: 25

PostPosted: Wed May 14, 2003 12:19 pm    Post subject: Reply with quote

My computer is only online when I am online... I'll try both the content-type declarations you mentioned....
Back to top View user's profile Send private message
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Wed May 14, 2003 11:12 pm    Post subject: Reply with quote

Skit3000 wrote:
My computer is only online when I am online... I'll try both the content-type declarations you mentioned....

If your executable can be zipped in a file less than 1 Mb, please send it to support@aprelium.com as well as your abyss.conf file.
_________________
Support Team
Aprelium - http://www.aprelium.com
Back to top View user's profile Send private message Send e-mail
steveseymour
-


Joined: 18 May 2003
Posts: 3

PostPosted: Sun May 18, 2003 2:37 pm    Post subject: EXE CGI's wont run Reply with quote

I think I've found the problem.
I write my CGI executables in Delphi using CGIExpert - which work great on all the other Windows servers I've tried. But I think Abyss will only treat DOS (non GUI) exe's as CGI programs. This is a shame as it means that any CGI written with the excellent CGIExpert controls for Delphi will fail :cry:

I hope this can be fixed very soon in Abyss - or - it will have to be another server for me :roll:
Back to top View user's profile Send private message
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Sun May 18, 2003 6:18 pm    Post subject: Re: EXE CGI's wont run Reply with quote

steveseymour wrote:
I think I've found the problem.
I write my CGI executables in Delphi using CGIExpert - which work great on all the other Windows servers I've tried. But I think Abyss will only treat DOS (non GUI) exe's as CGI programs. This is a shame as it means that any CGI written with the excellent CGIExpert controls for Delphi will fail :cry:

I hope this can be fixed very soon in Abyss - or - it will have to be another server for me :roll:

This is not a bug. This is a by design. We tested the use of GUI CGIs and we had a lot of stability problems with them especially on Win95/98/Me. We prefer stability to features.
_________________
Support Team
Aprelium - http://www.aprelium.com
Back to top View user's profile Send private message Send e-mail
Skit3000
-


Joined: 19 Apr 2003
Posts: 25

PostPosted: Sun May 18, 2003 6:20 pm    Post subject: Reply with quote

Isn't it possible to make an external CGI program which acts like a gateway between my EXE and Abyss?
Back to top View user's profile Send private message
steveseymour
-


Joined: 18 May 2003
Posts: 3

PostPosted: Sun May 18, 2003 8:19 pm    Post subject: Re: EXE CGI's wont run Reply with quote

This is not a bug. This is a by design. We tested the use of GUI CGIs and we had a lot of stability problems with them especially on Win95/98/Me. We prefer stability to features.[/quote]


If this is a "feature" of Abyss then it is a bad feature that should be dropped. A badly written GUI program that fails to close after execution is the problem - not the fact that it is a GUI program. A Console program that dosn't terminate cleanly after execution will lock abyss - just the same as a GUI program that dosn't close. - I've experimented and written both. I think Abyss should be 'allowed' to run any executable on the cgi-bin path. It is up to the executable creator to make sure it terminates after execution.
This is one weakness of the Abyss server that is a shame - because it is amoung the most stable of servers I have tested - and I have tested lots.
Please give the user the choice.

Regards
Steve.
Back to top View user's profile Send private message
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Mon May 19, 2003 5:37 pm    Post subject: Re: EXE CGI's wont run Reply with quote

steveseymour,

The dev team had a discussion today about GUI CGIs and we're thinking about adding a switch to enable/disable GUI CGIs support.

Thank you for the suggestion and visit us soon to get the newer version.
_________________
Support Team
Aprelium - http://www.aprelium.com
Back to top View user's profile Send private message Send e-mail
Skit3000
-


Joined: 19 Apr 2003
Posts: 25

PostPosted: Mon May 19, 2003 6:09 pm    Post subject: Reply with quote

Any idea when this new version can be expected? :)
Back to top View user's profile Send private message
steveseymour
-


Joined: 18 May 2003
Posts: 3

PostPosted: Mon May 19, 2003 8:05 pm    Post subject: Reply with quote

8)

Thank you for your consideration.
I look forward to the updated version.

Regards
Steve Seymour
Software Design
http://www.steveseymour.net
Back to top View user's profile Send private message
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Tue May 20, 2003 10:24 pm    Post subject: Reply with quote

Skit3000 wrote:
Any idea when this new version can be expected? :)

That version is already here. It is being heavily tested by our dev team before going beta. It is able to run your test.exe without any problem as well as CGI expert generated scripts.
Please contact beta@aprelium.com if you want to receive a preview for testing purposes.

Thank you for your interest.
_________________
Support Team
Aprelium - http://www.aprelium.com
Back to top View user's profile Send private message Send e-mail
Skit3000
-


Joined: 19 Apr 2003
Posts: 25

PostPosted: Wed May 21, 2003 1:47 pm    Post subject: Reply with quote

Thank you for your respond! :)
Back to top View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> FastCGI/CGI All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group