Cannot start RT/httpd with Apache2 and mod_perl2

I was trying to reinstall RT so that it can run on apache2 with mod_perl 2 on a FreeBSD machine. I am getting the following error on restarting the apache Daemon:

[Tue Apr 18 11:41:14 2006] [error] Can’t locate Apache2.pm in @INC (@INC contains: /opt/rt3/local/lib /opt/rt3/lib /usr/local/lib/perl5/site_perl/5.8.6/mach /usr/local/lib/perl5/site_perl/5.8.6
/usr/local/lib/perl5/site_perl /usr/local/lib/perl5/5.8.6/BSDPAN /usr/local/lib/perl5/5.8.6/mach
/usr/local/lib/perl5/5.8.6 . /usr/local/apache2) at (eval 197) line 3.\n

I had modified the httpd.conf by adding these lines

<VirtualHost 194.133.122.58>
ServerName coc.telone.co.zw
ServerAdmin sgapu@telone.co.zw
Alias /rt3 “/opt/rt3/share/html”
PerlModule Apache::DBI
PerlModule Apache2 Apache::compat
PerlRequire /opt/rt3/bin/webmux.pl
<Directory /opt/rt3/share/html>
AllowOverride All
Options ExecCGI FollowSymLinks

Order allow,deny
Allow from all

 <Location /rt3>

RewriteEngine On

    RedirectMatch permanent (.*)/$ $1/index.html
    AddDefaultCharset UTF-8
    SetHandler perl-script
    PerlHandler RT::Mason
 </Location> 
ErrorLog logs/coc.telone.co.zw-errors         

CustomLog logs/dummy-host.example.com-access_log common

Can anyone assist?????????

Kind regards,

Sternford GapuFrom: Steffen Poulsen
To: Thomas Knoezinger
Cc: rt-users@lists.bestpractical.com
Sent: Thursday, April 06, 2006 3:49 PM
Subject: Re: [rt-users] Problem creating initial rt3 database in mysql,DBD::mysql::db prepare warning:

Installing an earlier version of DBD-mysql got me past the login screen

  • hope this issue won’t cause any surprises later on! :slight_smile:

emerge -p --oneshot =DBD-mysql-3.0002

// Steffen

Thomas Knoezinger wrote:

Hello Steffen,

have the same issue. Tested with debian with out this issue. Seems to be a
gentoo only issue. You can find some email about this issue. I have no idea
till now.
Even last comment to try running apache with mpm_worker is not solving the
issue.

Thanks,
Thomas

Thomas Knoezinger wrote:

P.S: Please let me know if you installation of rt is eating a lot of
memory even for prompting login page.

Seems like it’s finally getting to run, after mason was compiled for
modperl support :slight_smile:

But you’re right, it only managed to show the login-page once -
subsequent requests just puts this in apache error log:

Out of memory!
Callback called exit.

Any ideas?

// Steffen, Denmark

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

We’re hiring! Come hack Perl for Best Practical: Careers — Best Practical Solutions

Guys, I don’t know where you take this apache+MP2 config, but it’s wrong!

<VirtualHost 194.133.122.58>
ServerName coc.telone.co.zw
ServerAdmin sgapu@telone.co.zw

 ErrorLog logs/coc.telone.co.zw-errors

CustomLog logs/dummy-host.example.com-access_log common

 DocumentRoot /opt/rt3/share/html
 <Directory /opt/rt3/share/html>
    <IfModule mod_access.c>
       Order allow,deny
       Allow from all
    </IfModule>
 </Directory>

this is optional, try without it first

PerlModule Apache::DBI

 PerlRequire /opt/rt3/bin/webmux.pl

 <Location /rt3/>
    AddDefaultCharset UTF-8
    SetHandler perl-script
    PerlHandler RT::Mason
 </Location>

On 4/18/06, Stern sternford.gapu@telone.co.zw wrote:

I was trying to reinstall RT so that it can run on apache2 with mod_perl 2
on a FreeBSD machine. I am getting the following error on restarting the
apache Daemon:

