Author Topic: Ahh! Webservers CGI  (Read 596 times)

Mojo

  • Member
  • **
  • Posts: 32
  • Kudos: 0
Ahh! Webservers CGI
« 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 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

  • VIP
  • Member
  • ***
  • Posts: 5,605
  • Kudos: 184
    • http://voidmain.is-a-geek.net/
Ahh! Webservers CGI
« Reply #1 on: 13 April 2002, 20:14 »
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 ]

Someone please remove this account. Thanks...