[rt-users] Reqest Tracker CentOS 5.3 setup

jmoseley at corp.xanadoo.com jmoseley at corp.xanadoo.com
Mon Apr 27 11:04:36 EDT 2009

Yes, I got both messages...  Moving on.

Next step is setting up the mysql database.

3. If you already haven't done so, set a root password for your mysql
server - from a root prompt do (make sure mysqld is running):

mysqladmin -u root password <root_password>

(don't include the <> in the actual shell command above nor the syntax

a) Next, we have to set up the /opt/rt3/etc/RT_SiteConfig.pm file.  Edit
and put in appropriate settings for your setup:

Set($DatabasePassword , 'rt_user password');
Set($LogToSyslog    , 'info');
Set($LogToFile      , 'warning');
Set($LogStackTraces , 1);
Set($Organization , "change to your Organization's name");
Set($rtname, 'example.com');
Set($Timezone , 'US/Central');
Set($WebPath , "/rt");
Set($WebBaseURL , "http://yourserver.name.com");
Set($WebImagesURL , $WebPath . "/NoAuth/images/");
Set($LogDir, '/var/log');
Set($LogToFileNamed , "rt.log");    #log to rt.log
Set($PreferRichText, 1);

(Note, make a new password for the rt_user password above - separate from
the root mysql password)

b) Create the database:

/opt/rt3/sbin/rt-setup-database --action init --dba root --dba-password

c).  I can't remember if the rt-setup-database init procedure above
actually creates the 'rt_user' db user, sets the password, prvileges, etc.
If for some reason it does not, from a mysql prompt do:


Replace <password> to match your RT_SiteConfig.pm password.

4. We've already actually setup the RT_SiteConfig.pm file, so we can move
on to settping up Apache and mail.

a) In this example we will be using mod_fcgid, an alternative to mod_perl
and Apache's mod_fastcgi.  Both mod_fcgid and mod_perl are available via
standard CentOS yum repositories.  At this time, I don't believe there is
an example of the mod_fcgid Apache config on the RT installation wiki.
Create and save /etc/httpd/conf.d/rt3.conf with the following:

LoadModule fcgid_module modules/mod_fcgid.so

# Use FastCGI to process .fcg .fcgi & .fpl scripts
# Don't do this if mod_fastcgi is present, as it will try to do the same
<IfModule !mod_fastcgi.c>
  AddHandler fcgid-script fcg fcgi fpl

# Sane place to put sockets and shared memory file
SocketPath run/mod_fcgid
SharememPath run/fcgid_shm

# Main instance
Alias /rt/NoAuth/images/ /opt/rt3/share/html/NoAuth/images/
ScriptAlias /rt /opt/rt3/bin/mason_handler.fcgi/

b) Restart Apache

/etc/init.d/httpd restart

c) To setup the mailgate (in order to create/update tickets via email),
edit your /etc/aliases file and add the following aliases:

rt: "|/opt/rt3/bin/rt-mailgate --queue general --action correspond --url
rt-comment: "|/opt/rt3/bin/rt-mailgate --queue general --action comment
--url http://yourserver.name.com/rt/"

Obviously, you can change the alias names to whatever you want and as you
add queues, you'll want to add aliases for each queue.  Edit the URL
setting to match your server.

NOTE: The above entries will work with Postfix.  If you are using sendmail,
a few more configuration changes will be needed.  Sendmail examples can be
found in various CentOS, Redhat, and Fedora installation guiedes in the
main Wiki.

5. Lastly, test your configuration by pointing a browser at:

I believe the default login is 'root' with 'password' as the password.

Good luck!

James Moseley

Grant Deters <gdeters at usd250.org> wrote:

OK, got that far, has a bit of trouble with XML::RSS, however, I was able
to pull it from the web.

More information about the rt-users mailing list