[Tue Apr 18 11:41:14 2006] [error] Can’t locate Apache2.pm in @INC (@INC
contains: /opt/rt3/local/lib /opt/rt3/lib
/usr/local/lib/perl5/site_perl/5.8.6/mach
/usr/local/lib/perl5/site_perl/5.8.6
/usr/local/lib/perl5/site_perl
/usr/local/lib/perl5/5.8.6/BSDPAN
/usr/local/lib/perl5/5.8.6/mach
/usr/local/lib/perl5/5.8.6 . /usr/local/apache2) at (eval 197) line 3.\n

I had modified the httpd.conf by adding these lines

<VirtualHost 194.133.122.58>
ServerName coc.telone.co.zw
ServerAdmin sgapu@telone.co.zw
Alias /rt3 “/opt/rt3/share/html”
PerlModule Apache::DBI
PerlModule Apache2 Apache::compat
PerlRequire /opt/rt3/bin/webmux.pl
<Directory /opt/rt3/share/html>
AllowOverride All
Options ExecCGI FollowSymLinks

Order allow,deny
Allow from all

 <Location /rt3>

RewriteEngine On

    RedirectMatch permanent (.*)/$ $1/index.html
    AddDefaultCharset UTF-8
    SetHandler perl-script
    PerlHandler RT::Mason
 </Location>
ErrorLog logs/coc.telone.co.zw-errors

CustomLog logs/dummy-host.example.com-access_log common

Can anyone assist???

Kind regards,

Sternford Gapu


From: Steffen Poulsen
To: Thomas Knoezinger
Cc: rt-users@lists.bestpractical.com
Sent: Thursday, April 06, 2006 3:49 PM
Subject: Re: [rt-users] Problem creating initial rt3 database in
mysql,DBD::mysql::db prepare warning:

Installing an earlier version of DBD-mysql got me past the login screen

  • hope this issue won’t cause any surprises later on! :slight_smile:

emerge -p --oneshot =DBD-mysql-3.0002

// Steffen

Thomas Knoezinger wrote:

Hello Steffen,

have the same issue. Tested with debian with out this issue. Seems to be a
gentoo only issue. You can find some email about this issue. I have no idea
till now.
Even last comment to try running apache with mpm_worker is not solving the
issue.

Thanks,
Thomas

On Thursday 06 April 2006 13:44, Steffen Poulsen wrote:

Thomas Knoezinger wrote:

P.S: Please let me know if you installation of rt is eating a lot of
memory even for prompting login page.

Seems like it’s finally getting to run, after mason was compiled for
modperl support :slight_smile:

But you’re right, it only managed to show the login-page once -
subsequent requests just puts this in apache error log:

Out of memory!
Callback called exit.

Any ideas?

// Steffen, Denmark


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

We’re hiring! Come hack Perl for Best Practical:
Careers — Best Practical Solutions


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

We’re hiring! Come hack Perl for Best Practical:
Careers — Best Practical Solutions

Best regards, Ruslan.

It looks very similar to my config and very similar to the installation
guide:

http://wiki.bestpractical.com/index.cgi?FedoraCore4InstallGuide

What is the right way if it is wrong. I am in a similar boat with the
“Youre Almost There” page.

I had this problem in the past, but was able to resolve it, but for
whatever reason, Im having problems.

I posted my config a few days ago, but got no replies.

-RFrom: rt-users-bounces@lists.bestpractical.com
[mailto:rt-users-bounces@lists.bestpractical.com] On Behalf Of Ruslan
Zakirov
Sent: Friday, April 21, 2006 9:10 AM
To: Stern
Cc: rt-users@lists.bestpractical.com; ccTLD workshop; Thomas Knoezinger
Subject: Re: [rt-users] Cannot start RT/httpd with Apache2 and mod_perl2

Guys, I don’t know where you take this apache+MP2 config, but it’s
wrong!

<VirtualHost 194.133.122.58>
ServerName coc.telone.co.zw
ServerAdmin sgapu@telone.co.zw

 ErrorLog logs/coc.telone.co.zw-errors

CustomLog logs/dummy-host.example.com-access_log common

 DocumentRoot /opt/rt3/share/html
 <Directory /opt/rt3/share/html>
    <IfModule mod_access.c>
       Order allow,deny
       Allow from all
    </IfModule>
 </Directory>

