IIS
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Try It Free
Go Back   Dev Shed ForumsSystem AdministrationIIS

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
  #1  
Old October 6th, 2003, 09:58 AM
Donboy's Avatar
Donboy Donboy is offline
The Evil Monkey
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2003
Posts: 220 Donboy User rank is Private First Class (20 - 50 Reputation Level)Donboy User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 6 h 38 m 10 sec
Reputation Power: 6
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.

Reply With Quote
  #2  
Old October 6th, 2003, 06:42 PM
Doug G Doug G is offline
Grumpier Old Moderator
Dev Shed God 12th Plane (10500 - 10999 posts)
 
Join Date: Jun 2003
Posts: 10,712 Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level) 
Time spent in forums: 4 Weeks 1 Day 23 h 31 m 33 sec
Reputation Power: 688

Reply With Quote
  #3  
Old November 9th, 2003, 10:19 PM
marron79's Avatar
marron79 marron79 is offline
Rut row Raggy!
Dev Shed Novice (500 - 999 posts)
 
Join Date: Jul 2001
Location: Tornado Alley
Posts: 558 marron79 User rank is Private First Class (20 - 50 Reputation Level)marron79 User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 9 h 41 sec
Reputation Power: 8
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!!
__________________
Matt

Reply With Quote
  #4  
Old November 9th, 2003, 10:38 PM
Donboy's Avatar
Donboy Donboy is offline
The Evil Monkey
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2003
Posts: 220 Donboy User rank is Private First Class (20 - 50 Reputation Level)Donboy User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 6 h 38 m 10 sec
Reputation Power: 6
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.

Reply With Quote
  #5  
Old November 10th, 2003, 10:19 PM
Doug G Doug G is offline
Grumpier Old Moderator
Dev Shed God 12th Plane (10500 - 10999 posts)
 
Join Date: Jun 2003
Posts: 10,712 Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level) 
Time spent in forums: 4 Weeks 1 Day 23 h 31 m 33 sec
Reputation Power: 688
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

Reply With Quote
  #6  
Old December 1st, 2003, 04:10 PM
Axweildr's Avatar
Axweildr Axweildr is offline
CPAN medic ...
Click here for more information.
 
Join Date: Mar 2003
Location: Location: Location:
Posts: 11,279 Axweildr User rank is General 26th Grade (Above 100000 Reputation Level)Axweildr User rank is General 26th Grade (Above 100000 Reputation Level)Axweildr User rank is General 26th Grade (Above 100000 Reputation Level)Axweildr User rank is General 26th Grade (Above 100000 Reputation Level)Axweildr User rank is General 26th Grade (Above 100000 Reputation Level)Axweildr User rank is General 26th Grade (Above 100000 Reputation Level)Axweildr User rank is General 26th Grade (Above 100000 Reputation Level)Axweildr User rank is General 26th Grade (Above 100000 Reputation Level)Axweildr User rank is General 26th Grade (Above 100000 Reputation Level)Axweildr User rank is General 26th Grade (Above 100000 Reputation Level)Axweildr User rank is General 26th Grade (Above 100000 Reputation Level)Axweildr User rank is General 26th Grade (Above 100000 Reputation Level)Axweildr User rank is General 26th Grade (Above 100000 Reputation Level)Axweildr User rank is General 26th Grade (Above 100000 Reputation Level)Axweildr User rank is General 26th Grade (Above 100000 Reputation Level)Axweildr User rank is General 26th Grade (Above 100000 Reputation Level)  Folding Points: 122403 Folding Title: Super Ultimate Folder - Level 1Folding Points: 122403 Folding Title: Super Ultimate Folder - Level 1Folding Points: 122403 Folding Title: Super Ultimate Folder - Level 1Folding Points: 122403 Folding Title: Super Ultimate Folder - Level 1Folding Points: 122403 Folding Title: Super Ultimate Folder - Level 1Folding Points: 122403 Folding Title: Super Ultimate Folder - Level 1
Time spent in forums: 4 Months 22 h 37 m 57 sec
Reputation Power: 2731
Send a message via Google Talk to Axweildr
Orkut
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

Reply With Quote
  #7  
Old September 10th, 2004, 03:16 PM
aether aether is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2004
Posts: 1 aether User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Try this link to enable #exec in IIS

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

Reply With Quote
  #8  
Old September 28th, 2004, 09:45 AM
Icelotus Icelotus is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2004
Posts: 8 Icelotus User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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

Reply With Quote
  #9  
Old November 5th, 2004, 12:59 AM
kepiarn kepiarn is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2004
Posts: 3 kepiarn User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
<!--#exec cgi=-->

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.



Quote:
Originally Posted by Donboy
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.

Reply With Quote
  #10  
Old November 5th, 2004, 06:49 AM
Donboy's Avatar
Donboy Donboy is offline
The Evil Monkey
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2003
Posts: 220 Donboy User rank is Private First Class (20 - 50 Reputation Level)Donboy User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 6 h 38 m 10 sec
Reputation Power: 6
Quote:
Originally Posted by kepiarn
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.

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationIIS > SSI and Perl on IIS5


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway