SSI not working

I am running a script on my server, or trying to run it. Here is my problem.

I have a file with a .html extention that is calling a .php file using SSI

The .php file in turn compiles two documents, header.html and footer.html along with some xml feeds.

The footer.html file has a SSI call to a script in my cgi bin that should put internal links on my site. Here is the Include <!--#include virtual="/cgi-bin/random/rotator.cgi?id=links"-->

Everything works fine except for the SSI call to the script in my cgi-bin. When I look at my webpage in a browser the links aren't there. When I check the source code of my page I can see the SSI call to the cgi-bin script.

I have the following in my .htaccess file

AddType text/html .html
AddHandler server-parsed .html
Options Indexes FollowSymLinks Includes

Thanks for any help.
timshankAsked:
Who is Participating?
 
caterham_wwwConnect With a Mentor Commented:

Lets check this in httpd.conf (apache 1.3).

search for

    # To use server-parsed HTML files
    #
    #AddType text/html .shtml
    #AddHandler server-parsed .shtml

uncomment the lines to

AddType text/html .shtml .html
AddHandler server-parsed .shtml .html

and check, if it's working
0
 
caterham_wwwCommented:
One reason might be that AllowOberride in httpd.conf is not set at least to FileInfo.

Open httpd.conf/vhost.conf and search for your Directory container (there are more than one Directory-Containers).

The container might look like

<Directory /path/to/your/docroot>
Options Indexes FollowSymLinks
AllowOverride Options
</Directory>

add FileInfo to the Directive AllowOverride
AllowOverride Options FileInfo
0
 
timshankAuthor Commented:
It was set to AllowOverride None and I changed it to AllowOverride Options FileInfo but it still isn't working.
0
 
ahoffmannConnect With a Mentor Commented:
you need to enshure that Options contains Includes and does  not contain IncludeNoExec
Some servers need ExecCGI too (but never seen this for apache, just worth a try)
0
 
timshankAuthor Commented:
Yes, please go ahead and split the credits.

I couldn't get it to work so I went about it another way.

Thanks,
Tim
0
All Courses

From novice to tech pro — start learning today.