Helpful Information
 
 
Category: IIS
SSI and Perl on IIS5

I've got a Perl script I have written and I'm certain it works fine because I have tested it in many different ways. I have included an SSI tag on my web page and called the Perl script.

<!--#include virtual="/cgi-bin/script.pl" -->

When I load the page, I see the entire code of the Perl script. It's almost like the script is not being run... it's just taking the contents of the Perl script and dumping it directly into the referring page.

I have gone into the IIS console and modified the properties of the website. I then went into the Home Directory tab and clicked on the configuration button. From there, I have ensured that .html and .htm are enabled for processing by ssinc.dll. For .pl extensions, I have the path to my Perl interpreter. D:\Perl\bin\perl.exe "%s "%s. Is there anything else that needs to be set????

I have also tried calling my Perl script using the following tag...

<!--#exec cgi="/cgi-bin/tips.pl" -->

But this does absolutely nothing. The SSI tag is treated like a comment. No output is generated. Can somebody please explain how I can enable this too???? I have Google'd myself silly trying to find the answer, so I'm turning to you guys for help.

Can somebody tell me what I need to modify in the server's config settings to properly enable SSI for Perl scripts????? I'm a Unix man and not familiar with IIS.

Thanks in advance.

Maybe something here will help

http://www.microsoft.com/technet/treeview/default.asp?url=/technet/prodtechnol/windowsserver2003/proddocs/standard/pub_svrsideincludes.asp

I'm having problems with this too. I read that IIS didn't support exec, but that was for IIS 2.0 and I'm using 5.1. Surely by now they would've added support to execute perl scripts in a HTML file using SSI by now! I checked out that link, but M$$ help page was of no help (big surprise). Has ANYONE had any success w/this? If so, please let me know how you did it. Thanks!!

I never got this issue resolved. For now, I'm just unable to run scripts this way. If anyone knows, I still need to do this. For now, I'm just finding alternate solutions.

There is a fair amount of information on SSI in the IIS online help, which should be available on your server from http://localhost/IISHelp

Maybe something there will help. #exec does work (except there are some problems with IIS 5.1 so says a MS article). I don't use cgi/perl so I'm not of much help in this area :)

Have you thought of generating JavaScript on the serverside using a perl script?

<script language="javascript" src="/cgi-bin/myscript.pl"></script>

in the perl script
print "Content-Type: text/javascript\n\n";
print "document.write('hello world<br>');";

Just a thought, though it can be a bit of a nasty barsteward to debug

--Ax

I know this says its for server 2003 but M$$ uses a lot of code over and over again. It also is a quick registry entry to get it working...so I thought it may be worth a shot.

Hope it helps.

http://www.microsoft.com/resources/documentation/WindowsServ/2003/standard/proddocs/en-us/Default.asp?url=/resources/documentation/WindowsServ/2003/standard/proddocs/en-us/ref_reg_wwwservice.asp

an eaiser way to do this would be to redirect to the perl script then output the rest of the page or just do the whole page in your script and just link to the script

hi, I just wanted to know if you have find the fix on your problem. I have also experiencing the same scenario where <!--#exec cgi="/cgi-bin/tips.pl" --> is treated just like a comment.

:)


I've got a Perl script I have written and I'm certain it works fine because I have tested it in many different ways. I have included an SSI tag on my web page and called the Perl script.

<!--#include virtual="/cgi-bin/script.pl" -->

When I load the page, I see the entire code of the Perl script. It's almost like the script is not being run... it's just taking the contents of the Perl script and dumping it directly into the referring page.

I have gone into the IIS console and modified the properties of the website. I then went into the Home Directory tab and clicked on the configuration button. From there, I have ensured that .html and .htm are enabled for processing by ssinc.dll. For .pl extensions, I have the path to my Perl interpreter. D:\Perl\bin\perl.exe "%s "%s. Is there anything else that needs to be set????

I have also tried calling my Perl script using the following tag...

<!--#exec cgi="/cgi-bin/tips.pl" -->

But this does absolutely nothing. The SSI tag is treated like a comment. No output is generated. Can somebody please explain how I can enable this too???? I have Google'd myself silly trying to find the answer, so I'm turning to you guys for help.

Can somebody tell me what I need to modify in the server's config settings to properly enable SSI for Perl scripts????? I'm a Unix man and not familiar with IIS.

Thanks in advance.

hi, I just wanted to know if you have find the fix on your problem.


Nope. I gave up a long time ago. I ended up just finding another way to design my site so it wasn't necessary.










privacy (GDPR)