this is optional, try without it first

PerlModule Apache::DBI

 PerlRequire /opt/rt3/bin/webmux.pl

 <Location /rt3/>
    AddDefaultCharset UTF-8
    SetHandler perl-script
    PerlHandler RT::Mason
 </Location>

I have just completed upgrading from RT 3.0.1 to RT 3.4.5, My supervisor has asked me to show the priority level sorted from lowest to highest. I also noticed some diffrences on the layout of the main screen.

RT 3.0.1 (layout left most part of the screen)
10 highest priority tickets I own…
10 highest priority tickets I requested…
10 longest-neglected high-priority tickets…

RT 3.4.5 (layout left most part of the screen)
10 highest priority tickets I own
10 newest unowned tickets

Are the “10 highest priority tickets I requested…” and “10 longest-neglected high-priority tickets…” custom templates, or is there a way to configure this from within the program interface it self? Also changing how the sort takes place, again is this a custom mod or am i just missing some configuration tool?

Thanks In Advance
Winn Johnston

Celebrate Earth Day everyday! Discover 10 things you can do to help slow climate change. Yahoo! Earth Day

I have found the custom files on old RT 3.0.1 they are located in /local/html/Elements. I tried just copying the files to the new 3.4.5 local/html/Elements directory, however that directory does not exist. So i created it, but i can’t figure out how to activate them. Any ideas would be appreciated.

Thanks
winn johnstonWinn Johnston winn_johnston@yahoo.com wrote:
I have just completed upgrading from RT 3.0.1 to RT 3.4.5, My supervisor has asked me to show the priority level sorted from lowest to highest. I also noticed some diffrences on the layout of the main screen.

RT 3.0.1 (layout left most part of the screen)
10 highest priority tickets I own…
10 highest priority tickets I requested…
10 longest-neglected high-priority tickets…

RT 3.4.5 (layout left most part of the screen)
10 highest priority tickets I own
10 newest unowned tickets

Are the “10 highest priority tickets I requested…” and “10 longest-neglected high-priority tickets…” custom templates, or is there a way to configure this from within the program interface it self? Also changing how the sort takes place, again is this a custom mod or am i just missing some configuration tool?

Thanks In Advance
Winn Johnston

Celebrate Earth Day everyday! Discover 10 things you can do to help slow climate change. Yahoo! Earth Day

No sure about the first part of your question however to change the sort
order and the number of tickets shown edit the the RT_SiteConfig file in the
etc directory of the install folder.

Set($MyTicketsLength, 20);
Set($MyRequestsLength, 20);

Change 20 to whatever amount you like…

as for the sort order I am not sure… I know you can change it, you will
have to modify one of the template I am pretty sure.On 4/21/06, Winn Johnston winn_johnston@yahoo.com wrote:

I have found the custom files on old RT 3.0.1 they are located in
/local/html/Elements. I tried just copying the files to the new
3.4.5local/html/Elements directory, however that directory does not
exist. So i
created it, but i can’t figure out how to activate them. Any ideas would be
appreciated.

Thanks
winn johnston

Winn Johnston <winn_johnston@yahoo.com > wrote:

I have just completed upgrading from RT 3.0.1 to RT 3.4.5, My supervisor has
asked me to show the priority level sorted from lowest to highest. I also
noticed some diffrences on the layout of the main screen.

RT 3.0.1 (layout left most part of the screen)
10 highest priority tickets I own…
10 highest priority tickets I requested…
10 longest-neglected high-priority tickets…

RT 3.4.5 (layout left most part of the screen)
10 highest priority tickets I own
10 newest unowned tickets

Are the “10 highest priority tickets I requested…” and “10
longest-neglected high-priority tickets…
” custom templates, or is there a
way to configure this from within the program interface it self? Also
changing how the sort takes place, again is this a custom mod or am i just
missing some configuration tool?

Thanks In Advance
Winn Johnston

Celebrate Earth Day everyday! Discover 10 things you can do to help slow
climate change. Yahoo! Earth
Dayhttp://us.rd.yahoo.com/mail_us/taglines/earthday/*http://earth.yahoo.com

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

We’re hiring! Come hack Perl for Best Practical: