Solved

Settings...

Posted on 2001-07-24
7
136 Views
Last Modified: 2010-03-05
Im a complete newbie with perl.
Ive just installed Active Perl on my Falcon webserver,
which Im running on Win98,
but cant get the scripts to work in my browser.
All I get is the complete source code in the browser-window.
Any ideas of what I have missed?
regs
Peter
0
Comment
Question by:peterx
  • 3
  • 3
7 Comments
 
LVL 17

Expert Comment

by:dorward
Comment Utility
I don't know falcon, but you need to tell the webserver how to recognise perl scripts and that they need to be executed through active perl.

Consult the documentation for the webserver, that should tell you how to do it.
0
 
LVL 5

Expert Comment

by:Peewee
Comment Utility
peterx,
there are a few possibilities here with this one:

a:  you have not specified the correct path to perl in the shebang line , ie like #!/usr/bin/perl but perl is installed in /perl/bin/perl.

b:  you have missed the following line from your scripts:
print "Content-type: text/html\n\n";
If so insert after the shebang line and before any other print statements.

c:  your webserver is not yet enabled for cgi.  Typically you will have a config file which you will have to set.  Typically look for ScriptAlias which tells the server to execute any scripts in that directory as cgi or/and AddHandler to tell the webserver to expect file extentions  ie .pl or cgi as perl scripts acroos your website.

regards
Peewee

let me how it goes
0
 

Author Comment

by:peterx
Comment Utility
Falcon should be able to handle perl..
www.blueface.com

My serverroot is f:\server\index\
and Perl is located in f:\server\index\bin\perl
so path in scripts is #!/bin/perl

The content type line is there too.

In the webserver ive marked the folder bin as executable.

I also have the path to Perl in autoexec.
0
What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

 

Author Comment

by:peterx
Comment Utility
In the servers ISAPI path I gave the path to perl.exe,
but it should be a .dll file, dont know which one i should use...
Theres perl56.dll, perlis.dll and perlSE.dll.
0
 
LVL 5

Accepted Solution

by:
Peewee earned 30 total points
Comment Utility
peterx,

as a test could you:

change the path to perl within a script from

#!/bin/perl

to:

#!/server/index/bin/perl

and run the script within a browser and see what happens.  


regards
Peter
0
 

Author Comment

by:peterx
Comment Utility
Hi Peter, had forgot this Q, sorry :-)
Thx for your help!
Regards
Peter
0
 
LVL 5

Expert Comment

by:Peewee
Comment Utility
no worries,
glad to know you got the solution you wanted..

regards
peewee
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Email validation in proper way is  very important validation required in any web pages. This code is self explainable except that Regular Expression which I used for pattern matching. I originally published as a thread on my website : http://www…
In the distant past (last year) I hacked together a little toy that would allow a couple of Manager types to query, preview, and extract data from a number of MongoDB instances, to their tool of choice: Excel (http://dilbert.com/strips/comic/2007-08…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now