[rt-users] RT4.0.7 apache config question

Daksh Chauhan daksh at olemiss.edu
Wed Oct 31 14:32:30 EDT 2012


Hello all,

We have RT 4.0.7 installed on SLES11-SP2 64-bit



Following is package version:
This is perl, v5.10.0 built for x86_64-linux-thread-multi
mysql  Ver 14.12 Distrib 5.0.96, for suse-linux-gnu (x86_64) using  EditLine wrapper
apache2-2.2.12-1.30.1
apache2-mod_perl-2.0.4-40.19





After the installation, ran script (/opt/rt4/sbin/rt-server) to configure RT and it worked well!



Note, we are running RT on port 8081, and see following in: /opt/rt4/etc/RT_SiteConfig.pm
Set( $DatabasePort, '8081' );





Now, I am trying to configure apache using following (/etc/apache2/vhosts.d/rt.conf):
---------------------------
<VirtualHost *:8081>
        ### Optional apache logs for RT
        # Ensure that your log rotation scripts know about these files
        ServerName my.server.name
        ErrorLog /var/log/rt4/apache2.error
        TransferLog /var/log/rt4/apache2.access
        LogLevel debug

        AddDefaultCharset UTF-8
        DocumentRoot "/opt/rt4/share/html"

        <Location />
            Order allow,deny
            Allow from all

            SetHandler modperl
            PerlResponseHandler Plack::Handler::Apache2
            PerlSetVar psgi_app /opt/rt4/sbin/rt-server
        </Location>
        <Perl>
            use Plack::Handler::Apache2;
            Plack::Handler::Apache2->preload("/opt/rt4/sbin/rt-server");
        </Perl>
</VirtualHost>
---------------------------

When I try to start apache, I get following error:

---------------------------
#
Starting httpd2 (prefork) Syntax OK
[Wed Oct 31 18:12:14 2012] [critical]: Undefined subroutine &main:: called.
END failed--call queue aborted. (/opt/rt4/sbin/../lib/RT.pm:341)
Undefined subroutine &main:: called.
END failed--call queue aborted.

The command line was:
/usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf         failed

---------------------------



If I simply run the script (/opt/rt4/sbin/rt-server), RT works fine on port 8081

Have spent some time on google to resolve this error, but not getting anywhere.



Anyone has any ideas or have seen this before?

Thanks!


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20121031/3fe48b1c/attachment.htm>


More information about the rt-users mailing list