in reply to Re: How do I get cgi scripts parsed for ssi by way of the .htaccess file?
in thread How do I get cgi scripts parsed for ssi by way of the .htaccess file?

I tried CGI::SSI, but when I do an exec i get "An error has occured" or whatever. Then i tried an include virtual and I got the source code of the script (dont ask me how that happened). the script is chmodded 755, all the paths are right, so I dunno what's wrong...
  • Comment on Re: Answer: How do I get cgi scripts parsed for ssi by way of the .htaccess file?

Replies are listed 'Best First'.
Re: Re: Answer: How do I get cgi scripts parsed for ssi by way of the .htaccess file?
by dws (Chancellor) on May 31, 2001 at 02:15 UTC
    You may need   Option +Includes in your .htaccess . Then,   <!--#exec cmd="./foo.pl"--> will work. CGI-style exec is left as an exercise (it's there in the Apache docs).

      well, i tried that, and all i get is 500 errors...my server's running on FreeBSD btw

      ______________________________________________
      When I get a little money, I buy books. If I have any left over, I buy food and clothes.
      -Erasmus

Re: Re: Answer: How do I get cgi scripts parsed for ssi by way of the .htaccess file?
by Masem (Monsignor) on May 31, 2001 at 02:06 UTC
    It probably would be helpful to post the code that you are working with so that we can find what errors you might have.
    Dr. Michael K. Neylon - mneylon-pm@masemware.com || "You've left the lens cap of your mind on again, Pinky" - The Brain
      The code in my script for using CGI::SSI is: use CGI::SSI (autotie => STDOUT); # to tie the ssi parsing to STDOUT and the actual ssi directive: <!--#exec cgi="/cgi-bin/ads/ads.cgi" -->

      ______________________________________________
      When I get a little money, I buy books. If I have any left over, I buy food and clothes.
      -Erasmus