Operating Systems > Linux and UNIX

Ahh! Webservers CGI

(1/1)

Mojo:
Okay only people who know CGI/Perl/WebDev please:

Okey dokes - im not sure if this is a host problem or what but:

Counter: www.switch7.net/cgi/bin/counter.cgi 755

Works fine when directly called but:  When included in SSI with:

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

on www.switch7.net/index.shtml - It doesnt work?

Instead of the counted number - I get [error processing directive]

Whats the friggin problem?

I forgot to mention - the server is Apache 1.3.something, Perl5, FreeBSD

[ April 13, 2002: Message edited by: Mojo ]

[ April 13, 2002: Message edited by: Mojo ]

voidmain:
Do you have SSI turned on in Apache? Can you run other Server Side included programs? See:
http://httpd.apache.org/docs/howto/ssi.html#configuringyourservertopermitssi

And I believe what you actually want in your index.shtml is:

<!--#include virtual="/cgi-bin/counter.cgi" -->

See: http://httpd.apache.org/docs/howto/ssi.html#includingtheresultsofacgiprogram

[ April 13, 2002: Message edited by: VoidMain ]

Navigation

[0] Message Index

Go to full version