Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: ModPerl: ModPerl

upgrading mod perl

 

 

ModPerl modperl RSS feed   Index | Next | Previous | View Threaded


hulya.gurer at varianinc

Jul 20, 2005, 12:26 PM

Post #1 of 2 (215 views)
Permalink
upgrading mod perl

Hello,

My system runs on Solaris 8, perl 5.8.3. I am upgrading the Apache from 2.49 to 2.54
with "./configure --prefix=/usr/local/apache2 --with-mpm=prefork --enable-mods-shared=all --disable-auth_digest"

and mod_perl 1.99_13 to mod_perl 2.0.1 with
" perl Makefile.PL MP_AP_PREFIX=/usr/local/apache2, and mod_perl"

In the beginning, it complained about the previous installation, then I renamed the Apache2 directory and the Apache2.pm,
but despite having no errors on the installation, it never created the Apache2.pm. Eventually, when I tried to start
the apache with mod_perl, this is what I got on the error_log,

[Tue Jul 19 19:53:08 2005] [error] Can't locate Apache2.pm in @INC (@INC contains: /usr/local/lib/perl5/site_perl/5.8.3/sun4-solaris-thread-multi /usr/local/lib/perl5/site_perl/5.8.3 /usr/local/lib/perl5/5.8.3/sun4-solaris-thread-multi /usr/local/lib/perl5/5.8.3 /usr/local/lib/perl5/site_perl/5.8.3/sun4-solaris-thread-multi /usr/local/lib/perl5/site_perl/5.8.3 /usr/local/lib/perl5/site_perl . /usr/local/apache2) at /usr/local/apache2/perl/startup.pl line 25.\nBEGIN failed--compilation aborted at /usr/local/apache2/perl/startup.pl line 25.\nCompilation failed in require at (eval 2) line 1.\n
[Tue Jul 19 19:53:08 2005] [error] Can't load Perl file: /usr/local/apache2/perl/startup.pl for server giant.server.com:0, exiting...
[Tue Jul 19 19:55:34 2005] [error] Undefined subroutine &XSLoader::load called at /usr/local/lib/perl5/site_perl/5.8.3/sun4-solaris-thread-multi/Apache2/APR/XSLoader.pm line 30.\nCompilation failed in require at /usr/local/lib/perl5/site_perl/5.8.3/sun4-solaris-thread-multi/Apache2/Apache/compat.pm line 49.\nBEGIN failed--compilation aborted at /usr/local/lib/perl5/site_perl/5.8.3/sun4-solaris-thread-multi/Apache2/Apache/compat.pm line 49.\nCompilation failed in require at /usr/local/apache2/perl/startup.pl line 31.\nBEGIN failed--compilation aborted at /usr/local/apache2/perl/startup.pl line 31.\nCompilation failed in require at (eval 2) line 1.\n
[Tue Jul 19 19:55:34 2005] [error] Can't load Perl file: /usr/local/apache2/perl/startup.pl for server giant.server.com:0, exiting...
[Tue Jul 19 19:57:04 2005] [error] Can't locate mod_perl.pm in @INC (@INC contains: /usr/local/lib/perl5/site_perl/5.8.3/sun4-solaris-thread-multi /usr/local/lib/perl5/site_perl/5.8.3 /usr/local/lib/perl5/5.8.3/sun4-solaris-thread-multi /usr/local/lib/perl5/5.8.3 /usr/local/lib/perl5/site_perl/5.8.3/sun4-solaris-thread-multi /usr/local/lib/perl5/site_perl/5.8.3 /usr/local/lib/perl5/site_perl . /usr/local/apache2) at /usr/local/lib/perl5/site_perl/5.8.3/sun4-solaris-thread-multi/Apache/compat.pm line 39.\nBEGIN failed--compilation aborted at /usr/local/lib/perl5/site_perl/5.8.3/sun4-solaris-thread-multi/Apache/compat.pm line 39.\nCompilation failed in require at (eval 3) line 3.\n
[Tue Jul 19 19:57:04 2005] [error] Can't load Perl module Apache::compat for server giant.server.com:0, exiting..

Seemed like, all the modules it was looking for were there except Apache2.pm. So, I wonder if there is any other conflicting file
somewhere that prevents the installation place some files.

I have also read that the PerlHandler directive with some other directives deprecated configuration directives won't be recognized
by Apache, how should I take care of the PerlHandler, anything needs to be added on the installation or httpd.conf?

Thanks much,
Hulya


pgollucci at p6m7g8

Jul 20, 2005, 12:32 PM

Post #2 of 2 (195 views)
Permalink
Re: upgrading mod perl [In reply to]

Hulya Gurer wrote:

>
> Hello,
>
> My system runs on Solaris 8, perl 5.8.3. I am upgrading the Apache
> from 2.49 to 2.54
> with "./configure --prefix=/usr/local/apache2 --with-mpm=prefork
> --enable-mods-shared=all --disable-auth_digest"
>
> and mod_perl 1.99_13 to mod_perl 2.0.1 with
> " perl Makefile.PL MP_AP_PREFIX=/usr/local/apache2, and mod_perl"
>
> In the beginning, it complained about the previous installation, then
> I renamed the Apache2 directory and the Apache2.pm,
> but despite having no errors on the installation, it never created the
> Apache2.pm. Eventually, when I tried to start
> the apache with mod_perl, this is what I got on the error_log,

Read this:
http://perl.apache.org/docs/2.0/rename.html

Apache2.pm doesn't exist anymore.

FYI, you're code is going to break unless you change it after this upgrade.

--
END
---------------------------------------------------------
What doesn't kill us can only make us stronger.
Nothing is impossible.

Philip M. Gollucci (pgollucci [at] p6m7g8) 301.254.5198
Consultant / http://p6m7g8.net/Resume/resume.shtml
Senior Developer / Liquidity Services, Inc.
http://www.liquidityservicesinc.com
http://www.liquidation.com
http://www.uksurplus.com
http://www.govliquidation.com
http://www.gowholesale.com

ModPerl modperl RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.