Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Server Side Includes and CGI

Status
Not open for further replies.

ajrowland

MIS
Jun 28, 2000
20
US
OK, I've been pounding my head on this all day. I have a cgi/perl script for an access counter (it's the Simple Counter script by Seth Leonard). I've ascertained that if I go directly to the cgi script through the web browser, it works just dandy. If I try to include it in the web page, I get nothing.

The script can be found at
The site I'm working on is on an intranet so is not available. The command I'm using to access the ssi is:

<!--#exec cgi=&quot;/cgi-bin/counter.cgi&quot; -->

Can anyone help?

Thanks,

Andrew
 
I had a similar problem with a perl script but maybe this will help. Remove the IUSR_ rights to the cgi-bin directory which should prompt you for a login when accessing the page with the script. Login as adminstrator. If the script runs, then it is a rights issue (as it was in my case). Once I knew it was rights, I turned on the file/directory access tracking in 2000 and then checked the logs after running the scripts again. From this I found exactly what rights I had to add to the IUSR_ account to make it work.

Hope this helps.
 
rjs,

No, that didn't do it. It seems to load the page without executing the include at all. Puzzling. Thanks.

Andrew
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top