Subject: Re: apache 1.3 crashing when I enable PERL?
To: Gilles Gravier <Gilles@Gravier.org>
From: Francisco Valladolid Hdez. <ficovh@yahoo.com>
List: netbsd-users
Date: 04/23/2007 08:56:59
--- Gilles Gravier <Gilles@Gravier.org> wrote:

> Got it! Thanks!
> 
> Now that all is setup, I find that the software I'm
> trying to use and 
> that is designed for AMPP is acutally all built to
> be hosted on 
> Windows... so looks like I'm going to have to do a
> lot of re-writing to 
> get it to run.
> 

Grarrrr!, .. at least you learned to setup NAMP y
NetBSD

;-)


> But at least, now, I can open .pl files from my web
> server!
> 
> Thanks,
> Gilles.
> 
> Francisco Valladolid Hdez. wrote:
> > --- Gilles Gravier <Gilles@Gravier.org> wrote:
> >
> >   
> >> Thanks!
> >>
> >> Just the
> >>
> >> PKG_OPTIONS.perl = -threads
> >>
> >> in /etc/mk.conf and make update in the pkgsrc
> perl
> >> directory generated a 
> >> multi-hour rebuild of about evrything in my
> machine!
> >>
> >> But it solved the problem!
> >>
> >> So now Apache starts with PERL enabled...
> >>
> >>     
> >
> > Great!
> >
> >   
> >> But when I try to open a .pl URL, I get :
> >>
> >> "You don't have permission to access /index.pl on
> >> this server"... 
> >> Strange... I can get php pages to work fine.
> >>
> >> Any ideas of what I'm doin gwrong?
> >>
> >>     
> > ummmm!, .. where is putting your perl scripts ?
> >
> > Maybe you must put it in a separate directory such
> as
> > /perl/ or /cgi-perl/ using Location directive and
> > chmod 755 for files eg:
> >
> >   PerlModule Apache::Registry 
> >   Alias /perl/ /usr/pkg/httpd/perl/ 
> >   <Location /perl>
> >     SetHandler perl-script 
> >     PerlHandler Apache::Registry 
> >     PerlSendHeader On 
> >     Options +ExecCGI
> >   </Location> 
> >
> > if you want use a perl script as you web page
> default,
> > then you maybe want add some Rewrite  Rules for do
> it.
> >
> > Regards.
> >
> >
> >   
> >> Gilles
> >>
> >> Peter Eisch wrote:
> >>     
> >>> I'm still using the config for current builds
> that
> >>>       
> >> I found works through
> >>     
> >>> trial and error a year or two ago.  I'm
> including
> >>>       
> >> the pertinent excerpts
> >>     
> >>> from my /etc/mk.conf in hopes that it's useful:
> >>>
> >>> APACHE_MPM = prefork
> >>> PKG_OPTIONS.perl = -threads
> >>> PKG_OPTIONS.apache = suexec
> >>> PKG_OPTIONS.ap-php = ssl
> >>> PKG_OPTIONS.ap2-php5 = ssl
> >>>
> >>> I've ended up at this because I couldn't get
> >>>       
> >> mod_perl (1.3 or 2.0) to be at
> >>     
> >>> all stable or useful in any configuration other
> >>>       
> >> than the above.  If apache
> >>     
> >>> has threads enabled by default, then you're good
> >>>       
> >> to go.  Is there a way to
> >>     
> >>> ask apache if it's threading is on?
> >>>
> >>> peter
> >>>
> >>> On 4/21/07 9:53 AM, "Gilles Gravier"
> >>>       
> >> <Gilles@Gravier.org> wrote:
> >>     
> >>>   
> >>>       
> >>>> Thanks, Francisco.
> >>>>
> >>>> Actually, the question should be "how do I
> enable
> >>>>         
> >> threads in Apache"? :)
> >>     
> >>>> Gilles.
> >>>>
> >>>> Francisco Valladolid Hdez. wrote:
> >>>>     
> >>>>         
> >>>>> --- Wouter Schoot <wouter@schoot.org> wrote:
> >>>>>
> >>>>>   
> >>>>>       
> >>>>>           
> >>>>>> Gilles Gravier schreef:
> >>>>>>     
> >>>>>>         
> >>>>>>             
> >>>>>>> PERL 5 is already built on my system... so I
> >>>>>>>               
> >> go to
> >>     
> >>>>>>>       
> >>>>>>>           
> >>>>>>>               
> >>>>>> ap-perl and make
> >>>>>>     
> >>>>>>         
> >>>>>>             
> >>>>>>> install...
> >>>>>>>       
> >>>>>>> LoadModule perl_module lib/httpd/mod_perl.so
> >>>>>>> <Files ~ "\.pl$">
> >>>>>>>   PerlHandler         Apache::Registry
> >>>>>>>   PerlSendHeader      On
> >>>>>>>   SetHandler          perl-script
> >>>>>>>   Options             +ExecCGI
> >>>>>>> </Files>
> >>>>>>>       
> >>>>>>> bash-3.2# /etc/rc.d/apache start
> >>>>>>> [1]   Abort trap (core dumped) ${HTTPD}
> -DSSL
> >>>>>>> /usr/pkg/sbin/apachectl startssl: httpd
> could
> >>>>>>>               
> >> not
> >>     
> >>>>>>>       
> >>>>>>>           
> >>>>>>>               
> >>>>>> be started
> >>>>>>     
> >>>>>>         
> >>>>>>             
> >>>>>>> bash-3.2#
> >>>>>>>       
> >>>>>>>           
> >>>>>>>               
> >>>>>> Hey,
> >>>>>>
> >>>>>> This is exactly what I encountered a few
> weeks
> >>>>>>             
> >> back
> >>     
> >>>>>> which costs me a night
> >>>>>> of trouble. I orgininally suspected it to be
> my
> >>>>>> flacky config (NetBSD 2
> >>>>>> userland, NetBSD 4_BETA2 kernel (for my raid
> >>>>>>             
> >> chipset
> >>     
> >>>>>> support)), and PHP
> >>>>>> with apache 1.3 is no problem, but when I
> added
> >>>>>>             
> >> perl
> >>     
> 
=== message truncated ===


--- 
Therefore, if anyone is in Christ, he is a new creation; the old has gone, the new has come! - 2 Corinthians 5:17 (NIV)
-----------------------------------
Francisco Valladolid Hdez.
http://blog.bsdguy.net - http://flickr.com/photos/sigueme/

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com