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
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
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
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
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.
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.
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.
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Hi Peter, had forgot this Q, sorry :-)
Thx for your help!
Regards
Peter
Thx for your help!
Regards
Peter
no worries,
glad to know you got the solution you wanted..
regards
peewee
glad to know you got the solution you wanted..
regards
peewee
Consult the documentation for the webserver, that should tell you how to do it.