Koozali.org: home of the SME Server

cgi-bin on ibays

Tim Bynum

cgi-bin on ibays
« on: January 11, 2001, 05:49:05 AM »
I have a virtual domain using an ibay.  The vitual doamin works fine but I cannot get the cgi-bin enabled.  I am using E-Smith 4.0.1 and I followed the direction in the update post.

>CGI scripts are disabled by default in i-bays. As CGI scripts run on the e-smith >server, they should be carefully checked before enabling.
>
>To enable CGI scripts for a particular i-bay, follow these steps:
>
>Copy the script into the cgi-bin directory
>Add execute permission to the script by executing the following command: >chmod +x script
>Run the following commands (substituting the i-bay name for i-bay):
>/sbin/e-smith/db accounts setprop i-bay CgiBin enabled
>/sbin/e-smith/signal-event console-save

but I still get a "The page cannot be found" message when I try to access "http://www.mydomain.xxx/cgi-bin/myscript".

I know it is not a problem with the script because it works fine in the primary web site.

Can anyone help?

Randy Brown

Re: cgi-bin on ibays
« Reply #1 on: January 11, 2001, 09:21:49 AM »

Tim Bynum

Re: cgi-bin on ibays
« Reply #2 on: January 11, 2001, 03:49:31 PM »
I did that also.  I went into the control panel and modified and saved after I created the ibay.  The users can get to the files in the html subdirectory of the ibay (virtual domain) they just cannot access the scripts in the cgi-bin.

Charlie Brady

Re: cgi-bin on ibays
« Reply #3 on: January 11, 2001, 04:47:40 PM »
Randy Brown wrote:
>
> http://www.e-smith.org/bugs.php3

The listed bug refers to a bug in 4.0 which was fixed in 4.0.1, which is what Tim is using.

Regards

Charlie

Gordon Rowell

Re: cgi-bin on ibays
« Reply #4 on: January 16, 2001, 04:18:26 AM »
Charlie Brady wrote:
>
> Randy Brown wrote:
> >
> > http://www.e-smith.org/bugs.php3
>
> The listed bug refers to a bug in 4.0 which was fixed in
> 4.0.1, which is what Tim is using.

Actually, Tim has found a bug, which has been fixed in our
development release. It will be back-ported to 4.0.1 once
our current release is finished.

Gordon

Tim Bynum

Re: cgi-bin on ibays
« Reply #5 on: January 21, 2001, 08:26:17 PM »
Is there a way to fix this prior to the finishing of the current release?  Is there something I can change in my configuration.  I do not mind customizing.

Gordon Rowell

Re: cgi-bin on ibays
« Reply #6 on: January 21, 2001, 10:34:03 PM »
Tim Bynum wrote:
>
> Is there a way to fix this prior to the finishing of the
> current release?  Is there something I can change in my
> configuration.  I do not mind customizing.

The fix is fairly obvious if you examine the httpd.conf fragments.

This question should now move to the developers list or please feel free to contact
e-smith technical support if you have purchased a subscription.

Gordon