[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [cobalt-users] CGI/SSI



Hi!

Are they Perl scripts, or something else?

Check the permissions on the files in your cgi-bin directory.  They should
have the 'X' flag on them. You can see this by going into the cgi-bin
directory via telnet, or if you have a good FTP program, you can control
permissions from there.  Add the X (Executeable) flag to the scripts.  If
you're using Telnet, type ls -la when you're in the directory.   To add the
X flag to the files, you can type chmod +x <filename>.  This might fix
things.

If you're using Perl, you may have the .pl file looking in the wrong place
for the cgi scripts.
On my RaQ3, the Perl program is located at

/usr/bin/perl

If you change the first line, they may run (if they're perl, and that's
where your perl executable is)...
A lot of scripts are written with /usr/local/bin/perl as the default place
to look for Perl...but at least on my server, it didn't 'live' there. :)

I know you wanted to avoid this, but you might want to move your cgi-bin
directory into your /home/sites/home/web directory..like create a
/home/sites/home/web/cgi-bin directory.(Someone correct me if I'm wrong
here)
That way, your pages can "see" the cgi-bin directory to use the program at
an address like http://delamitri.co.uk/cgi-bin ... but if you had your
scripts working before without this, there should be some way to do it
again, I'd think...

Hope this helps!

-Dee Dreslough (dee@xxxxxxxxxxxxx)
(Still struggling with her email server, but hopeful ;) )

> -----Original Message-----
> From: cobalt-users-admin@xxxxxxxxxxxxxxx
> [mailto:cobalt-users-admin@xxxxxxxxxxxxxxx]On Behalf Of Kevin Cawthorne
> - www.delamitri.co.uk
> Sent: Friday, July 28, 2000 6:41 AM
> To: cobalt-users@xxxxxxxxxxxxxxx
> Subject: [cobalt-users] CGI/SSI
>
>
> Hi all
>
> I have my main site's CGI-BIN at "home/sites/home/cgi-bin" and my
> web pages
> at home/sites/home/web and I am trying to run an shtml page
> calling scripts
> from the cgi-bin, but get "cannot process this directive".
>
> I have tried changing the paths to alsorts but with no luck. can
> some please
> tell me what my correct path to the cgi-bin from the index.shtml
> page would
> be???
>
> i understand i could run them from within the web directory, but
> as the site
> is being transferred i want to keep the structure nearon the sam if
> possible.
>
> Easy for some of you i know, but its bugging me!!
>
> Kevin Cawthorne
>
>
> _______________________________________________
> cobalt-users mailing list
> cobalt-users@xxxxxxxxxxxxxxx
> To Subscribe or Unsubscribe, please go to:
> http://list.cobalt.com/mailman/listinfo/cobalt-users
>
>