You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Mr jeremy pennington <je...@yahoo.com> on 2004/11/04 22:50:55 UTC

Re: [mp2] Solaris: modperl/request_rec_tie_api.t failure

So either upgrade your perl and try again, or send us
the backtrace of the  core file:

I choose to upgrade perl to 5.8.5, which took care of
both of my make test failures. Therefore, make test
and install completed without errors. However, I am
trying to test the installion with the rock.pl
(http://perl.apache.org/docs/2.0/user/intro/start_fast.html
under Registry Scripts), but all I can get to show up
in a web browser is the code of this file. However, if
I run ./rock.pl for the command line, I do get the
correct output of "mod_perl 2.0 rocks!" 

Where the rock.pl file is located.
/usr/local/apache2/htdocs/users/metadot/metadot

What I added to httpd.conf
LoadModule perl_module modules/mod_perl.so
PerlModule Apache2
Alias /perl/
/usr/local/apache2/htdocs/users/metadot/metadot/
<Location /perl/>
SetHandler perl-script
PerlHandler ModPerl::Registry
PerlOptions +ParseHeaders
Options +ExecCGI
</Location>

The last few lines of the httpd error_log (restart
apache and then go to the website).

[Thu Nov 04 16:34:49 2004] [notice] SIGHUP received. 
Attempting to restart
[Thu Nov 04 16:34:49 2004] [info] Init: Initializing
OpenSSL library
[Thu Nov 04 16:34:49 2004] [info] Init: Seeding PRNG
with 0 bytes of entropy
[Thu Nov 04 16:34:49 2004] [info] Init: Generating
temporary RSA private keys (512/1024 bits)
[Thu Nov 04 16:34:52 2004] [info] Init: Generating
temporary DH parameters (512/1024 bits)
[Thu Nov 04 16:34:52 2004] [info] Init: Initializing
(virtual) servers for SSL
[Thu Nov 04 16:34:52 2004] [info] Server:
Apache/2.0.52, Interface: mod_ssl/2.0.52, Library: Op
enSSL/0.9.7b
[Thu Nov 04 16:34:52 2004] [notice] Apache/2.0.52
(Unix) mod_perl/1.99_17 Perl/v5.8.5 mod_ssl/2
.0.52 OpenSSL/0.9.7b PHP/4.3.2 configured -- resuming
normal operations
[Thu Nov 04 16:34:52 2004] [info] Server built: Nov  1
2004 13:52:31
[Thu Nov 04 16:34:52 2004] [debug] prefork.c(955):
AcceptMutex: fcntl (default: fcntl)
[Thu Nov 04 16:35:09 2004] [notice] SIGHUP received. 
Attempting to restart
[Thu Nov 04 16:35:10 2004] [info] Init: Initializing
OpenSSL library
[Thu Nov 04 16:35:10 2004] [info] Init: Seeding PRNG
with 0 bytes of entropy
[Thu Nov 04 16:35:10 2004] [info] Init: Generating
temporary RSA private keys (512/1024 bits)
[Thu Nov 04 16:35:14 2004] [info] Init: Generating
temporary DH parameters (512/1024 bits)
[Thu Nov 04 16:35:14 2004] [info] Init: Initializing
(virtual) servers for SSL
[Thu Nov 04 16:35:14 2004] [info] Server:
Apache/2.0.52, Interface: mod_ssl/2.0.52, Library: Op
enSSL/0.9.7b
[Thu Nov 04 16:35:14 2004] [notice] Apache/2.0.52
(Unix) mod_perl/1.99_17 Perl/v5.8.5 mod_ssl/2
.0.52 OpenSSL/0.9.7b PHP/4.3.2 configured -- resuming
normal operations
[Thu Nov 04 16:35:14 2004] [info] Server built: Nov  1
2004 13:52:31
[Thu Nov 04 16:35:14 2004] [debug] prefork.c(955):
AcceptMutex: fcntl (default: fcntl)

My apache is 2.0.52
Thanks for your quick response on my first post.

Jeremy


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

-- 
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html


Re: [mp2] Solaris: modperl/request_rec_tie_api.t failure

Posted by Stas Bekman <st...@stason.org>.
Stas Bekman wrote:
> [Jeremy, in the future please try to reply to the email in the thread, 
> to keep the messages together, to benefit other users who may have the 
> same problem. thank you]

Actually I wasn't right saying that, I just read the emails in the wrong 
order. sorry about that.

-- 
__________________________________________________________________
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

-- 
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html


Re: [mp2] Solaris: modperl/request_rec_tie_api.t failure

Posted by Stas Bekman <st...@stason.org>.
[Jeremy, in the future please try to reply to the email in the thread, to 
keep the messages together, to benefit other users who may have the same 
problem. thank you]

Mr jeremy pennington wrote:
> So either upgrade your perl and try again, or send us
> the backtrace of the  core file:
> 
> I choose to upgrade perl to 5.8.5, which took care of
> both of my make test failures. Therefore, make test
> and install completed without errors.

Cool. I assume that your perl wasn't real 5.6.1 when you had the original 
problem.

> However, I am
> trying to test the installion with the rock.pl
> (http://perl.apache.org/docs/2.0/user/intro/start_fast.html
> under Registry Scripts), but all I can get to show up
> in a web browser is the code of this file. However, if
> I run ./rock.pl for the command line, I do get the
> correct output of "mod_perl 2.0 rocks!" 
> 
> Where the rock.pl file is located.
> /usr/local/apache2/htdocs/users/metadot/metadot
> 
> What I added to httpd.conf
> LoadModule perl_module modules/mod_perl.so
> PerlModule Apache2
> Alias /perl/
> /usr/local/apache2/htdocs/users/metadot/metadot/
> <Location /perl/>
> SetHandler perl-script
> PerlHandler ModPerl::Registry
> PerlOptions +ParseHeaders
> Options +ExecCGI
> </Location>

1) Make sure that the file is executable (but ExecCGI and 
ModPerl::Registry should have taken care of it)

2) most likely you redefine either / or /perl/ namespace further following 
this config section in httpd.conf, which overrides the previous 
configuration. Try moving that section to the very end of the httpd.conf 
file and try again.

-- 
__________________________________________________________________
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

-- 
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html