CentOS/linux rt4 and httpd help!!
I installed request tracker 4.0.6 on my centos 5 and I am not able to connect to rt's web interface. I tried to configure /etc/httpd/conf/httpd.conf script as follows:
<VirtualHost rt.axxentis.com>
### Optional apache logs for RT
# ErrorLog /opt/rt4/var/log/apache2.error
# TransferLog /opt/rt4/var/log/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>
# force rt over https always
RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteCond %{REQUEST_URI} rt
RewriteRule ^(.*)$ https://www.axxentis.com/$1 [R,L]
</VirtualHost>
When I run 'service httpd restart' to restart the webserver, I get the following error:
Stopping httpd: [FAILED]
Starting httpd: [Fri Sep 14 12:33:15 2012] [error] (EAI 2)Name or service not known: Could not resolve host name rt.axxentis.com -- ignoring!
Syntax error on line 975 of /etc/httpd/conf/httpd.conf:
Can't locate Log/Dispatch.pm in @INC (@INC contains: /opt/rt4/sbin/../local/lib /opt/rt4/sbin/../lib /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl /usr/lib/perl5/5.8.8/i386-linux-thread-multi /usr/lib/perl5/5.8.8 . /etc/httpd) at /opt/rt4/sbin/../lib/RT.pm line 181.\nBEGIN failed--compilation aborted at /opt/rt4/sbin/../lib/RT.pm line 181.\nCompilation failed in require at /opt/rt4/sbin/rt-server line 92.\n\t(in cleanup) Error while loading /opt/rt4/sbin/rt-server: Can't locate Log/Dispatch.pm in @INC (@INC contains: /opt/rt4/sbin/../local/lib /opt/rt4/sbin/../lib /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl /usr/lib/perl5/5.8.8/i386-linux-thread-multi /usr/lib/perl5/5.8.8 . /etc/httpd) at /opt/rt4/sbin/../lib/RT.pm line 181.\nBEGIN failed--compilation aborted at /opt/rt4/sbin/../lib/RT.pm line 181.\nCompilation failed in require at /opt/rt4/sbin/rt-server line 92.\n
[FAILED]
Here is what my /opt/rt4/etc/RT_SiteConfig.pm looks like
Set($rtname , "axxentis.com");
Set($Organization , "Axxentis");
Set($MinimumPasswordLength , "5");
Set($Timezone , 'US/Pacific');
Set($DatabaseType , 'mysql');
Set($DatabaseHost , 'localhost');
Set($DatabaseRTHost , 'localhost');
Set($DatabasePort , '');
Set($DatabaseUser , 'binladen123');
Set($DatabasePassword , 'binladen123');
Set($WebPath , "/rt");
#Set($WebDomain, "axxentis.com");
Set($WebPort , 443);
Set($WebBaseURL , "https://axxentis.com");
Set($WebURL , $WebBaseURL . $WebPath . "/");
Set($DatabaseName , 'rt4');
Set($RTAddressRegexp , '^rt(-\S+|-\S+-comment)?\@(www\.)?axxentis.com$');
Set($CorrespondAddress , 'no-reply@axxentis.com');
Set($CommentAddress , 'no-reply@axxentis.com');
|