Koozali.org: home of the SME Server

cgi help

Roosevelt

cgi help
« on: August 20, 2001, 06:16:17 AM »
I cannot run cgi script on my e-smith server I've looked at all posted questions and answers but for some reason I cannot run a cgi script. when I click the submit button on the and it pulls up the text of the script. when i try to access it from the web i get a 403 forbidden error i used the path /home/e-smith/primary/files/cgi-bin/nameoffile.cgi and I created an ibay and did the same making the necessary changes I dont know if i have to change something or what i use the #!! symbol at the beginning of the perl script i really need some help any assistance would be greatly appreciated thank you

Roosevelt

Re: cgi help
« Reply #1 on: August 21, 2001, 11:34:25 AM »
Still no help is there something that im doing wrong or what

greg martin

Re: cgi help
« Reply #2 on: August 22, 2001, 01:17:46 AM »
ok a couple things,

first: it you are putting the cgi script in the /file directory?  I don't think that directory is set up to run cgi scripts.

put them in /home/primary/cgi-bin/yourscript.cgi

second: the path to perl is /usr/bin/perl

and finally make sure you have the correct permissions set on the script.  
often times perl scripts require 755 to run

chmod 755 yourscript.cgi

hope that helps.

Lowell

Re: cgi help
« Reply #3 on: August 24, 2001, 10:33:13 AM »
Roosevelt, did you get resolution with your script problem?

Roosevelt wrote:
>
> I cannot run cgi script on my e-smith server I've looked at
> all posted questions and answers but for some reason I cannot
> run a cgi script. when I click the submit button on the and
> it pulls up the text of the script. when i try to access it
> from the web i get a 403 forbidden error i used the path
> /home/e-smith/primary/files/cgi-bin/nameoffile.cgi and I
> created an ibay and did the same making the necessary changes
> I dont know if i have to change something or what i use the
> #!! symbol at the beginning of the perl script i really need
> some help any assistance would be greatly appreciated thank you

Roosevelt

Re: cgi help
« Reply #4 on: August 26, 2001, 06:26:21 AM »
no i didnt get a resolution to my problem although I appreciate the help from greg martin it did not resolve my problem

Pete the Feet

Re: cgi help
« Reply #5 on: September 23, 2001, 12:44:20 PM »
I can't get this to work either....

But I'm a total Linux numptie!  If anyone would like to hold my hand I would be most grateful.

Pete the Feet

Re: cgi help
« Reply #6 on: September 23, 2001, 12:44:21 PM »
I can't get this to work either....

But I'm a total Linux numptie!  If anyone would like to hold my hand I would be most grateful.