Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

problem in mod_perl installation

by premjhere (Initiate)
on Jul 29, 2002 at 03:10 UTC ( #185876=perlquestion: print w/ replies, xml ) Need Help??
premjhere has asked for the wisdom of the Perl Monks concerning the following question:

Monks,
i want to install mod_perl on Apache1.3 / Redhat linux 6.2
the installation document says to type
# perl Makefile.PL APACHE_SRC=../apache1.3/src DO_HTTPD=1 USE_APACI=1 +EVERYTHING=1
but i dont find any /apache1.3/src directory in my apache server.
apache is in /etc/httpd .
but no src directory here also.
when i tested a helloworld.cgi script on apache , it works fine.
so what should be the value of APACHE_SRC= ????
and moreover , i get the error
Can't locate LWP::UserAgent ......failed Can't locate LWP/MainLoop.pm

Do i need the LWP module to be installed ?
kindly help me monks.

Comment on problem in mod_perl installation
Select or Download Code
Re: problem in mod_perl installation
by fuzzyping (Chaplain) on Jul 29, 2002 at 03:22 UTC
    If you're not going to build Apache from scratch with mod_perl, you might as well just install mod_perl via rpm. There are rpm's for RedHat 6.2/mod_perl-1.21 available on the RedHat mirrors.

    -fp

    Update: Chmrr makes a good point in his post, but I'm not aware of any problems with the mod_perl rpm. I use it in many of my machines without any problems. Perhaps some more detail?
Re: problem in mod_perl installation
by Chmrr (Vicar) on Jul 29, 2002 at 03:25 UTC

    Contrary to what has been suggested elsewhere in this thread, I would not suggest using an rpm to install mod_perl; thisi s because the rpm installs mod_perl as a DSO, which has been shown to cause problems down the line.

    Yes, you will need LWP installed. After that -- well, ordinarily I'd suggest you peruse the most magnificent mod_perl Guide, but I've found something which is an order of magnitude easier -- Apache Toolbox. Just turn on the mod_perl option in the menu, sit back, and relax. 95% of the time, that's all that it'll take. Give it a try.

    If you decide not to to that, my only guess is that the directory is not called apache_1.3, but apache_1.3.xx, Take a gander at the getting your feet wet section of the Guide for more details.

    Update: In answer to fuzzyping, check out the pros and cons of using DSO, as well as the section on using RPM to install mod_perl. See this message (and reply) sent on the mod_perl list today for a real-world example of DSO causing havoc with mod_perl. Other sources confirm this; however, I thought there was something more specific in the Guide warning about the dangers of DSO, but I can't seem to find it now.

    perl -pe '"I lo*`+$^X$\"$]!$/"=~m%(.*)%s;$_=$1;y^`+*^e v^#$&V"+@( NO CARRIER'

      While I can appreciate the effort you've put into researching this, I can't identify with the drawbacks of mod_perl DSO vs. the advantages/conveniences of running them. Particularly if you're not having any problems with them at all. The worst disadvantage I could pull out of the guide is probably the 20% slowdown at server startup. So what?

      With respect to the rest of the guide cons, most of those are very platform-specific, and don't sound applicable to Linux. As far as the mod_perl-list thread is concerned, the reader lays it out there... yes, it appears this individual may be having problems with DSO and mod_perl, but the alternative is to compile Apache without any DSO support? Come on!

      It appears that you're applying a handful of individual's specific problems to the whole DSO bunch. I run DSO's pretty religiously without any problems (granted, I'm also not hosting anything with serious volume), as well as thousands of other folks out there.

      Again, just my $0.02. Feel free to disagree. :)

      -fp
        As far as the mod_perl-list thread is concerned, the reader lays it out there... yes, it appears this individual may be having problems with DSO and mod_perl, but the alternative is to compile Apache without any DSO support? Come on!

        Ahem. ;>

        This "mod_perl DSO == bad" approach that I am coming from is not so much the result of an evening of research, but more the result of over a year lurking on the mod_perl lists. You are not the first to challenge that most of the eviednce against DSOs is anecdotal -- again, see the list.

        Also just my two cents. Personally, I have seen no reason not to compile it statically, and some personal experience with segfaults caused by mod_perl as a DSO. Hence, I will continue to err on the side of caution (and also speed :) and build mod_perl in statically.

        perl -pe '"I lo*`+$^X$\"$]!$/"=~m%(.*)%s;$_=$1;y^`+*^e v^#$&V"+@( NO CARRIER'

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://185876]
Approved by grinder
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (5)
As of 2014-11-26 03:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred Perl binaries come from:














    Results (161 votes), past polls