Jonah
02-18-2001, 02:25 PM
Hi,
Can someone help me?
Can I run cgi scripts from outside of my cgi-bin on a virtual account on a raq? (at http://www.tera-byte.com)
Any help would be appreciated.
Jason_Berresford
02-18-2001, 02:34 PM
Unless they have made any special changes to the server then. Yes. Make sure you chmod the file to 755
Chicken
02-18-2001, 03:49 PM
RaQ's acutally don't usually have a cgi-bin, so if you see one, they might have just added the folder there so people don't ask, "Where's the cgi-bin???"
bryant
02-18-2001, 03:51 PM
why actually u can. i know b/c im am currently doing so. hope that helps
Jason_Berresford
02-18-2001, 04:00 PM
chicken you are absolutly correct. The cobalts use CGI-WRAP which enable cgi files to be executed from anywhere on the server. However you would be surprised on the number of people who are insecure about not having that directory :)
akashik
02-18-2001, 04:20 PM
Jason,
I can understand that though.. After so long having it beaten into me I *must* use a CGI-Bin, to have a script swinging it's a** in the wind just looks plain scary :)
Greg Moore
Jonah
02-18-2001, 04:28 PM
Well, the reason I asked was that I have bought a script where the vendor wrote:
'Please confirm that you have a unix server with ftp access
that has Perl 5.0 installed and that you can run cgi scripts outside of your cgi-bin and able to execute .cgi scripts that are named with a .html extention. It may be necessary to confirm this with your hosting provider.'
Im thinking of tera-byte, do you guys think there will be any problems? I emailed tera-byte but I am in a bit of a hurry!
Thanks!
melia
02-18-2001, 04:46 PM
Is there a danger of not putting CGI scripts in the CGI-BIN?
Jason_Berresford
02-18-2001, 05:00 PM
Jonah, The only thing I can possibly see as a problem is having .html files being executed as cgi files. Cobalts as I said before use CGI-wrap to execute the files. I am unsure weather or not it supports the execution of .html files.
Melia,
Again CGI-WRAP comes into play with the security of CGI's outside of a directory, and yes it is safe, WHEN cgi-wrap is being used. Which is widly used.
dvaeorn
02-18-2001, 07:14 PM
how are cgi-wrap and cgi-bin different?
Jason_Berresford
02-19-2001, 04:43 PM
Cgi-bin has nothing really to do with CGI-WRAP, What the cgi wrap does is control the CGI's scripts. In the old days :) Cgi scripts could only be executed in a cgi-bin, because the servers where programmed to not allow cgi scripts to look at files they shouldn't be (For example, the passwd file or shadow file in the /etc/ directory) .. CGI-Wrap also does that control, however is a separate program. Advances in programming allows cgi-wrap to control the scripts by directory owner, where the old system does not.