[prev in list] [next in list] [prev in thread] [next in thread]
List: rt-users
Subject: [rt-users] Apache2+mod_perl2 'server' method in Handler.pm
From: "Myers, Adam" <amyers () doubleclick ! net>
Date: 2005-09-29 19:11:08
Message-ID: 205D20196806AE41A9D8A9E982659E27013BB93A () THN-EXCLS2 ! dc1 ! doubleclick ! corp
[Download RAW message or body]
--===============0471751283==
Content-class: urn:content-classes:message
Content-Type: multipart/alternative;
boundary="----_=_NextPart_001_01C5C529.8BD98C62"
This is a multi-part message in MIME format.
I have recently installed RT 3.4.4 (Solaris 10, Apache2+mod_perl2,
remote Oracle host) and everything has been ok till now (of course it is
my last step). When I inserted my virtual host into my httpd.conf file
and tried to restart Apache, I got this error in the error_log:
[error]Can't locate object method "server" via package "Apache" at
/local/rt/lib/RT/Interface/Web/Handler.pm line 121.\nCompilation failed
in require at (eval 2) line 1.\n
The code where it errors (line 121) in Handler.pm is:
115 unless ( $RT::DatabaseType =~ /(?:mysql|Pg)/ ) {
116
117 # Clean up our umask to protect session files
118 umask(0077);
119
120 if ($CGI::MOD_PERL) {
121 chown( Apache->server->uid, Apache->server->gid,
122 $RT::MasonSessionDir )
123 if Apache->server->can('uid');
124 }
Is this because I am using Oracle so it does session handling with
Mason, and mod_perl2 does not have the 'server' method? Could I possible
hardcode the uid and gid in 'chown' with my Apache user and group? Do I
need another perl module or does mod_perl2 have a separate package and
method to getting uid and gid from mod_perl1?
Any help or info will be useful and greatly appreciated.
Thanks!
Adam
[Attachment #3 (text/html)]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.2722" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Arial size=2><SPAN class=783375218-29092005>I have recently
installed RT 3.4.4 (Solaris 10, Apache2+mod_perl2, remote Oracle host) and
everything has been ok till now (of course it is my last step). When I
inserted my virtual host into my httpd.conf file and tried to restart Apache, I
got this error in the error_log:</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT><FONT face=Arial><FONT size=2><STRONG><SPAN
class=783375218-29092005>[error]</SPAN>Can't locate object method "server" via
package "Apache" at /local/rt/lib/RT/Interface/Web/Handler.pm line 12<SPAN
class=783375218-29092005>1</SPAN>.\nCompilation failed in require at (eval 2)
line 1.\n</STRONG></FONT></FONT></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=783375218-29092005>The code where it
errors (line 121) in Handler.pm is:</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=783375218-29092005></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN
class=783375218-29092005>115 unless ( $RT::DatabaseType =~
/(?:mysql|Pg)/ ) {</SPAN></FONT></DIV>
<DIV><SPAN class=783375218-29092005><FONT face=Arial
size=2>116</FONT></SPAN></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=783375218-29092005>117 # Clean up our
umask to protect session files<BR>118
umask(0077);</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=783375218-29092005>119</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=783375218-29092005>120 if
($CGI::MOD_PERL)
{<BR>121 chown(
Apache->server->uid,
Apache->server->gid,<BR>122 \
$RT::MasonSessionDir
)<BR>123 if
Apache->server->can('uid');<BR>124 }</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=783375218-29092005></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=783375218-29092005>Is this because I am
using Oracle so it does session handling with Mason, and mod_perl2 does not have
the 'server' method? Could I possible hardcode the uid and gid in 'chown'
with my Apache user and group? Do I need another perl module or does
mod_perl2 have a separate package and method to getting uid and gid
from mod_perl1?</SPAN></FONT><FONT face=Arial size=2><SPAN
class=783375218-29092005> </SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=783375218-29092005></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=783375218-29092005>Any help or info
will be useful and greatly appreciated.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV align=left>
<DIV align=left><FONT face=Arial size=2><SPAN
class=783375218-29092005>Thanks!</SPAN></FONT></DIV>
<DIV align=left><FONT face=Arial size=2><SPAN
class=783375218-29092005>Adam</SPAN></FONT></DIV></DIV></BODY></HTML>
_______________________________________________
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users
Be sure to check out the RT Wiki at http://wiki.bestpractical.com
Buy your copy of our new book, RT Essentials, today!
Download a free sample chapter from http://rtbook.bestpractical.com
--===============0471751283==--
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic