<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style id="owaParaStyle">P {
MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px
}
</style>
</head>
<body fPStyle="1" ocsi="0">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">
<p>Hello all,</p>
<p>We have RT<a></a> 4.0.7 installed on SLES11-SP2<a></a> 64-bit</p>
<p> </p>
<p>Following is package version:<br>
This is perl<a></a>, v5.10.0<a></a> built for x86_64<a></a>-linux<a></a>-thread-multi<br>
mysql<a></a> Ver<a></a> 14.12 Distrib<a></a> 5.0.96, for suse<a></a>-linux<a></a>-gnu (x86_64<a></a>) using EditLine<a></a> wrapper<br>
apache2<a></a>-2.2.12-1.30.1<br>
apache2<a></a>-mod_perl<a></a>-2.0.4-40.19</p>
<p> </p>
<p> </p>
<p>After the installation, ran script (/opt/rt4<a></a>/sbin<a></a>/rt<a></a>-server) to configure RT<a></a> and it worked well!</p>
<p> </p>
<p>Note, we are running RT<a></a> on port 8081, and see following in: /opt/rt4<a></a>/etc/RT_SiteConfig.pm<a></a><br>
Set( $DatabasePort<a></a>, '8081' );</p>
<p> </p>
<p> </p>
<p>Now, I am trying to configure apache using following (/etc/apache2<a></a>/vhosts.d<a></a>/rt.conf<a></a>):<br>
---------------------------<br>
<VirtualHost<a></a> *:8081><br>
### Optional apache logs for RT<a></a><br>
# Ensure that your log rotation scripts know about these files<br>
ServerName<a></a> my.server.name<a></a><br>
ErrorLog<a></a> /var<a></a>/log/rt4<a></a>/apache2.error<a></a><br>
TransferLog<a></a> /var<a></a>/log/rt4<a></a>/apache2.access<a></a><br>
LogLevel<a></a> debug</p>
<p> AddDefaultCharset<a></a> UTF<a></a>-8<br>
DocumentRoot<a></a> "/opt/rt4<a></a>/share/html"</p>
<p> <Location /><br>
Order allow,deny<a></a><br>
Allow from all</p>
<p> SetHandler<a></a> modperl<a></a><br>
PerlResponseHandler<a></a> Plack<a></a>::Handler::Apache2<a></a><br>
PerlSetVar<a></a> psgi_app<a></a> /opt/rt4<a></a>/sbin<a></a>/rt<a></a>-server<br>
</Location><br>
<Perl><br>
use Plack<a></a>::Handler::Apache2<a></a>;<br>
Plack<a></a>::Handler::Apache2<a></a>->preload("/opt/rt4<a></a>/sbin<a></a>/rt<a></a>-server");<br>
</Perl><br>
</VirtualHost<a></a>><br>
---------------------------</p>
<p><br>
When I try to start apache, I get following error:</p>
<p>---------------------------<br>
#<br>
Starting httpd2<a></a> (prefork<a></a>) Syntax OK<br>
[Wed Oct 31 18:12:14 2012] [critical]: Undefined subroutine &main:: called.<br>
END failed--call queue aborted. (/opt/rt4<a></a>/sbin<a></a>/../lib/RT.pm:341<a></a>)<br>
Undefined subroutine &main:: called.<br>
END failed--call queue aborted.</p>
<p>The command line was:<br>
/usr<a></a>/sbin<a></a>/httpd2-prefork<a></a> -f /etc/apache2<a></a>/httpd.conf<a></a> failed</p>
<p>---------------------------</p>
<p> </p>
<p>If I simply run the script (/opt/rt4<a></a>/sbin<a></a>/rt<a></a>-server), RT<a></a> works fine on port 8081</p>
<p>Have spent some time on google<a></a> to resolve this error, but not getting anywhere.</p>
<p> </p>
<p>Anyone has any ideas or have seen this before?</p>
<p>Thanks!</p>
<p> </p>
</div>
</body>
</html>