tymonhall
02-13-2001, 12:53 PM
I have new raq3 and I have a particular cgi.exe script that I am trying to run but it won't I have tried it on other hosting services and it works great but when I try it on the new raq3 it just show as garbage. Can any one help?
allan
02-13-2001, 01:30 PM
Sure, but you need to give us a little more information:
1. What type of errors are you seeing in the browser?
2. What type of errors are showing up in your error log?
3. What language is the script written in?
4. Are you running it under CGI-Wrap or not (if you have not made any changes to the default CGI config for the RaQ you are running it under CGI-Wrap)?
5. What is the script supposed to do?
Let us know, and we'll try to help.
jtan15
02-13-2001, 05:08 PM
I have never seen a ".exe" file extension used on a Linux (RaQ 3) platform. I think exe's are pretty much reserved for Windows applications. So it can be one of two things:
-Your other host is a Windows NT host, and the script won't run since Cobalts run Linux
-You need to change the filename to .cgi or tell your webserver to parse .exe as CGI. (That is, if it is a perl script)/
allan
02-13-2001, 06:06 PM
The extension can be whatever you want, as long as two things happen:
1. The file is chmod'd to 755 (or whatever).
2. You add the extension .exe to the mime-types file. So, that Apache knows to execute the file as a CGI.
allan
tymonhall
02-14-2001, 12:35 AM
How do you edit the mime-type file to do so? The script is an aution script and it was written in C.
Also to the message earlier ago. there is no error its just show garbage when the page is displayed like if you try to open an exe in windows notepad or something.
banner
02-14-2001, 12:52 AM
Originally posted by tymonhall
How do you edit the mime-type file to do so? The script is an aution script and it was written in C.
Also to the message earlier ago. there is no error its just show garbage when the page is displayed like if you try to open an exe in windows notepad or something.
If it's written in C, it may have to be recompiled to work under Linux. This isn't too hard, if you have the source code and it's portable. Otherwise, you might need to go looking for a new script. Depending on where you got it, you may want to look at the author's website to see if it's Linux compatable. He may even have a version for Linux.
Good luck.
Chris Spangler
allan
02-14-2001, 01:28 AM
Originally posted by tymonhall
How do you edit the mime-type file to do so? The script is an aution script and it was written in C.
Also to the message earlier ago. there is no error its just show garbage when the page is displayed like if you try to open an exe in windows notepad or something.
The mime.types files is located in /etc/conf/httpd and you would add a line like this:
application/x-httpd-cgi exe
I understand there are no errors in the output, but what about in the error logs?
tymonhall
02-14-2001, 04:11 AM
There is no /etc/conf/httpd directory
allan
02-14-2001, 07:15 AM
Sorry -- other way around:
/etc/httpd/conf/
You can also find the file by typing: locate mime.types