You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Christina <do...@adelphia.net> on 2002/07/26 15:31:57 UTC
CGI Scripts w/mod_perl
Hi,
I installed a CGI script last night, only to later realize the server is running mod_perl, instead of Perl. I have never worked with mod_perl before, so I'm wondering if this is why the script won't function on the server.
The script calls for a change in the first line of the code in all .pl files if the path to perl is different from #!/usr/bin/perl, but I can't find anything in the server to indicate what the path should be using mod_perl.
I am completely confused at this point so any guidance in the right direction would be greatly appreciated!
Thanks,
Christina
Re: CGI Scripts w/mod_perl
Posted by Dave Hodgkinson <da...@davehodgkinson.com>.
"Christina" <do...@adelphia.net> writes:
> I am completely confused at this point so any guidance in the right direction
> would be greatly appreciated!
Ignore mod_perl - get your script running as CGI.
--
Dave Hodgkinson, Wizard for Hire http://www.davehodgkinson.com
Editor-in-chief, The Highway Star http://www.thehighwaystar.com
Interim Technical Director, Web Architecture Consultant for hire
Re: CGI Scripts w/mod_perl
Posted by Christina <do...@adelphia.net>.
I'm sending out the sincerest of thank you's to all of you who helped me with my problem earlier today!
I was offline most of the afternoon, but found your messages this evening and miracle of all miracles, I actually got the script to work.
Thanks everyone!
Christina
----- Original Message -----
From: Mark Coffman
To: Christina ; modperl@perl.apache.org
Sent: Friday, July 26, 2002 9:43 AM
Subject: RE: CGI Scripts w/mod_perl
Try running "which perl" and use that path for your #!/usr/bin/perl line.
Then rename your script as .cgi and see if that helps.
Mark
-----Original Message-----
From: Christina [mailto:douglask@adelphia.net]
Sent: Friday, July 26, 2002 9:32 AM
To: modperl@perl.apache.org
Subject: CGI Scripts w/mod_perl
Hi,
I installed a CGI script last night, only to later realize the server is running mod_perl, instead of Perl. I have never worked with mod_perl before, so I'm wondering if this is why the script won't function on the server.
The script calls for a change in the first line of the code in all .pl files if the path to perl is different from #!/usr/bin/perl, but I can't find anything in the server to indicate what the path should be using mod_perl.
I am completely confused at this point so any guidance in the right direction would be greatly appreciated!
Thanks,
Christina
RE: CGI Scripts w/mod_perl
Posted by Ged Haywood <ge...@www2.jubileegroup.co.uk>.
Hi all,
> On Fri, 26 Jul 2002, Mark Coffman wrote:
> > Try running "which perl" and use that path for your #!/usr/bin/perl line.
> > Then rename your script as .cgi and see if that helps.
Of course none of this absolves Christina from reading the Eagle Book,
the mod_perl Guide, the Cookbook (Geoff - see that?) and truckloads of
other stuff which you will be able to find through the mod_perl site
http://perl.apache.org
when you do actually start to use modperl. For example you can find
out how to run mod_perl and non-mod_perl applications under the same
Apache which isn't a bad way to get your feet wet.
73,
Ged.
RE: CGI Scripts w/mod_perl
Posted by "Rafiq Ismail (ADMIN)" <ra...@joshua.dreamthought.com>.
On Fri, 26 Jul 2002, Mark Coffman wrote:
> Try running "which perl" and use that path for your #!/usr/bin/perl line.
> Then rename your script as .cgi and see if that helps.
Um.. yeah, ignore all my "locate" tribble. 'which' is the way to go.
That wasn't a question.
RE: CGI Scripts w/mod_perl
Posted by Mark Coffman <mc...@smill.com>.
Try running "which perl" and use that path for your #!/usr/bin/perl line.
Then rename your script as .cgi and see if that helps.
Mark
-----Original Message-----
From: Christina [mailto:douglask@adelphia.net]
Sent: Friday, July 26, 2002 9:32 AM
To: modperl@perl.apache.org
Subject: CGI Scripts w/mod_perl
Hi,
I installed a CGI script last night, only to later realize the server is
running mod_perl, instead of Perl. I have never worked with mod_perl
before, so I'm wondering if this is why the script won't function on the
server.
The script calls for a change in the first line of the code in all .pl
files if the path to perl is different from #!/usr/bin/perl, but I can't
find anything in the server to indicate what the path should be using
mod_perl.
I am completely confused at this point so any guidance in the right
direction would be greatly appreciated!
Thanks,
Christina
Re: CGI Scripts w/mod_perl
Posted by "Rafiq Ismail (ADMIN)" <ra...@joshua.dreamthought.com>.
On Fri, 26 Jul 2002, Christina wrote:
> I installed a CGI script last night, only to later realize the server
> is running mod_perl, instead of Perl. I have never worked with
> mod_perl before, so I'm wondering if this is why the script won't
> function on the server.
Your apache server probably supports mod_perl, however this isn't a
'version' of perl. You can continue you use perl as normale'. To
locate your perl binary do an:
i) updatedb or /usr/libexec/locate.updatedb
ii) locate bin/perl
iii) change it to the path returned
And bob should be your uncle.
> The script calls for a change in the first line of the code in all .pl files if the path to perl is different from #!/usr/bin/perl, but I can't find anything in the server to indicate what the path should be using mod_perl.
>
> I am completely confused at this point so any guidance in the right direction would be greatly appreciated!
'sok. Embarassing truth. Years ago, when I first heard of mod_perl, I
thought it refered to using libraries and writing OO packages in neat tidy
.pm's. We all have to start somewhere. You'll get your head around it.
fiq