2016-10-10 2 views
0

RT4가 설치되어 작동합니다. 나는 지금 아파치 2와 RT를 실행하려고합니다. CentOS 6.8을 사용하고 있습니다.Apache2가있는 Request Tracker 4.4.1

현재 사용하는 방법은 상관 없습니다 : mod_perl, fastcgi 또는 fcgid. 그냥 작동하는지보고 싶습니다.

mod_perl config를 사용하면 아파치를 다시 시작할 때 오류가 발생합니다.

/etc/httpd/conf/httpd.conf 파일 :

<VirtualHost *:80> 
# This first-listed virtual host is also the default for *:80 
ServerName ittickets.domain.local 
AddDefaultCharset UTF-8 
    DocumentRoot "/opt/rt4/share/html" 
    <Location /rt> 
     <IfVersion >= 2.4> 
      Require all granted 
     </IfVersion> 
     <IfVersion < 2.4> 
      Order allow,deny 
      Allow from all 
     </IfVersion> 
     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> 

오류 :

Starting httpd: [8891] [Mon Oct 10 13:07:49 2016] [warning]: DBI connect('dbname=rt4;host=srv-db.domain.local','rt_user',...) failed: Can't connect to MySQL server on 'srv-db.domain.local' (13) at /usr/local/share/perl5/DBIx/SearchBuilder/Handle.pm line 105. (/usr/local/share/perl5/Carp.pm:169) 

RT couldn't connect to the database where tickets are stored. 
If this is a new installation of RT, you should visit the URL below 
to configure RT and initialize your database. 

If this is an existing RT installation, this may indicate a database 
connectivity problem. 

The error RT got back when trying to connect to your database was: 

Connect Failed Can't connect to MySQL server on 'srv-db.domain.local' (13) 
at /opt/rt4/sbin/../lib/RT.pm line 216. 

[8891] [Mon Oct 10 13:07:50 2016] [warning]: DBI connect('dbname=rt4;host=srv-db.domain.local','rt_user',...) failed: Can't connect to MySQL server on 'srv-db.domain.local' (13) at /usr/local/share/perl5/DBIx/SearchBuilder/Handle.pm line 105. (/usr/local/share/perl5/Carp.pm:169) 

는하지만, rt_user와 데이터베이스에 연결 문제가 없습니다. 내가 http://ittickets.domain.local을 방문하는 경우

, 나는이 메시지 :

You're almost there! 
You haven't yet configured your webserver to run RT. You appear to have installed RT's web interface correctly, but haven't yet configured your web server to "run" the RT server which powers the web interface. The next step is to edit your webserver's configuration file to instruct it to use RT's mod_perl or FastCGI handler. If you need commercial support, please contact us at [email protected] 

RT의 구성 /opt/rt4/etc/RT_SiteConfig.pm : 나는 인터넷에서 발견 된 모든 구성을 시도

Set($rtname, 'domain.local'); 
Set($Organization, 'ittickets.domain.local'); 
Set($WebPort, 80); 
Set($WebDomain, 'ittickets.domain.local'); 
Set($WebPath, '/rt'); 
Set(@ReferrerWhitelist, qw(ittickets.domain.local)); 

### MYSQL Config 
Set($DatabaseType, "mysql"); 
Set($DatabaseHost, "srv-db.domain.local"); 
Set($DatabaseRTHost, "srv-rt.domain.local"); 
Set($DatabasePort, ""); 
Set($DatabaseUser, "rt_user"); 
Set($DatabasePassword, q{xxxxxxxxxxx}); 
Set($DatabaseName, q{rt4}); 

. 나는 내가 뭘 잘못했는지 이해하지 못한다. 누군가 힌트를 주어도 될까요?

답변

0

SeLinux 때문에 mysql에 연결 문제가있는 것 같습니다.

setsebool -P httpd_can_network_connect=1이 작업을 수행했습니다.

아직 문제가 있습니다. 거의 다 됐습니다.

관련 문제