Problem, cannot restart HTTPD

HI,

Did something and not sure what…:

[Tue Apr 08 09:00:00 2008] [error] \nRT couldn’t load RT config file
/opt/rt3/etc/RT_SiteConfig.pm as:\n user: root \n group:
root\n\nThe file is owned by user root and group apache. \n\nThis
usually means that the user/group your webserver is running\nas cannot
read the file. Be careful not to make the permissions\non this file too
liberal, because it contains database passwords.\nYou may need to put
the webserver user in the appropriate group\n(apache) or change
permissions be able to run succesfully.\n\nUndefined subroutine &RT::loc
called at /opt/rt3/etc/RT_SiteConfig.pm line 24.\nCompilation failed in
require at /opt/rt3/lib/RT.pm line 152.\nBEGIN failed–compilation
aborted at /opt/rt3/bin/webmux.pl line 78.\nCompilation failed in
require at (eval 2) line 1.\n

[Tue Apr 08 09:00:00 2008] [error] Can’t load Perl file:
/opt/rt3/bin/webmux.pl for server netnet-ems.protus.org:0, exiting…

The RT_* files are set as root:apache and the permission is set to 500

What do I need to do to get this file to run?

Nelson Pereira
Senior Network Administrator

Protus IP Solutions Inc.
npereira@protus.com
phone: 613.733.0000 ext.528
MyFax: 613.822.5083

Refer your friends and colleagues to MyFax!
Click here for more information.
http://www.myfax.com/referral_program.asp

http://www.myfax.com

“Undefined subroutine &RT::loc called at /opt/rt3/etc/RT_SiteConfig.pm
line 24”

is the isssue.On Apr 8, 2008, at 8:58 AM, Nelson Pereira wrote:

HI,

Did something and not sure what…:

[Tue Apr 08 09:00:00 2008] [error] \nRT couldn’t load RT config
file /opt/rt3/etc/RT_SiteConfig.pm as:\n user: root \n group:
root\n\nThe file is owned by user root and group apache. \n\nThis
usually means that the user/group your webserver is running\nas
cannot read the file. Be careful not to make the permissions\non
this file too liberal, because it contains database passwords.\nYou
may need to put the webserver user in the appropriate group
\n(apache) or change permissions be able to run succesfully.\n
\nUndefined subroutine &RT::loc called at /opt/rt3/etc/
RT_SiteConfig.pm line 24.\nCompilation failed in require at /opt/rt3/
lib/RT.pm line 152.\nBEGIN failed–compilation aborted at /opt/rt3/
bin/webmux.pl line 78.\nCompilation failed in require at (eval 2)
line 1.\n
[Tue Apr 08 09:00:00 2008] [error] Can’t load Perl file: /opt/rt3/
bin/webmux.pl for server netnet-ems.protus.org:0, exiting…

The RT_* files are set as root:apache and the permission is set to 500

What do I need to do to get this file to run?

Nelson Pereira
Senior Network Administrator

Protus IP Solutions Inc.
npereira@protus.com
phone: 613.733.0000 ext.528
MyFax: 613.822.5083
www.myfax.com

Refer your friends and colleagues to MyFax!
Click here for more information.
<image001.gif>


The rt-users Archives

Community help: http://wiki.bestpractical.com
Commercial support: sales@bestpractical.com

Discover RT’s hidden secrets with RT Essentials from O’Reilly Media.
Buy a copy at http://rtbook.bestpractical.com

PGP.sig (186 Bytes)

This says it all:

The RT_* files are set as root:apache and the permission is set to 500

How is the Apache process (running as user ‘apache’, I assume) supposed to
access your RT configs if they have no permissions to do so? Chmod those
files to 640 or something similar - that should fix your problem.

James Moseley

         "Nelson Pereira"                                              
         <npereira@protus.                                             
         com>                                                       To 
         Sent by:                  <rt-users@lists.bestpractical.com>  
         rt-users-bounces@                                          cc 
         lists.bestpractic                                             
         al.com                                                Subject 
                                   [rt-users] Problem, cannot restart  
                                   HTTPD                               
         04/08/2008 07:58                                              
         AM                                                            

HI,

Did something and not sure what…:

