Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Perl > Perl Misc > Mod_Perl / Apache Issue

Reply
Thread Tools

Mod_Perl / Apache Issue

 
 
Jane
Guest
Posts: n/a
 
      11-02-2007
Hi,

This relates to both perl and Apache. I have previously posted to the
Apache group but without getting any response. Hence, since this
relates to both Perl and Apache, I'm hoping someone here can help, or
suggest where I may obtain some help.

My machine died and I'm setting up a new Windows XP box, trying to
emulate the old setup I had, with Apache 2.0 and mod_perl. Everything
used to work fine, but now I've had to download and re-install
everything from scratch.

So, Apache 2.0 is installed and working fine. Download/installed
mod_perl, both via ppm command line, and also via the interface. No
apparent problems during installation either way, but still the same
problem results.

Set up in httpd.conf is as follows (also tried syntax as
Apache::Registry as well):

<Location /cgi2>
SetHandler perl-script
PerlHandler ModPerl::Registry
PerlSendHeader on
Options ExecCGI
</Location>

Also have the following couple of lines:

LoadFile "C:/Perl/bin/perl58.dll"
LoadModule perl_module modules/mod_perl.so


Apache is installed on drive D.

Active State Perl 5.8 is installed on drive C.

Running everything normally (ie. not trying to use mod_perl, by simply
remming out the cgi2 location) works fine.

However, as soon as I try to use mod_perl, I end up with all sorts of
errors in the Apache error log, per below (beginning at the very first
error):

[Thu Nov 01 16:37:41 2007] [error] failed to resolve handler
`ModPerl::Registry'
[Thu Nov 01 16:37:41 2007] [error] [client 127.0.0.1] unknown Apache::
constant EXIT at C:/Perl/site/lib/ModPerl/Const.pm line 52.
BEGIN failed--compilation aborted at C:/Perl/site/lib/ModPerl/
RegistryCooker.pm line 48.
Compilation failed in require at (eval 2) line 3.
...propagated at C:/Perl/lib/base.pm line 91.
BEGIN failed--compilation aborted at C:/Perl/site/lib/ModPerl/
Registry.pm line 26.
Compilation failed in require at (eval 1) line 3.

I seem to have tried everything, but cannot figure this out. I've
successfully installed it on a couple of machines previously, and have
never before seen these errors.

Any information to assist me would be much appreciated.

Thanks!
Jane

 
Reply With Quote
 
 
 
 
Mirco Wahab
Guest
Posts: n/a
 
      11-02-2007
Jane wrote:
> However, as soon as I try to use mod_perl, I end up with all sorts of
> errors in the Apache error log, per below (beginning at the very first
> error):


Did you

- install the correct Apache2-version and the
corresponding mod_perl2-version (how can you tell?)

- remeber that actual Apache 2.2.6 won't work
simply "out of the box" on Windows?


Regards

M.
 
Reply With Quote
 
 
 
 
J. Gleixner
Guest
Posts: n/a
 
      11-02-2007
Jane wrote:
> Hi,
>
> This relates to both perl and Apache. I have previously posted to the
> Apache group but without getting any response. Hence, since this
> relates to both Perl and Apache, I'm hoping someone here can help, or
> suggest where I may obtain some help.
>
> My machine died and I'm setting up a new Windows XP box, trying to
> emulate the old setup I had, with Apache 2.0 and mod_perl. Everything
> used to work fine, but now I've had to download and re-install
> everything from scratch.

[...]

> I seem to have tried everything, but cannot figure this out. I've
> successfully installed it on a couple of machines previously, and have
> never before seen these errors.
>
> Any information to assist me would be much appreciated.


http://perl.apache.org/help/index.html
 
Reply With Quote
 
Jane
Guest
Posts: n/a
 
      11-02-2007
Hi,

In response to Micro Wahab, above, then, as indicated, I'm using
Apache 2.0.x, not Apache 2.2.x. The mod_perl download was simply a
choice between a version for Apache 2.0.x and one for Apache 2.2.x, so
I chose the former.

In response to J. Gleixner, then okay, that looks like a useful
link ... I'll check that out. Thx.

Meantime, if anyone else has actually experienced this problem, or can
suggest possible solutions, then please still feel free to add
comments.

Many thanks,
Jane

 
Reply With Quote
 
nolo contendere
Guest
Posts: n/a
 
      11-02-2007
On Nov 2, 12:55 pm, Jane <superman...@hotmail.com> wrote:
> Hi,
>
> In response to Micro Wahab, above, then, as indicated, I'm using
> Apache 2.0.x, not Apache 2.2.x. The mod_perl download was simply a
> choice between a version for Apache 2.0.x and one for Apache 2.2.x, so
> I chose the former.
>
> In response to J. Gleixner, then okay, that looks like a useful
> link ... I'll check that out. Thx.
>
> Meantime, if anyone else has actually experienced this problem, or can
> suggest possible solutions, then please still feel free to add
> comments.
>
> Many thanks,
> Jane


http://perl.apache.org/download/index.html

The above link states that mod_perl 2.0 is for use with Apache 2.0.x/
2.2.x.

 
Reply With Quote
 
Jane
Guest
Posts: n/a
 
      11-02-2007
>
> http://perl.apache.org/download/index.html
>
> The above link states that mod_perl 2.0 is for use with Apache 2.0.x/
> 2.2.x.- Hide quoted text -
>
> - Show quoted text -



Well, on the ppm installer there are a couple of downloads, and it
says:

mod_perl-2.0 - Embed a Perl interpreter in the Apache/2.0 HTTP server

mod_perl - Embed a Perl interpreter in the Apache/2.2 HTTP server

.... so I chose the former. (don't forget this is on Windows).


Thanks,
Jane



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
mod_perl installed, but mod_perl.so file not created bennett@peacefire.org Perl Misc 2 01-25-2006 10:53 PM
starting apache with mod_perl, error on Apache.pm Selmar Perl Misc 2 07-21-2004 09:53 PM
mod_perl, apache Matija Papec Perl Misc 4 04-24-2004 09:21 PM
mod_perl 1.99 apache 2.0.48 Lionel Valero Perl Misc 1 11-10-2003 05:44 PM
mod_perl / Apache problem David Perl Misc 6 10-11-2003 03:18 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57