By default SSI will only run from files ending with .shtml and cgi can only be run in the cgi-bin.
You can override these settings by adding the following lines to the .htaccess file in the document root for the domain.
AddHandler cgi-script .cgi .pl
Options +ExecCGI
AddHandler server-parsed .shtml .html .htm