You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by angie ahl <an...@gmail.com> on 2005/04/27 14:08:22 UTC
ModPerl2, Apache2, FreeBSD, ports and missing ModPerl::Registry
Hi Folks.
I've just got a new server running DirectAdmin on FreeBSD 5.3. I'm
brand new to FreeBSD apart from its similarity to OS X, which I use
all the time.
I upgraded to Perl 5.8.5 using a package:
pkg_add -r perl5.8
Then I upgraded to Apache2 and ModPerl1.99 as per the instructions successfully.
http://www.directadmin.com/features.php?id=441
running under cgi mode everything is fine, no problems loading server etc.
when I try and run in proper mod_perl mode the problems start. ie
using the ModPerl::Registry as a handler.
As per the MP2 getting started guide I've added the following to a
sites httpd.conf file:
Alias /perl/ /home/angie/domains/domain.dom/public_html/perl/
<Location /perl/>
SetHandler perl-script
PerlResponseHandler ModPerl::Registry
PerlOptions +ParseHeaders
Options +ExecCGI
</Location>
I Restarted directadmin & apache and loaded hello world script under /perl/.
I get an ISE and the errorlog says
ModPerl::Registry': Can't locate ModPerl/Registry.pm in @INC
so it is calling ModPerl::Registry but can't find it in @INC, but to
make things stranger, I have a cgi script called perldigger that gives
you a system overview and it says ModPerl::Registry is there, as does
the list of installed perl modules under the users admin in
directadmin.
Huh?
It's definately running Apache2:
Apache/2.0.52 (Unix) mod_perl/1.99_17-dev Perl/v5.8.5 PHP/4.3.11
mod_ssl/2.0.52 OpenSSL/0.9.7d
and hello world Runs fine under cgi mode.
Anyone seen this one before?... so close, so easily, rats.
TIA
Angie
Re: ModPerl2, Apache2, FreeBSD, ports and missing ModPerl::Registry
Posted by Stas Bekman <st...@stason.org>.
angie ahl wrote:
> Is there any specific reason I should go up to .22 now?
Yes, you must do that. Please see: http://perl.apache.org/docs/2.0/rename.html
> I'd like to try and stick to the ports if possible but if needs must
> I'll manually compile.
>
> Angie
>
> On 4/27/05, Stas Bekman <st...@stason.org> wrote:
>
>>angie ahl wrote:
>>[...]
>>
>>>I get an ISE and the errorlog says
>>>
>>>ModPerl::Registry': Can't locate ModPerl/Registry.pm in @INC
>>>
>>>so it is calling ModPerl::Registry but can't find it in @INC, but to
>>>make things stranger, I have a cgi script called perldigger that gives
>>>you a system overview and it says ModPerl::Registry is there, as does
>>>the list of installed perl modules under the users admin in
>>>directadmin.
>>>
>>>Huh?
>>>
>>>It's definately running Apache2:
>>>
>>>Apache/2.0.52 (Unix) mod_perl/1.99_17-dev Perl/v5.8.5 PHP/4.3.11
>>>mod_ssl/2.0.52 OpenSSL/0.9.7d
>>
>>Angie, please install mod_perl-1.999.22 (aka mp2.0-RC5) [1] and try again.
>>If still in trouble please submit a proper bug report as explained here:
>>http://perl.apache.org/bugs/. Thank you.
>>
>>[1] http://perl.apache.org/download/index.html
>>
>>--
>>__________________________________________________________________
>>Stas Bekman JAm_pH ------> Just Another mod_perl Hacker
>>http://stason.org/ mod_perl Guide ---> http://perl.apache.org
>>mailto:stas@stason.org http://use.perl.org http://apacheweek.com
>>http://modperlbook.org http://apache.org http://ticketmaster.com
>>
--
__________________________________________________________________
Stas Bekman JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide ---> http://perl.apache.org
mailto:stas@stason.org http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org http://ticketmaster.com
Re: ModPerl2, Apache2, FreeBSD, ports and missing ModPerl::Registry
Posted by angie ahl <an...@gmail.com>.
Is there any specific reason I should go up to .22 now?
I'd like to try and stick to the ports if possible but if needs must
I'll manually compile.
Angie
On 4/27/05, Stas Bekman <st...@stason.org> wrote:
> angie ahl wrote:
> [...]
> > I get an ISE and the errorlog says
> >
> > ModPerl::Registry': Can't locate ModPerl/Registry.pm in @INC
> >
> > so it is calling ModPerl::Registry but can't find it in @INC, but to
> > make things stranger, I have a cgi script called perldigger that gives
> > you a system overview and it says ModPerl::Registry is there, as does
> > the list of installed perl modules under the users admin in
> > directadmin.
> >
> > Huh?
> >
> > It's definately running Apache2:
> >
> > Apache/2.0.52 (Unix) mod_perl/1.99_17-dev Perl/v5.8.5 PHP/4.3.11
> > mod_ssl/2.0.52 OpenSSL/0.9.7d
>
> Angie, please install mod_perl-1.999.22 (aka mp2.0-RC5) [1] and try again.
> If still in trouble please submit a proper bug report as explained here:
> http://perl.apache.org/bugs/. Thank you.
>
> [1] http://perl.apache.org/download/index.html
>
> --
> __________________________________________________________________
> Stas Bekman JAm_pH ------> Just Another mod_perl Hacker
> http://stason.org/ mod_perl Guide ---> http://perl.apache.org
> mailto:stas@stason.org http://use.perl.org http://apacheweek.com
> http://modperlbook.org http://apache.org http://ticketmaster.com
>
Re: ModPerl2, Apache2, FreeBSD, ports and missing ModPerl::Registry
Posted by Stas Bekman <st...@stason.org>.
angie ahl wrote:
> I found the problem
>
> It seems that it was not using the Apache2 directory of modules, it
> seems that the missing mp2 modules were in there.
>
> 1 change to the httpd.conf fixed it.
>
> at the top of my vhost I put:
>
> PerlModule Apache2
>
> Then it found what it needed. This wasn't in the httpd.conf example in
> getting your feet wet for mp2
>
> http://perl.apache.org/docs/2.0/user/intro/start_fast.html
>
> Should it be there, is it required or is there something wrong with my setup?
>
> I also had a page that had the -wT switch on the first line which gave an error:
> can't locate Apache::Warn if I remember correctly. getting rid of the
> switch and putting in use strict; use warnings; fixed that, but
> thought I should mention it for the archive in case anyone finds this
> in the future following the same set up.
The docs are correct for RC5 (they aren't for older unsupported versions).
Install that and everything will work as documented.
--
__________________________________________________________________
Stas Bekman JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide ---> http://perl.apache.org
mailto:stas@stason.org http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org http://ticketmaster.com
Re: ModPerl2, Apache2, FreeBSD, ports and missing ModPerl::Registry
Posted by angie ahl <an...@gmail.com>.
I found the problem
It seems that it was not using the Apache2 directory of modules, it
seems that the missing mp2 modules were in there.
1 change to the httpd.conf fixed it.
at the top of my vhost I put:
PerlModule Apache2
Then it found what it needed. This wasn't in the httpd.conf example in
getting your feet wet for mp2
http://perl.apache.org/docs/2.0/user/intro/start_fast.html
Should it be there, is it required or is there something wrong with my setup?
I also had a page that had the -wT switch on the first line which gave an error:
can't locate Apache::Warn if I remember correctly. getting rid of the
switch and putting in use strict; use warnings; fixed that, but
thought I should mention it for the archive in case anyone finds this
in the future following the same set up.
Cheers
Angie
On 4/27/05, Stas Bekman <st...@stason.org> wrote:
> angie ahl wrote:
> [...]
> > I get an ISE and the errorlog says
> >
> > ModPerl::Registry': Can't locate ModPerl/Registry.pm in @INC
> >
> > so it is calling ModPerl::Registry but can't find it in @INC, but to
> > make things stranger, I have a cgi script called perldigger that gives
> > you a system overview and it says ModPerl::Registry is there, as does
> > the list of installed perl modules under the users admin in
> > directadmin.
> >
> > Huh?
> >
> > It's definately running Apache2:
> >
> > Apache/2.0.52 (Unix) mod_perl/1.99_17-dev Perl/v5.8.5 PHP/4.3.11
> > mod_ssl/2.0.52 OpenSSL/0.9.7d
>
> Angie, please install mod_perl-1.999.22 (aka mp2.0-RC5) [1] and try again.
> If still in trouble please submit a proper bug report as explained here:
> http://perl.apache.org/bugs/. Thank you.
>
> [1] http://perl.apache.org/download/index.html
>
> --
> __________________________________________________________________
> Stas Bekman JAm_pH ------> Just Another mod_perl Hacker
> http://stason.org/ mod_perl Guide ---> http://perl.apache.org
> mailto:stas@stason.org http://use.perl.org http://apacheweek.com
> http://modperlbook.org http://apache.org http://ticketmaster.com
>
Re: ModPerl2, Apache2, FreeBSD, ports and missing ModPerl::Registry
Posted by Stas Bekman <st...@stason.org>.
angie ahl wrote:
[...]
> I get an ISE and the errorlog says
>
> ModPerl::Registry': Can't locate ModPerl/Registry.pm in @INC
>
> so it is calling ModPerl::Registry but can't find it in @INC, but to
> make things stranger, I have a cgi script called perldigger that gives
> you a system overview and it says ModPerl::Registry is there, as does
> the list of installed perl modules under the users admin in
> directadmin.
>
> Huh?
>
> It's definately running Apache2:
>
> Apache/2.0.52 (Unix) mod_perl/1.99_17-dev Perl/v5.8.5 PHP/4.3.11
> mod_ssl/2.0.52 OpenSSL/0.9.7d
Angie, please install mod_perl-1.999.22 (aka mp2.0-RC5) [1] and try again.
If still in trouble please submit a proper bug report as explained here:
http://perl.apache.org/bugs/. Thank you.
[1] http://perl.apache.org/download/index.html
--
__________________________________________________________________
Stas Bekman JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide ---> http://perl.apache.org
mailto:stas@stason.org http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org http://ticketmaster.com
Re: ModPerl2, Apache2, FreeBSD, ports and missing ModPerl::Registry
Posted by Tom Schindl <to...@gmx.at>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
angie ahl schrieb:
| Hi Folks.
|
| I've just got a new server running DirectAdmin on FreeBSD 5.3. I'm
| brand new to FreeBSD apart from its similarity to OS X, which I use
| all the time.
|
| I upgraded to Perl 5.8.5 using a package:
|
| pkg_add -r perl5.8
Why does freebsd don't use the stable 5.8.6 release?
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFCb6YckVPeOFLgZFIRAlJhAJ9Gwr7SaJR1/x3GUDG51lmzx6VbDgCgqILl
VAbHtXWXfnSydklaKPd0HY4=
=QYkd
-----END PGP SIGNATURE-----