LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-14-2012, 07:04 AM   #1
y_mullah
LQ Newbie
 
Registered: Sep 2012
Posts: 15

Rep: Reputation: Disabled
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');
 
Old 09-14-2012, 11:11 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,634

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by y_mullah View Post
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:

When I run 'service httpd restart' to restart the webserver, I get the following error:
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
Ok, did you read the errors you got? First, you've not defined the virtual host correctly, and it's telling you it can't resolve it. Second, it's telling you you're missing that Perl package, log:dispatch. Download it from CPAN, and install it:

http://search.cpan.org/~drolsky/Log-Dispatch-2.32/
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Re-installing httpd on CentOS 6.2 dazdaz Red Hat 9 03-19-2012 12:40 AM
CentOS 5 httpd upgrade vbsaltydog Red Hat 8 02-25-2011 05:56 AM
CentOS 5.3 - Too many httpd process sokha Linux - Server 7 03-12-2010 01:31 AM
How to Compile httpd-2.2.13 on CentOS 5.3? k_oudom Linux - Software 18 09-17-2009 02:23 AM
Unable to start apache on CentOS Linux with error Starting httpd: Syntax error on lin pkumar2533 Linux - Newbie 9 08-26-2009 07:48 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:41 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration