Forum Moderators: open

Message Too Old, No Replies

CGI call doesn't work

         

piercedwater

11:11 pm on Dec 23, 2004 (gmt 0)

10+ Year Member



It has been awhile since I have divulged myself into any kind of HTML, as Im sure this question shows.

I am trying to call a cgi(.pl extension) from my home server with th following command:

<!--#exec cgi="cgi-bin/scriptname.pl"-->

I have tried replacing the cgi with pl to match the extension but that did nothing for me.

Any suggestions?

piercedwater

11:15 pm on Dec 23, 2004 (gmt 0)

10+ Year Member



BTW: Nothing happens when to try to call the cgi.

thanks

bnhall

11:21 pm on Dec 23, 2004 (gmt 0)

10+ Year Member



Do any cgi programs work? Could be your cgi programs are restricted to a particular directory, or cgi and/or server-side-includes are not allowed. Check your .htaccess settings.

piercedwater

11:34 pm on Dec 23, 2004 (gmt 0)

10+ Year Member



Oooops, I forgot to post that part. :P

I am able to get the cgi to work if I use the <a href> tag and create a link to it. So I do know that cgi/ssi are non-restricted.

piercedwater

12:36 am on Dec 24, 2004 (gmt 0)

10+ Year Member



Well, I tried this on several other scripts and still the same result.

The only way(s) I can activate the cgi script is either by typing in [website.com...] in the address bar or creating a href link on my website to it.

No takers on why Im not able to load the scripts on their own?

bnhall

1:12 am on Dec 24, 2004 (gmt 0)

10+ Year Member



Ok, this means that server side includes are not turned on on your server, or this particular directory. For
<!--#include virtual="my.cgi"-->
to work, the .htaccess file for this directory needs to have some lines like this:

Options +Includes
AddHandler server-parsed .shtml .html .htm

piercedwater

1:28 am on Dec 24, 2004 (gmt 0)

10+ Year Member



ok, thanks!

I am using Abyss web server, not Apache so I will look into enabling SSI for it.

thanks for the help

piercedwater

1:45 am on Dec 24, 2004 (gmt 0)

10+ Year Member



Well you all did it!

Thanks for the help!

SSI was enabled, but I did not have the "pl" listed under the extensions in the SSI parameters.

thanks again