View previous topic :: View next topic |
Author |
Message |
Skit3000 -
Joined: 19 Apr 2003 Posts: 25
|
Posted: Sun May 11, 2003 10:14 am Post subject: EXEs won't work |
|
|
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 |
|
|
jmper -
Joined: 23 Feb 2003 Posts: 11 Location: Cluj-Napoca, Romania
|
Posted: Sun May 11, 2003 11:32 am Post subject: |
|
|
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 |
|
|
Skit3000 -
Joined: 19 Apr 2003 Posts: 25
|
Posted: Sun May 11, 2003 1:12 pm Post subject: |
|
|
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 |
|
|
jmper -
Joined: 23 Feb 2003 Posts: 11 Location: Cluj-Napoca, Romania
|
Posted: Sun May 11, 2003 1:19 pm Post subject: |
|
|
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 |
|
|
Skit3000 -
Joined: 19 Apr 2003 Posts: 25
|
|
Back to top |
|
|
Skit3000 -
Joined: 19 Apr 2003 Posts: 25
|
Posted: Sun May 11, 2003 1:23 pm Post subject: |
|
|
Maybe I should set a new MIME Type or something? Cause I don't think exe is listed... |
|
Back to top |
|
|
jmper -
Joined: 23 Feb 2003 Posts: 11 Location: Cluj-Napoca, Romania
|
Posted: Sun May 11, 2003 1:25 pm Post subject: |
|
|
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 |
|
|
killermist -
Joined: 10 May 2003 Posts: 19
|
Posted: Sun May 11, 2003 8:37 pm Post subject: |
|
|
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 |
|
|
killermist -
Joined: 10 May 2003 Posts: 19
|
Posted: Sun May 11, 2003 8:38 pm Post subject: |
|
|
Quote: | HTTP 404 - File not found |
|
|
Back to top |
|
|
Skit3000 -
Joined: 19 Apr 2003 Posts: 25
|
Posted: Sun May 11, 2003 8:39 pm Post subject: |
|
|
That's because my server was online... :wink: |
|
Back to top |
|
|
killermist -
Joined: 10 May 2003 Posts: 19
|
Posted: Sun May 11, 2003 8:41 pm Post subject: |
|
|
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 |
|
|
Skit3000 -
Joined: 19 Apr 2003 Posts: 25
|
Posted: Sun May 11, 2003 8:43 pm Post subject: |
|
|
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 |
|
|
Skit3000 -
Joined: 19 Apr 2003 Posts: 25
|
Posted: Sun May 11, 2003 8:44 pm Post subject: |
|
|
Btw. The error you'll get is a fake error. It was just to test some code. |
|
Back to top |
|
|
killermist -
Joined: 10 May 2003 Posts: 19
|
Posted: Sun May 11, 2003 8:45 pm Post subject: |
|
|
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 |
|
|
Skit3000 -
Joined: 19 Apr 2003 Posts: 25
|
Posted: Sun May 11, 2003 8:46 pm Post subject: |
|
|
No, it's just something like this in the code:
Code: | sdfsdfsdfsdfsdfsdfihsdf9sdhfiw |
|
|
Back to top |
|
|
killermist -
Joined: 10 May 2003 Posts: 19
|
Posted: Sun May 11, 2003 8:46 pm Post subject: |
|
|
ok, the script appears to work. Where's the problem? |
|
Back to top |
|
|
Skit3000 -
Joined: 19 Apr 2003 Posts: 25
|
Posted: Sun May 11, 2003 8:47 pm Post subject: |
|
|
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 |
|
|
killermist -
Joined: 10 May 2003 Posts: 19
|
Posted: Sun May 11, 2003 8:48 pm Post subject: |
|
|
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 |
|
|
Skit3000 -
Joined: 19 Apr 2003 Posts: 25
|
Posted: Sun May 11, 2003 8:49 pm Post subject: |
|
|
Like I said, that was with another server, not with Abyss... :wink: |
|
Back to top |
|
|
killermist -
Joined: 10 May 2003 Posts: 19
|
Posted: Sun May 11, 2003 8:51 pm Post subject: |
|
|
Ah. May I take a look at the EXE myself? |
|
Back to top |
|
|
Skit3000 -
Joined: 19 Apr 2003 Posts: 25
|
|
Back to top |
|
|
killermist -
Joined: 10 May 2003 Posts: 19
|
Posted: Sun May 11, 2003 8:56 pm Post subject: |
|
|
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 |
|
|
Skit3000 -
Joined: 19 Apr 2003 Posts: 25
|
Posted: Sun May 11, 2003 8:59 pm Post subject: |
|
|
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 |
|
|
killermist -
Joined: 10 May 2003 Posts: 19
|
Posted: Sun May 11, 2003 9:02 pm Post subject: |
|
|
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 |
|
|
Skit3000 -
Joined: 19 Apr 2003 Posts: 25
|
Posted: Sun May 11, 2003 9:03 pm Post subject: |
|
|
How can that be done? |
|
Back to top |
|
|
killermist -
Joined: 10 May 2003 Posts: 19
|
Posted: Sun May 11, 2003 9:08 pm Post subject: |
|
|
That first is on the aliases page
that second is on the CGI parameters page |
|
Back to top |
|
|
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
Posted: Sun May 11, 2003 9:12 pm Post subject: |
|
|
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 |
|
|
killermist -
Joined: 10 May 2003 Posts: 19
|
|
Back to top |
|
|
Skit3000 -
Joined: 19 Apr 2003 Posts: 25
|
Posted: Mon May 12, 2003 4:16 pm Post subject: |
|
|
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 |
|
|
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
Posted: Mon May 12, 2003 8:11 pm Post subject: |
|
|
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 |
|
|
Skit3000 -
Joined: 19 Apr 2003 Posts: 25
|
Posted: Tue May 13, 2003 4:41 pm Post subject: |
|
|
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 |
|
|
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
Posted: Tue May 13, 2003 7:48 pm Post subject: |
|
|
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 |
|
|
Skit3000 -
Joined: 19 Apr 2003 Posts: 25
|
Posted: Tue May 13, 2003 7:50 pm Post subject: |
|
|
It tries to download the program... :( And the other program just runs and sends feetback to the server... |
|
Back to top |
|
|
killermist -
Joined: 10 May 2003 Posts: 19
|
Posted: Wed May 14, 2003 1:46 am Post subject: |
|
|
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 |
|
|
Skit3000 -
Joined: 19 Apr 2003 Posts: 25
|
Posted: Wed May 14, 2003 12:19 pm Post subject: |
|
|
My computer is only online when I am online... I'll try both the content-type declarations you mentioned.... |
|
Back to top |
|
|
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
Posted: Wed May 14, 2003 11:12 pm Post subject: |
|
|
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 |
|
|
steveseymour -
Joined: 18 May 2003 Posts: 3
|
Posted: Sun May 18, 2003 2:37 pm Post subject: EXE CGI's wont run |
|
|
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 |
|
|
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
Posted: Sun May 18, 2003 6:18 pm Post subject: Re: EXE CGI's wont run |
|
|
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 |
|
|
Skit3000 -
Joined: 19 Apr 2003 Posts: 25
|
Posted: Sun May 18, 2003 6:20 pm Post subject: |
|
|
Isn't it possible to make an external CGI program which acts like a gateway between my EXE and Abyss? |
|
Back to top |
|
|
steveseymour -
Joined: 18 May 2003 Posts: 3
|
Posted: Sun May 18, 2003 8:19 pm Post subject: Re: EXE CGI's wont run |
|
|
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 |
|
|
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
Posted: Mon May 19, 2003 5:37 pm Post subject: Re: EXE CGI's wont run |
|
|
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 |
|
|
Skit3000 -
Joined: 19 Apr 2003 Posts: 25
|
Posted: Mon May 19, 2003 6:09 pm Post subject: |
|
|
Any idea when this new version can be expected? :) |
|
Back to top |
|
|
steveseymour -
Joined: 18 May 2003 Posts: 3
|
Posted: Mon May 19, 2003 8:05 pm Post subject: |
|
|
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 |
|
|
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
Posted: Tue May 20, 2003 10:24 pm Post subject: |
|
|
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 |
|
|
Skit3000 -
Joined: 19 Apr 2003 Posts: 25
|
Posted: Wed May 21, 2003 1:47 pm Post subject: |
|
|
Thank you for your respond! :) |
|
Back to top |
|
|
|