Re: Culture shock
[prev]
[thread]
[next]
[Date index for 2005/04/18]
Thanx,
On 18 Apr 2005 at 9:42, Arshavir Grigorian wrote:
>
> LoadModule perl_module modules/mod_perl.so
I tried the IfModule from below as the LoadModule returned the error
that it was already loaded. Strange as there is not mention of
PerlModule in the conf file.
> http://perl.apache.org/docs/2.0/devel/core/apache_integration.html#Enabling_the_mod_perl_Module_and_Installing_its_Callbacks
>
> That said, RedHat (and other distributions for that matter) seem to
> always be behind in the versions of mod_perl that they ship. Since
> mod_perl is being constantly developed, you'd be better off getting the
> latest release from
> http://perl.apache.org/dist/mod_perl-2.0-current.tar.gz and building it
> yourself.
That would be ideal but its doesn't look easy. My first attempt gave
me the error:
"Cannot install mod_perl/1.999.22 on top of mod_perl/1.99_16 due to a
major API change between mod_perl 1.999_21 and 1.999_22. Please nuke
the prior mod_perl installation from your site_lib..."
So I did, built mod_perl-2 RC5, and restarted httpd and got:
"seg fault or similar nasty error detected in the parent process"
No more Apache!! I think require a new mail to the list!
> > 2) Given the above, and the fact I have Apache::Const,
> > Apache::RequestRec..etc instead of Apache::Request and family
> > installed, am I now using mod_perl 2?
> >
> > 3) configtest used to throw up perl errors but will now happily
> > report syntax ok even when i put some glaring typos in my scripts -
> > is that normal? Or is there something missing in my httpd.conf that I
> > need to add to get the scripts checked at apache restarts.
> In order for Apache to test/load your Perl code on startup, you need to
> have startup file that loads all your (or other - e.g. CGI) modules,
> which you then tell Apache to execute when it starts up:
>
> PerlRequire /usr/local/apache2/conf/startup.pl
> Check out:
>
> http://perl.apache.org/docs/2.0/user/handlers/server.html#Startup_File
This worked.
> > At a guess I would say I am using mod_perl 2 and I need to put
> > something into the httpd to get 1 and 3 to work correctly but I don't
> >
> > know what. Can anyone advice me?
> >
> > Thanx.
> > Dp.
>
>
> --
> Arshavir Grigorian
> Systems Administrator/Engineer
> M-CAM, Inc.
>
~~
Dermot Paikkos * dermot@xxxxxxxxxxxx.xxx
Network Administrator @ Science Photo Library
Phone: 0207 432 1100 * Fax: 0207 286 8668