Link to home
Start Free TrialLog in
Avatar of peterx
peterx

asked on

Settings...

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
Avatar of dorward
dorward

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.
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
Avatar of peterx

ASKER

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.
Avatar of peterx

ASKER

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.
ASKER CERTIFIED SOLUTION
Avatar of Peewee
Peewee

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of peterx

ASKER

Hi Peter, had forgot this Q, sorry :-)
Thx for your help!
Regards
Peter
no worries,
glad to know you got the solution you wanted..

regards
peewee