CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Win32 Programming Help:
perl scripts not executing

 



yzhang
Deleted

Sep 7, 2000, 7:44 AM

Post #1 of 9 (5014 views)
perl scripts not executing Can't Post

I have ActivePerl installed in IIS4 on NT. The Perl scripts work on command line but don't work in a browser. It displays the scripts rather than executing the file.

In IIS I set up the configuration to c:\perl\bin\perl.exe %s %s with .pl extension. Also the cgi-bin has the execute permission.

Any help will be greatly appreciated.


brian.hayes
User

Sep 8, 2000, 5:33 AM

Post #2 of 9 (5014 views)
Re: perl scripts not executing [In reply to] Can't Post

What service pack are you running for NT? I would recomend sp4 or higher.

Plus: On NT there ae different levels of exec permissions. File level, and with IIS there is also exec permissions (Exec as script). I belive this is were you will find your problem.

Take a look at the properties of your cgi-bin directory from IIS admin under home directory and make sure your permissions are set for exec there as well.

IF all else fails use the perlIIS.dll instead of perl.exe.

C:\Perl\bin\PerlIS.dll .pl
and check the script box.

Let me know.

Brian Hayes


yzhang
Deleted

Sep 8, 2000, 1:01 PM

Post #3 of 9 (5014 views)
Re: perl scripts not executing [In reply to] Can't Post

Hi Brian,
Thank you very much for your reply.

I did what you suggested, but it's still not working. I have sp4.0 installed. My html file is located in wwwroot, the perl file in cgi-bin under wwwroot. the cgi-bin has execute(include scripts) right. I also checked the path thru My Computer-Properties-environments-systems/users, there is .pl path. I don't know any other places that I could check.

Thank again.

Yuqing


brian.hayes
User

Sep 9, 2000, 7:47 AM

Post #4 of 9 (5014 views)
Re: perl scripts not executing [In reply to] Can't Post

I have an Idea, why dont you explain step by step how you have things configured.

E.G:
1) Installed Perl 5.6
2) Opened IIS Manager.
3) Selected the default web site - > Right Click ->properties.
4) Went to the "Home Directory" tab.
5) Clicked on Configuration button.
6) Under app mappings -> CLicked on "add"
Exacutable = "C:\perl\bin\perlis.dll
Extention = .pl
Checked the box "Script Engine"
7) Did 1 - 2, selected the actuall cgi-bin folder -> Rhight Click -> Properties
8) Did 4.
9) Checked the box "Exe as script"
10) Went to the C:\wwwroot\inetpub folder.
11) Right click -> Properties
12) Went to the "Security tab"
13) Make sure that Everyone as Full Control
14) If not then added them and checked "Change all subdirectorys"
15) Clicked "Ok"
16) Did the same for cgi-bin folder.


If you did all the above and still no success let me know.

Thanks,

Brian Hayes


yzhang
Deleted

Sep 12, 2000, 10:35 PM

Post #5 of 9 (5014 views)
Re: perl scripts not executing [In reply to] Can't Post

Thank you very much, Brian.

It finally worked. I didn't check Everyone as Full Control in security tab.

In the meantime, I wonder why the Perl file only works on a browser located in another machine instead of the one on the same machine that runs Web server.

Yuqing


perlkid
stranger

Sep 13, 2000, 12:01 PM

Post #6 of 9 (5014 views)
Re: perl scripts not executing [In reply to] Can't Post

 
Ok Brian,

I definatley don't have the security tab feature on mine. Please tell me where to download the same Personal Web Server you guys have.

Thanks A lot,

perlkid


brian.hayes
User

Sep 13, 2000, 8:00 PM

Post #7 of 9 (5014 views)
Re: perl scripts not executing [In reply to] Can't Post

Perlkid, What version of Windows are you running? And version of Perl?


perlkid
stranger

Sep 14, 2000, 10:37 AM

Post #8 of 9 (5014 views)
Re: perl scripts not executing [In reply to] Can't Post

 
Windows 98, And Active State Perl 5.6.0.

Thanks,

perlkid


Kagey
Novice

Nov 14, 2000, 4:13 PM

Post #9 of 9 (5014 views)
Re: perl scripts not executing [In reply to] Can't Post

Hey perlkid,

In PWS click on the advanced button then edit properties for <home> then check all of the "access" boxes.

gl
Kagey

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives