Stop Microsoft
Operating Systems => Linux and UNIX => Topic started by: Mojo on 13 April 2002, 16:31
-
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 (http://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 (http://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 ]
-
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 (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 (http://httpd.apache.org/docs/howto/ssi.html#includingtheresultsofacgiprogram)
[ April 13, 2002: Message edited by: VoidMain ]