[Tue Apr 08 09:00:00 2008] [error] \nRT couldn’t load RT config file
/opt/rt3/etc/RT_SiteConfig.pm as:\n user: root \n group: root\n\nThe
file is owned by user root and group apache. \n\nThis usually means that
the user/group your webserver is running\nas cannot read the file. Be
careful not to make the permissions\non this file too liberal, because it
contains database passwords.\nYou may need to put the webserver user in the
appropriate group\n(apache) or change permissions be able to run
succesfully.\n\nUndefined subroutine &RT::loc called at
/opt/rt3/etc/RT_SiteConfig.pm line 24.\nCompilation failed in require at
/opt/rt3/lib/RT.pm line 152.\nBEGIN failed–compilation aborted at
/opt/rt3/bin/webmux.pl line 78.\nCompilation failed in require at (eval 2)
line 1.\n
[Tue Apr 08 09:00:00 2008] [error] Can’t load Perl file:
/opt/rt3/bin/webmux.pl for server netnet-ems.protus.org:0, exiting…

The RT_* files are set as root:apache and the permission is set to 500

What do I need to do to get this file to run?

Nelson Pereira (Embedded image moved to file:
Senior Network Administrator pic26500.gif)www.MyFax.com

Protus IP Solutions Inc.
npereira@protus.com
phone: 613.733.0000 ext.528
MyFax: 613.822.5083
www.myfax.com

Refer your friends and colleagues to
MyFax!
Click here for more information.

http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: sales@bestpractical.com

Discover RT’s hidden secrets with RT Essentials from O’Reilly Media.
Buy a copy at http://rtbook.bestpractical.com

Ok that seems to have fixed the issue…

But that line (I commented it out for now) is

Set($LogoAltText, loc(“company Solutions, RT Network Services Ticket
System”));

What is wrong with this line? This was taken from the documentation…

Refer your friends and colleagues to MyFax!
Click here for more information. www.MyFax.comFrom: Jesse Vincent [mailto:jesse@bestpractical.com]
Sent: Tuesday, April 08, 2008 9:01 AM
To: Nelson Pereira
Cc: rt-users@lists.bestpractical.com
Subject: Re: [rt-users] Problem, cannot restart HTTPD

“Undefined subroutine &RT::loc called at /opt/rt3/etc/RT_SiteConfig.pm
line 24”

is the isssue.

Ok that seems to have fixed the issue…

But that line (I commented it out for now) is

Set($LogoAltText, loc(“company Solutions, RT Network Services Ticket
System”));

What is wrong with this line? This was taken from the documentation…

What documentation?

In this case, the problem is that even if it worked, that “loc” would
be run as the config file is loaded, which would get a single string
returned.

Do you really want to localize the alt text?

PGP.sig (186 Bytes)

http://wiki.bestpractical.com/view/ChangeLogo-----Original Message-----
From: Jesse Vincent [mailto:jesse@bestpractical.com]
Sent: Tuesday, April 08, 2008 9:35 AM
To: Nelson Pereira
Cc: rt-users@lists.bestpractical.com
Subject: Re: [rt-users] Problem, cannot restart HTTPD

On Apr 8, 2008, at 9:13 AM, Nelson Pereira wrote:

Ok that seems to have fixed the issue…

But that line (I commented it out for now) is

Set($LogoAltText, loc(“company Solutions, RT Network Services Ticket
System”));

What is wrong with this line? This was taken from the documentation…

What documentation?

In this case, the problem is that even if it worked, that “loc” would
be run as the config file is loaded, which would get a single string
returned.

Do you really want to localize the alt text?

Sounds like the wiki is wrong. Would you mind correcting it once you
get this sorted?On Apr 8, 2008, at 9:36 AM, Nelson Pereira wrote:

ChangeLogo - Request Tracker Wiki

-----Original Message-----
From: Jesse Vincent [mailto:jesse@bestpractical.com]
Sent: Tuesday, April 08, 2008 9:35 AM
To: Nelson Pereira
Cc: rt-users@lists.bestpractical.com
Subject: Re: [rt-users] Problem, cannot restart HTTPD

On Apr 8, 2008, at 9:13 AM, Nelson Pereira wrote:

Ok that seems to have fixed the issue…

But that line (I commented it out for now) is

Set($LogoAltText, loc(“company Solutions, RT Network Services Ticket
System”));

What is wrong with this line? This was taken from the
documentation…

What documentation?

In this case, the problem is that even if it worked, that “loc” would
be run as the config file is loaded, which would get a single string
returned.

Do you really want to localize the alt text?

PGP.sig (186 Bytes)

I Don’t even know how to fix it…
Tried different things but did’nt help…

It’s useful to know what you’ve tried. What have you tried?

[please keep rt-users cced]

remove the loc() from around the string.

PGP.sig (186 Bytes)