|
-
Dec 5th, 2001, 10:48 PM
#1
Thread Starter
New Member
Perl......
when i open the script...it ALWAYS shows the script in the page .. why?!?! im just beginning in perl....thanx...
-
Dec 6th, 2001, 06:44 AM
#2
Hyperactive Member
Are you runnin a webserver? If not then u need to be!
If you have a webserver then you need to make sure that:
you have a cgi-bin,
the cgi-bin is setup for perl scripts,
and the script is in the cgi-bin
if all of the above is done and it still doesn't work then post your code and ill take look at it for u
-
Dec 6th, 2001, 11:55 AM
#3
you will also need the shebang line.
that is the line that is at the very top and looks somehting like this.
#!usr/bin/perl
that tells the browser where perl is located on the server.
also do like progressive says, your server has to support cgi.
-
Dec 6th, 2001, 12:11 PM
#4
Black Cat
Do you still need the shebang line under mod_perl? Since its not running under CGI, I don't see why you would need to tell the shell where the executable is, unless Apache uses it internally, maybe for the switches.
Josh
Get these: Mozilla Opera OpenBSD
I have books for sale: "MCSD in a Nutshell" and "VB Distributed Exam Cram" - PM me for details. Will also trade for a decent ATX Pentium 2 MB/CPU/RAM combo.
-
Dec 6th, 2001, 12:12 PM
#5
Hyperactive Member
-
Dec 6th, 2001, 01:49 PM
#6
Black Cat
What purpose does it serve then?
Josh
Get these: Mozilla Opera OpenBSD
I have books for sale: "MCSD in a Nutshell" and "VB Distributed Exam Cram" - PM me for details. Will also trade for a decent ATX Pentium 2 MB/CPU/RAM combo.
-
Dec 6th, 2001, 01:51 PM
#7
Originally posted by JoshT
What purpose does it serve then?
you had it right the first time, it tells apache where perl is.
-
Dec 6th, 2001, 01:53 PM
#8
Black Cat
But by using mod_perl, shouldn't apache have that loaded into memory and using that instead - rather than the executable like you would with cgi?
Josh
Get these: Mozilla Opera OpenBSD
I have books for sale: "MCSD in a Nutshell" and "VB Distributed Exam Cram" - PM me for details. Will also trade for a decent ATX Pentium 2 MB/CPU/RAM combo.
-
Dec 6th, 2001, 02:11 PM
#9
Fanatic Member
on apache it comes with a demo cgi script in perl. when i goto the address it says there was a internal server error. why?
FlameWave Technologies - internet tools
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|