I'm having SSI trouble as well. I have the following line in an .shtml file:
<p id="table"><!--#include virtual="cgi-bin/latestbooks.cgi" --></p>
I get [an error occurred while processing this directive]
I changed my file permissions to add execute. I appreciate any help.