Koozali.org: home of the SME Server

Legacy Forums => General Discussion (Legacy) => Topic started by: jgates on September 20, 2004, 10:41:05 PM

Title: Enabling CGI on Primary I-bay
Post by: jgates on September 20, 2004, 10:41:05 PM
I'm just wondering....i'm trying to run a form on my primary ibay. Should the form action be http://mydomain.com/ibays/primary/cgi-bin/script.pl ??
Or, as it's a perl script do I have to insert a script alias..ie treat all *.pl files as *.cgi ?

Any suggestions regarding either?

Best regards,

John
Title: Enabling CGI on Primary I-bay
Post by: kmac on September 21, 2004, 01:30:04 PM
I am running a script with the form action pointing to  http://mydomain.com/primary/cgi-bin/script.pl
I had to chmod my permissions to 755
I have run scripts both as .cgi and .pl on my sme-server with no problem.
Are you using a windows program to edit the script?
That could be your problem.
Also, what script are you trying to run?
Title: Enabling CGI on Primary I-bay
Post by: jgates on September 22, 2004, 01:08:39 AM
Thanks Kmac....I think I've got the "action" wrong. i'm sure when I change to the suggested URL and CHMOD all will be OK.

Amongst other things I use a handy little MS IDE called Perl Builder which generates basic scripts. I then modify from there.

Thanks and regards,

John