IIS Server Security - Perl File

This is Interesting: Free IT Magazines  
Home > Archive > IIS Server Security > February 2006 > Perl File





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Perl File
Kory

2006-02-17, 10:41 pm

Hello! I have a website running on IIS 6.0. The website points to some
perl files for submissions. The PERL files are located in cgi-bin
directory. Here is the problem. When I click on request button, the
browser tells me file not found. I enable directory browsing and when I
open the cgi-bin folder I can see the file. When I click on the file, the
error is also the same, "File not found". I installed ActivePerl 5.8 and
still no help. The file is just not being excuted. What am I doing wrong?

Thank You


APadmin

2006-02-17, 10:41 pm

Kory,

You need to ensure you enabled the "Web Service Extension" for the perl.exe
or perlis.dll (cgi or isapi). You can find this in iis. There may already
been an extension set but not enabled. Simply enable it. Or if there isn't
one by chance, you can simply create one and point it to the PERL exe or dll.

"Kory" wrote:

> Hello! I have a website running on IIS 6.0. The website points to some
> PERL files for submissions. The PERL files are located in cgi-bin
> directory. Here is the problem. When I click on request button, the
> browser tells me file not found. I enable directory browsing and when I
> open the cgi-bin folder I can see the file. When I click on the file, the
> error is also the same, "File not found". I installed ActivePerl 5.8 and
> still no help. The file is just not being excuted. What am I doing wrong?
>
> Thank You
>
>
>

Kory

2006-02-17, 10:41 pm

Hi! Thanks for the advice, but can you be more specific? I could not find
the option to enable it.
Thank You!

"APadmin" <APadmin@discussions.microsoft.com> wrote in message
news:5B07C153-17AE-40FC-90A0-C1F7CB1F5E71@microsoft.com...[vbcol=seagreen]
> Kory,
>
> You need to ensure you enabled the "Web Service Extension" for the
> perl.exe
> or perlis.dll (cgi or isapi). You can find this in iis. There may
> already
> been an extension set but not enabled. Simply enable it. Or if there
> isn't
> one by chance, you can simply create one and point it to the PERL exe or
> dll.
>
> "Kory" wrote:
>


Kory

2006-02-17, 10:41 pm

Ok. I found the Service Extenstions and allowed PERL for cgi and asapi.
That did not help. So i allowed all cgi extensions and all asapi
extenstions eventhough windows warned me a security risk. Now when I try to
execute the script, it tells me HTTP 500 - Internal server error. Should i
be assuming the file is being excuted, but somehow fails?

Thank You!
"APadmin" <APadmin@discussions.microsoft.com> wrote in message
news:5B07C153-17AE-40FC-90A0-C1F7CB1F5E71@microsoft.com...[vbcol=seagreen]
> Kory,
>
> You need to ensure you enabled the "Web Service Extension" for the
> perl.exe
> or perlis.dll (cgi or isapi). You can find this in iis. There may
> already
> been an extension set but not enabled. Simply enable it. Or if there
> isn't
> one by chance, you can simply create one and point it to the PERL exe or
> dll.
>
> "Kory" wrote:
>


APadmin

2006-02-17, 10:41 pm

You're recieving an 500 error from your browser not the server. To view the
real error, go into your Internet Explorer and select "Tools". Then
"Internet Options", and select the "advanced" tab. Find the option "Show
friendly error messages" and uncheck it. This will allow you to see the real
error.

And from the sound of it, it appears to be working

"Kory" wrote:

> Ok. I found the Service Extenstions and allowed PERL for cgi and asapi.
> That did not help. So i allowed all cgi extensions and all asapi
> extenstions eventhough windows warned me a security risk. Now when I try to
> execute the script, it tells me HTTP 500 - Internal server error. Should i
> be assuming the file is being excuted, but somehow fails?
>
> Thank You!
> "APadmin" <APadmin@discussions.microsoft.com> wrote in message
> news:5B07C153-17AE-40FC-90A0-C1F7CB1F5E71@microsoft.com...
>
>
>

Kory

2006-02-17, 10:41 pm

Ok. The error I get is "The specified procedure could not be found."

What does that mean? this website worked great on IIS5.0
what can i do to fix it?
Thanks.


"APadmin" <APadmin@discussions.microsoft.com> wrote in message
news:2B433D2D-9854-45FA-B5C5-2CDD3A194BB0@microsoft.com...[vbcol=seagreen]
> You're recieving an 500 error from your browser not the server. To view
> the
> real error, go into your Internet Explorer and select "Tools". Then
> "Internet Options", and select the "advanced" tab. Find the option "Show
> friendly error messages" and uncheck it. This will allow you to see the
> real
> error.
>
> And from the sound of it, it appears to be working
>
> "Kory" wrote:
>


APadmin

2006-02-17, 10:41 pm

Sounds like you're trying to call a PERL module that may not exist on your
new server. Ensure that any modules your script uses are installed in your
new PERL installation. If you want to simply test whether CGI is working
properly try putting the following code into a file:

print "Content-type: text/html\n\n";
print "Hello, world!\n";

If this returns "Hello, world!" in your browser then you're setup properly,
as far as IIS is concerned.

"Kory" wrote:

> Ok. The error I get is "The specified procedure could not be found."
>
> What does that mean? this website worked great on IIS5.0
> what can i do to fix it?
> Thanks.
>
>
> "APadmin" <APadmin@discussions.microsoft.com> wrote in message
> news:2B433D2D-9854-45FA-B5C5-2CDD3A194BB0@microsoft.com...
>
>
>

Kory

2006-02-17, 10:41 pm

Tried. Same error. So problem is with IIS. Anymore adive????
Thank You


"APadmin" <APadmin@discussions.microsoft.com> wrote in message
news:D9CBA084-901D-46A1-B2FC-5EB192152772@microsoft.com...[vbcol=seagreen]
> Sounds like you're trying to call a PERL module that may not exist on your
> new server. Ensure that any modules your script uses are installed in
> your
> new PERL installation. If you want to simply test whether CGI is working
> properly try putting the following code into a file:
>
> print "Content-type: text/html\n\n";
> print "Hello, world!\n";
>
> If this returns "Hello, world!" in your browser then you're setup
> properly,
> as far as IIS is concerned.
>
> "Kory" wrote:
>


Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com