Connecting Tech Pros Worldwide Help | Site Map

Newbi - Perl and IIS

 
LinkBack Thread Tools Search this Thread
  #1  
Old April 4th, 2006, 01:34 AM
Newbie
 
Join Date: Apr 2006
Posts: 2
Default Newbi - Perl and IIS

I am trying to work thru the book “Sams Teach Yourself CGI” and am having trouble running the first sample script.

+++++++++++++++++++++++++++
#!C:\ProgramFiles\Perl\bin\perl

use CGI;

$query = new CGI;

print $query->header;

print "<html><head><title>A test</title></head>\n";
print "<body>The test was successful.</body></html>";
+++++++++++++++++++++++++++

I download and installed Active Perl and installed and started IIS on Windows XP. The script runs fine from the command prompt but, when running from IE (url: http://localhost/CGI_Bin/test.cgi) it just displays all the script in the browser window, on one line, i.e.

#!C:\ProgramFiles\Perl\bin\perl use CGI; $query = new CGI; print $query->header; print "\n"; print "The test was successful.";

Thanks
Reply
  #2  
Old April 6th, 2006, 05:01 PM
Newbie
 
Join Date: Apr 2006
Posts: 2
Default Newbi - Perl and IIS: Figured Out

I finally figured out how to get my Perl scripts running on IIS. Here is what I had to do.

First, I had to modify a ScriptMap Registry setting:
http://support.microsoft.com/kb/q150629/

Then I had to change the execution permissions on the CGI-Bin folder to allow scripts and executables to be run:
Control Pane->Admin Tools->Internet Information Services


Hope this helps someone else.
Reply
Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search


Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,662 network members.