<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://rt-wiki.bestpractical.com/index.php?action=history&amp;feed=atom&amp;title=Upgrading_RT_3.6.5_on_Ubuntu_to_3.8.7</id>
	<title>Upgrading RT 3.6.5 on Ubuntu to 3.8.7 - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://rt-wiki.bestpractical.com/index.php?action=history&amp;feed=atom&amp;title=Upgrading_RT_3.6.5_on_Ubuntu_to_3.8.7"/>
	<link rel="alternate" type="text/html" href="https://rt-wiki.bestpractical.com/index.php?title=Upgrading_RT_3.6.5_on_Ubuntu_to_3.8.7&amp;action=history"/>
	<updated>2026-08-22T01:37:00Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.41.1</generator>
	<entry>
		<id>https://rt-wiki.bestpractical.com/index.php?title=Upgrading_RT_3.6.5_on_Ubuntu_to_3.8.7&amp;diff=4084&amp;oldid=prev</id>
		<title>Admin: 3 revisions imported</title>
		<link rel="alternate" type="text/html" href="https://rt-wiki.bestpractical.com/index.php?title=Upgrading_RT_3.6.5_on_Ubuntu_to_3.8.7&amp;diff=4084&amp;oldid=prev"/>
		<updated>2016-04-06T20:39:38Z</updated>

		<summary type="html">&lt;p&gt;3 revisions imported&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&lt;br /&gt;
&lt;br /&gt;
Hello everyone! This might not help many people, but hopefully it&amp;#039;ll keep someone from having to go through the rigemerole I went through in order to upgrade my system.&lt;br /&gt;
&lt;br /&gt;
Here&amp;#039;s the scenario. Our original RT server was running on Ubuntu 8.04 and RT was installed from the repositories as 3.6.5 for ease of setup. Also the documentation on setting it up for that specific environment was really well put together.&lt;br /&gt;
&lt;br /&gt;
The issue is that now we&amp;#039;re up to Ubuntu 10.10 and 3.8 is in the repositories. You can&amp;#039;t upgrade the Ubuntu 8.04 system via APT because only 3.6 exists in the repositories. Thus the problem I ran into.&lt;br /&gt;
==&amp;#039;&amp;#039;&amp;#039;Assumptions&amp;#039;&amp;#039;&amp;#039;==&lt;br /&gt;
#&amp;#039;&amp;#039;You have an existing 8.04 server (or earlier) with a working 3.6.5 (or earlier) RT install&amp;#039;&amp;#039;&lt;br /&gt;
#&amp;#039;&amp;#039;You have (or can create) a Ubuntu 10.04 server&amp;#039;&amp;#039;&lt;br /&gt;
#&amp;#039;&amp;#039;You have an internet connection and some time&amp;#039;&amp;#039;&lt;br /&gt;
#&amp;#039;&amp;#039;You have a username and password for the RT Database (or root)&amp;#039;&amp;#039;&lt;br /&gt;
#&amp;#039;&amp;#039;You have shell access to the server we&amp;#039;re working with&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==&amp;#039;&amp;#039;&amp;#039;Overview of Process&amp;#039;&amp;#039;&amp;#039;==&lt;br /&gt;
This document will be broken up into sections by step to give you a general overview of the process before we delve into the specifics. I would like to make sure you understand the steps we&amp;#039;re taking as well as perform them. Below is the list of steps we will take from start to finish:&lt;br /&gt;
#&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Setup 10.04 Server (&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Assuming one does not Exist)&lt;br /&gt;
#&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Install Request Tracker 3.8 on 10.04 Server&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
#&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Configure the RTDB database manually &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
#&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Configure RT and Apache&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
#&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Configure fetchmail for RT&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
#&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Dump 3.6.5 database&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
#&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Move 3.6.5 database to new server&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
#&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;import 3.6.5 database and perform upgrades&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
#&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Upgrade database schema&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
#&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Restart Apache and Get Working&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
#&amp;#039;&amp;#039;&amp;#039;Additional information&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===&amp;#039;&amp;#039;&amp;#039;Setup a 10.04 Server&amp;#039;&amp;#039;&amp;#039;===&lt;br /&gt;
If you already have a 10.04 server setup somewhere, then you can skip this step, but if you&amp;#039;re just starting the process you&amp;#039;ll have to build one. Obviously you&amp;#039;ll require the ISO which you can download from http://www.ubuntu.com. I always recommend building with a 64-bit image for scaleability, but you can use a x86 ISO if you so choose.&lt;br /&gt;
&lt;br /&gt;
During your installation, you can choose most of the defaults or specify your partitions as you desire, but the big thing to remember is that you will want to select the LAMP Stack Packages as well as OpenSSH (Primarily so you can access it remotely)&lt;br /&gt;
&lt;br /&gt;
Once the server is up and running, you&amp;#039;ll want to test MySQL to make sure it&amp;#039;s working. Only recommend doing this because I had a terrible time with my first few installations. For some reason, the daemon wouldn&amp;#039;t start. Gave it a fresh install and voila everything worked.&lt;br /&gt;
&lt;br /&gt;
To test this, you&amp;#039;ll have to have the root password you setup during the install. Issue the following command:&lt;br /&gt;
 mysql -u root -p&lt;br /&gt;
Enter the password you setup for the root user and if you see the following you&amp;#039;re good to go.&lt;br /&gt;
 Type &amp;#039;help;&amp;#039; or &amp;#039;\h&amp;#039; for help. Type &amp;#039;\c&amp;#039; to clear the buffer.&lt;br /&gt;
 &lt;br /&gt;
 mysql&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===&amp;#039;&amp;#039;&amp;#039;Install Request Tracker 3.8 on 10.04 Server&amp;#039;&amp;#039;&amp;#039;===&lt;br /&gt;
Now that you have the LAMP stack installed and verified, you have mostly everything you&amp;#039;ll need in order to get moving. First, we&amp;#039;ll go ahead and run an update to make sure the packages we have are up-to-date&lt;br /&gt;
 sudo apt-get update&lt;br /&gt;
Once that is complete, it can&amp;#039;t hurt to go ahead and performa a system upgrade (Not a distro upgrade). This will make sure all of the installed code is up to date.&lt;br /&gt;
 sudo apt-get upgrade&lt;br /&gt;
&amp;lt;br /&amp;gt;This may take a little bit, so you can feel free to go grab a cup of coffee or a sandwich, as it can take several minutes depending on your internet connection. Once it&amp;#039;s complete, however, we will go ahead and install RT 3.8 with the following command&lt;br /&gt;
 sudo apt-get install request-tracker3.8&lt;br /&gt;
request-tracker3.8 is a meta package containing all of the dependant child packages you will need for the base setup. (&amp;#039;&amp;#039;&amp;#039;Note that this does not include RTFM. I will go over how to install RTFM at the end of the document&amp;#039;&amp;#039;&amp;#039;)&lt;br /&gt;
&lt;br /&gt;
You will notice that it will download a literal crap-load of packages, but when it asks you whether you want the packages or not, say Yes. If I remember correctly, it may be close to 100 megabytes of data, so it might take a little bit.&lt;br /&gt;
&lt;br /&gt;
Once the download is complete, it will begin installing the packages and you will be prompted for two things:&lt;br /&gt;
#Allow the system to handle RT_SiteConfig.pm permissions ---- Say Yes&lt;br /&gt;
#Perform database setup with dbconfig-common --- &amp;#039;&amp;#039;&amp;#039;SAY NO&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
It is &amp;#039;&amp;#039;&amp;#039;very important&amp;#039;&amp;#039;&amp;#039; to say no to the second question. The default installation for 3.8 is diferent than it was in 3.6 which defaulted with a mysql connection. If you allow it to install with dbconfig-common, it will setup a sqlite database and will render mysql somewhat useless.&lt;br /&gt;
&lt;br /&gt;
For this reason we will setup the database (the basics) ourselves.&lt;br /&gt;
===&amp;#039;&amp;#039;&amp;#039;Configure the RT Database Manually&amp;#039;&amp;#039;&amp;#039;===&lt;br /&gt;
Don&amp;#039;t worry, even if you&amp;#039;ve never touched a database before, I&amp;#039;ll walk you through this so it won&amp;#039;t be too painful. in fact, you won&amp;#039;t really be doing much directly on the database unless you really want to.&lt;br /&gt;
&lt;br /&gt;
Once you&amp;#039;ve got RT installed, you&amp;#039;re going to want to navigate to the /usr/sbin directory and use a tool there called rt-setup-database.&lt;br /&gt;
 cd /usr/sbin&lt;br /&gt;
 &lt;br /&gt;
 ./rt-setup-database --action init --dba &amp;#039;&amp;#039;&amp;#039;root&amp;#039;&amp;#039;&amp;#039; --prompt-for-dba-password&lt;br /&gt;
I want to explain a little about what this does. The rt-setup-database function can be used to create the database or initialize it. Here, the nomenclature is a little misleading because all &amp;quot;create&amp;quot; does is create an empty database called rtdb. The init function is what actually populates it with all of the required data. If you start with the init function, it will create the database and then fill it performing everything we need at one step.&lt;br /&gt;
&lt;br /&gt;
I have bolded the &amp;#039;&amp;#039;&amp;#039;root&amp;#039;&amp;#039;&amp;#039; option in the code because you can use any other user that has access to the database if it exists. At this point though, honestly, it&amp;#039;s just as easy to use root.&lt;br /&gt;
&lt;br /&gt;
Once this process completes, your database will be completely setup, but we want to do one more thing where we will have to actually touch the database. RT will require a username and password with which to access the database, so we will create one.&lt;br /&gt;
&lt;br /&gt;
First, let&amp;#039;s get into the mysql command line the same as before:&lt;br /&gt;
 mysql -u root -p&lt;br /&gt;
&amp;lt;br /&amp;gt;Now that we&amp;#039;re in mysql we&amp;#039;re going to create a user called rtuser with password wibble to access the database. Of course you can always change these out for whatever you would like. I would avoid using root here though, because if anyone was able to exploit security in the RT web interface, they would have access to all databases on your server.&lt;br /&gt;
 grant all privileges on rtdb.* to &amp;#039;&amp;#039;&amp;#039;&amp;#039;rtuser&amp;#039;&amp;#039;&amp;#039;&amp;#039;@&amp;#039;localhost&amp;#039; identified by &amp;#039;&amp;#039;&amp;#039;&amp;#039;wibble&amp;#039;&amp;#039;&amp;#039;&amp;#039;;&lt;br /&gt;
 &lt;br /&gt;
 flush privileges;&lt;br /&gt;
As stated earlier, the bold sections can be changed out for your needs, rtuser being the username and wibble being the password. Run these commands one at a time (and don&amp;#039;t forget the &amp;quot;;&amp;quot; and once done, you can type &amp;quot;quit&amp;quot; to exit mysql.&lt;br /&gt;
&lt;br /&gt;
Now we&amp;#039;re ready to start configuring RT itself.&lt;br /&gt;
===&amp;#039;&amp;#039;&amp;#039;Configuring RT and Apache&amp;#039;&amp;#039;&amp;#039;===&lt;br /&gt;
The only thing we need to directly touch / configure for RT here is the RT_SiteConfig.pm file which you may or may not remember from your last setup. There are two &amp;#039;&amp;#039;&amp;#039;very important&amp;#039;&amp;#039;&amp;#039; things to keep in mind here.&lt;br /&gt;
#&amp;#039;&amp;#039;&amp;#039;Your RT Name MUST be the same as the one you will import later &amp;#039;&amp;#039;&amp;#039;(Your old 3.6.5 system)&lt;br /&gt;
#&amp;#039;&amp;#039;&amp;#039;Your Organization name MUST be the same as the one you will import later &amp;#039;&amp;#039;&amp;#039;(Your old 3.6.5 system)&lt;br /&gt;
Let&amp;#039;s say in your old RT_SiteConfig.pm file your RT name was &amp;quot;Request Tracker 3.6&amp;quot; and your Organization was &amp;quot;IT Support Co.&amp;quot; The new system you&amp;#039;re setting up now MUST also have the exact same RT names and organization names or your import of the database will not work.&lt;br /&gt;
&lt;br /&gt;
To keep you from worrying about all of the crazy info you might need in you config.pm file, here is a sample one:&lt;br /&gt;
 # This file was generated by running &amp;quot;update-rt-siteconfig-3.8&amp;quot;.&lt;br /&gt;
 #&lt;br /&gt;
 # While local modifications will not be overwritten without permission,&lt;br /&gt;
 # it is recommended the they are instead placed in&lt;br /&gt;
 # /etc/request-tracker3.8/RT_SiteConfig.d&lt;br /&gt;
 #&lt;br /&gt;
 # Note that modifications to the RT_SiteConfig.d directory won&amp;#039;t&lt;br /&gt;
 # take effect until the update command mentioned above is run again.&lt;br /&gt;
 &lt;br /&gt;
 # start /etc/request-tracker3.8/RT_SiteConfig.d/40-timezone&lt;br /&gt;
 # dynamically find out the current timezone&lt;br /&gt;
 my $zone = &amp;quot;UTC&amp;quot;;&lt;br /&gt;
 $zone=`/bin/cat /etc/timezone`&lt;br /&gt;
     if -f &amp;quot;/etc/timezone&amp;quot;;&lt;br /&gt;
 chomp $zone;&lt;br /&gt;
 Set($Timezone, $zone);&lt;br /&gt;
 # end   /etc/request-tracker3.8/RT_SiteConfig.d/40-timezone&lt;br /&gt;
 # start /etc/request-tracker3.8/RT_SiteConfig.d/50-debconf&lt;br /&gt;
 # THE BASICS:&lt;br /&gt;
 &lt;br /&gt;
 Set($rtname, &amp;#039;&amp;#039;&amp;#039;&amp;#039;RT Name&amp;#039;&amp;#039;&amp;#039;&amp;#039;);&lt;br /&gt;
 Set($Organization, &amp;#039;&amp;#039;&amp;#039;&amp;#039;Organization Name&amp;#039;&amp;#039;&amp;#039;&amp;#039;);&lt;br /&gt;
 &lt;br /&gt;
 Set($CorrespondAddress , &amp;#039;&amp;#039;&amp;#039;&amp;#039;correspond@youraddress.com&amp;#039;&amp;#039;&amp;#039;&amp;#039;);&lt;br /&gt;
 Set($CommentAddress , &amp;#039;&amp;#039;&amp;#039;&amp;#039;comment@youraddress.com&amp;#039;&amp;#039;&amp;#039;&amp;#039;);&lt;br /&gt;
 &lt;br /&gt;
 # THE WEBSERVER:&lt;br /&gt;
 &lt;br /&gt;
 Set($WebPath , &amp;quot;/rt&amp;quot;);&lt;br /&gt;
 Set($WebBaseURL , &amp;quot;http://&amp;#039;&amp;#039;&amp;#039;localhost&amp;#039;&amp;#039;&amp;#039;&amp;quot;);&lt;br /&gt;
 &lt;br /&gt;
 # end   /etc/request-tracker3.8/RT_SiteConfig.d/50-debconf&lt;br /&gt;
 # start /etc/request-tracker3.8/RT_SiteConfig.d/51-dbconfig-common&lt;br /&gt;
 # THE DATABASE:&lt;br /&gt;
 # generated by dbconfig-common&lt;br /&gt;
 &lt;br /&gt;
 # map from dbconfig-common database types to their names as known by RT&lt;br /&gt;
 Set($DatabaseType, &amp;#039;mysql&amp;#039;);&lt;br /&gt;
 Set($DatabaseHost, &amp;#039;localhost&amp;#039;);&lt;br /&gt;
 Set($DatabasePort, &amp;#039;&amp;#039;);&amp;#039;&amp;#039;&lt;br /&gt;
 &lt;br /&gt;
 Set($DatabaseUser , &amp;#039;&amp;#039;&amp;#039;&amp;#039;rtuser&amp;#039;&amp;#039;&amp;#039;&amp;#039;);&lt;br /&gt;
 Set($DatabasePassword , &amp;#039;&amp;#039;&amp;#039;&amp;#039;wibble&amp;#039;&amp;#039;&amp;#039;&amp;#039;);&lt;br /&gt;
 Set($DatabaseName, &amp;#039;rtdb&amp;#039;);&lt;br /&gt;
 Set($PreferRichText, 1);&lt;br /&gt;
 &lt;br /&gt;
 # end   /etc/request-tracker3.8/RT_SiteConfig.d/51-dbconfig-common&lt;br /&gt;
 1;&lt;br /&gt;
&amp;lt;br /&amp;gt;As mentioned before you will substitute your RT Name and Organization name into the config file in the noted locations. If you&amp;#039;re new to RT and are for some reason using this document as a &amp;quot;Getting started&amp;quot; reference, the Correspond Address will be whatever email address you want the user to see whenever an agent &amp;#039;&amp;#039;responds&amp;#039;&amp;#039; to a ticket. The Comment address is the one users will see when someone &amp;#039;&amp;#039;comments&amp;#039;&amp;#039; on a ticket. These are generally only seen on the inside.&lt;br /&gt;
&lt;br /&gt;
I have bolded &amp;#039;&amp;#039;&amp;#039;localhost&amp;#039;&amp;#039;&amp;#039; because you can use localhost or the FQDN (Fully Qualified Domain Name) of your server, or the IP Address of your server, whichever is more convenient. I always use the FQDN, but that&amp;#039;s because I have an internal domain.&lt;br /&gt;
&lt;br /&gt;
Lastly you will designate the username and password RT will use to access the database. we have used &amp;#039;&amp;#039;&amp;#039;rtuser&amp;#039;&amp;#039;&amp;#039; and &amp;#039;&amp;#039;&amp;#039;wibble&amp;#039;&amp;#039;&amp;#039; in this case, but these can be substituted if you chose another username and password.&lt;br /&gt;
&lt;br /&gt;
Now, we have to tell Apache to use RT. You will do this by pasting the following into /etc/apache2/sites-available/default&lt;br /&gt;
 &amp;lt;VirtualHost *:80&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
   ServerAdmin webmaster@localhost&lt;br /&gt;
 &lt;br /&gt;
         DocumentRoot /var/www/&lt;br /&gt;
         &amp;lt;Directory /&amp;gt;&lt;br /&gt;
                 Options FollowSymLinks&lt;br /&gt;
                 AllowOverride None&lt;br /&gt;
         &amp;lt;/Directory&amp;gt;&lt;br /&gt;
         &amp;lt;Directory /var/www/&amp;gt;&lt;br /&gt;
                 Options Indexes FollowSymLinks MultiViews&lt;br /&gt;
                 AllowOverride None&lt;br /&gt;
                 Order allow,deny&lt;br /&gt;
                 allow from all&lt;br /&gt;
         &amp;lt;/Directory&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
         ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/&lt;br /&gt;
         &amp;lt;Directory &amp;quot;/usr/lib/cgi-bin&amp;quot;&amp;gt;&lt;br /&gt;
                 AllowOverride None&lt;br /&gt;
                 Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch&lt;br /&gt;
                 Order allow,deny&lt;br /&gt;
                 Allow from all&lt;br /&gt;
         &amp;lt;/Directory&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
         ErrorLog /var/log/apache2/error.log&lt;br /&gt;
 &lt;br /&gt;
         # Possible values include: debug, info, notice, warn, error, crit,&lt;br /&gt;
         # alert, emerg.&lt;br /&gt;
         LogLevel warn&lt;br /&gt;
 &lt;br /&gt;
         CustomLog /var/log/apache2/access.log combined&lt;br /&gt;
         ServerSignature On&lt;br /&gt;
 &lt;br /&gt;
     Alias /doc/ &amp;quot;/usr/share/doc/&amp;quot;&lt;br /&gt;
     &amp;lt;Directory &amp;quot;/usr/share/doc/&amp;quot;&amp;gt;&lt;br /&gt;
         Options Indexes MultiViews FollowSymLinks&lt;br /&gt;
         AllowOverride None&lt;br /&gt;
         Order deny,allow&lt;br /&gt;
         Deny from all&lt;br /&gt;
         Allow from 127.0.0.0/255.0.0.0 ::1/128&lt;br /&gt;
     &amp;lt;/Directory&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 Include &amp;quot;/etc/request-tracker3.8/apache2-modperl2.conf&amp;quot;&lt;br /&gt;
 RedirectMatch ^/$ /rt/&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;/VirtualHost&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Now, before you restart apache you&amp;#039;ll have to enable mod_re-write or you&amp;#039;ll get an error from modperl2.conf. Do this with the following:&lt;br /&gt;
 sudo a2enmod rewrite&lt;br /&gt;
You&amp;#039;ll get a notice that it has been enabled and you can force-reload of Apache to enable it, but we&amp;#039;re going to go a step farther and restart apache altogether.&lt;br /&gt;
 sudo /etc/init.d/apache2 restart&lt;br /&gt;
Now, you should actually be able to browse to http://your.ip.address.here and you&amp;#039;ll be redirected to the RT3.8 login page. The default is username root and password is password :)&lt;br /&gt;
&lt;br /&gt;
If you just wanted to get a base RT3.8 install, you&amp;#039;re there now, but have a few more steps to go to import our databases and get fetchmail up and running, but before we could do that, we had to get the base system for 3.8 up and running.&lt;br /&gt;
===&amp;#039;&amp;#039;&amp;#039;Configure Fetchmail for RT&amp;#039;&amp;#039;&amp;#039;===&lt;br /&gt;
This is the big deal, because honestly, a ticketing system is kind of broken if a user has to login to log a ticket. The purpose of fetchmail is to poll against a mail server to check for new emails and, when they come in, create a ticket out of them.&lt;br /&gt;
&lt;br /&gt;
Now I had a crapton of problems getting this to work on 10.04, but was finally able to get it to work and hopefully it&amp;#039;ll save you a lot of headaches.&lt;br /&gt;
&lt;br /&gt;
First though, let&amp;#039;s go ahead and install fetchmail&lt;br /&gt;
 sudo apt-get install fetchmail&lt;br /&gt;
Once that&amp;#039;s done, you&amp;#039;ll want to create the file /etc/fetchmailrc with your preferred editor and enter the following:&lt;br /&gt;
 set daemon 60&lt;br /&gt;
 set invisible&lt;br /&gt;
 set no bouncemail&lt;br /&gt;
 set no syslog&lt;br /&gt;
 set logfile /var/log/fetchmail.log&lt;br /&gt;
 &lt;br /&gt;
 #support update - General&lt;br /&gt;
 poll &amp;#039;&amp;#039;&amp;#039;mail.yourdomain.com&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
 protocol pop3&lt;br /&gt;
 username &amp;quot;&amp;#039;&amp;#039;&amp;#039;username&amp;#039;&amp;#039;&amp;#039;&amp;quot; password &amp;quot;&amp;#039;&amp;#039;&amp;#039;secret&amp;#039;&amp;#039;&amp;#039;&amp;quot;&lt;br /&gt;
 mda &amp;quot;/usr/bin/rt-mailgate --queue &amp;#039;&amp;#039;&amp;#039;GENERAL&amp;#039;&amp;#039;&amp;#039; --action correspond --url http://localhost/rt/&amp;quot;&lt;br /&gt;
 no keep&lt;br /&gt;
 &lt;br /&gt;
 #support comment - General&lt;br /&gt;
 poll &amp;#039;&amp;#039;&amp;#039;mail.yourdomain.com&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
 protocol pop3&lt;br /&gt;
 username &amp;quot;&amp;#039;&amp;#039;&amp;#039;username&amp;#039;&amp;#039;&amp;#039;&amp;quot; password &amp;quot;&amp;#039;&amp;#039;&amp;#039;secret&amp;#039;&amp;#039;&amp;#039;&amp;quot;&lt;br /&gt;
 mda &amp;quot;/usr/bin/rt-mailgate --queue &amp;#039;&amp;#039;&amp;#039;GENERAL&amp;#039;&amp;#039;&amp;#039; --action comment --url http://localhost/rt/&amp;quot;&lt;br /&gt;
 no keep&lt;br /&gt;
Here, you will want to replace &amp;#039;&amp;#039;&amp;#039;mail.yourdomain.com&amp;#039;&amp;#039;&amp;#039; with the address of the mailserver you will be polling and insert the &amp;#039;&amp;#039;&amp;#039;username &amp;#039;&amp;#039;&amp;#039;and &amp;#039;&amp;#039;&amp;#039;password&amp;#039;&amp;#039;&amp;#039; it will be using to access the account. Here, we have indicated that anything it finds in the update or comment sections will be applied to the &amp;#039;&amp;#039;&amp;#039;GENERAL&amp;#039;&amp;#039;&amp;#039; queue, but if you have other queues, you can substitute accordingly.&lt;br /&gt;
&lt;br /&gt;
Now, by default, fetchmail will generate an error if you don&amp;#039;t create the log file and change it&amp;#039;s permissions, so we will do the following:&lt;br /&gt;
 sudo touch /var/log/fetchmail.log&lt;br /&gt;
 &lt;br /&gt;
 chown fetchmail /var/log/fetchmail.log&lt;br /&gt;
After that, you can start it with the following:&lt;br /&gt;
 /etc/init.d/fetchmail restart&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===&amp;#039;&amp;#039;&amp;#039;Dump your 3.6.5 Database&amp;#039;&amp;#039;&amp;#039;===&lt;br /&gt;
In this step, we leave the newly functional 10.04 server to go back to your older 8.04 ubuntu system running RT 3.6.5. Here, we are going to do a dump of the entire RT database, which we will be moving to the new device. We will do the dump with the following&lt;br /&gt;
 mysqldump -u &amp;#039;&amp;#039;&amp;#039;root&amp;#039;&amp;#039;&amp;#039; --password=&amp;quot;&amp;#039;&amp;#039;&amp;#039;secret&amp;#039;&amp;#039;&amp;#039;&amp;quot; &amp;#039;&amp;#039;&amp;#039;rtdb&amp;#039;&amp;#039;&amp;#039; &amp;gt; ~/rtbackup.sql&lt;br /&gt;
Note that here we are specifying the &amp;#039;&amp;#039;&amp;#039;root &amp;#039;&amp;#039;&amp;#039;user in the database and supplying the root pasword in place of &amp;#039;&amp;#039;&amp;#039;secret&amp;#039;&amp;#039;&amp;#039;. If you have another user and pass that have access to the database, you can susbtitute those. Since the default database name of the 3.6.5 implementation was &amp;#039;&amp;#039;&amp;#039;rtdb&amp;#039;&amp;#039;&amp;#039; we are specifying that database.&lt;br /&gt;
&lt;br /&gt;
This will generate a sequel file in your home directory called rtbackup.sql. You may have to be patient depending on how large your database is. Ours was approimately 1.8G and took close to a half hour to backup. During this period, the web interface will not be accessible.&lt;br /&gt;
===&amp;#039;&amp;#039;&amp;#039;Move the Database to your New (10.04) Server&amp;#039;&amp;#039;&amp;#039;===&lt;br /&gt;
Once it is complete, we will SCP the file to the newer Ubuntu 10.04 system&lt;br /&gt;
 scp ~/rtbackup.sql &amp;#039;&amp;#039;&amp;#039;user&amp;#039;&amp;#039;&amp;#039;@&amp;#039;&amp;#039;&amp;#039;ip.address.of.system&amp;#039;&amp;#039;&amp;#039;:/home/&amp;#039;&amp;#039;&amp;#039;user&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
Here you must designate the user who will be logging in via ssh as &amp;#039;&amp;#039;&amp;#039;user&amp;#039;&amp;#039;&amp;#039;. The &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;IP Address&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039; of the new system should be inserted here. If you&amp;#039;ve never used SCP before, here is a sample if copying the code to a machine on 192.168.2.4 with username timmy.&lt;br /&gt;
 scp ~/rtdbackup.sql timmy@192.168.100.15:/home/timmy&lt;br /&gt;
This may take a while, depending on the size of the database, but SCP will give you an estimation of the time required and the status during the transfer.&lt;br /&gt;
&lt;br /&gt;
Once it&amp;#039;s complete we&amp;#039;ll have to hop back onto the 10.04 machine.&lt;br /&gt;
===&amp;#039;&amp;#039;&amp;#039;Import 3.6.5 Database and Perform Upgrades&amp;#039;&amp;#039;&amp;#039;===&lt;br /&gt;
Now, based on the previous step, we have a database backup of our old system in our home directory. So now we&amp;#039;re going to import tha data, over-writing the data created by the rt-setup-database section earlier.&lt;br /&gt;
 mysql -u root --password=&amp;quot;&amp;#039;&amp;#039;&amp;#039;secret&amp;#039;&amp;#039;&amp;#039;&amp;quot; rtdb &amp;lt; ~/rtbackup.sql&lt;br /&gt;
At this point you&amp;#039;re probably used to the drill and know to insert your root password for the database in place of &amp;#039;&amp;#039;&amp;#039;secret&amp;#039;&amp;#039;&amp;#039;. This may take about as long as it did to perform the previous mysql dump, so you might want to take a break at this point.&lt;br /&gt;
&lt;br /&gt;
Once the import is done, we will have to upgrade the database to the newest version, and we will return to a function we have used once before.&lt;br /&gt;
 cd /usr/sbin&lt;br /&gt;
 &lt;br /&gt;
 ./rt-setup-database --action upgrade --dba root --prompt-for-dba-password&lt;br /&gt;
Once you have issued the upgrade command, it will ask you for the root database password as it did before and then the version of the database you are upgrading from. Put in 3.6.5 and hit enter. When it asks you for the version to upgrade to, just hit enter to upgrade it completely&lt;br /&gt;
&lt;br /&gt;
This process will complete remarkably fast, leaving your last step to upgrade the mysql schema.&lt;br /&gt;
===&amp;#039;&amp;#039;&amp;#039;Upgrading the MySQL Schema&amp;#039;&amp;#039;&amp;#039;===&lt;br /&gt;
To do this navigate to the specified directory and run the specified command&lt;br /&gt;
 cd /usr/share/request-tracker3.8/etc/upgrade/&lt;br /&gt;
 &lt;br /&gt;
 ./upgrade-mysql-schema.pl &amp;#039;&amp;#039;&amp;#039;rtdb&amp;#039;&amp;#039;&amp;#039; &amp;#039;&amp;#039;&amp;#039;root&amp;#039;&amp;#039;&amp;#039; &amp;#039;&amp;#039;&amp;#039;secret&amp;#039;&amp;#039;&amp;#039; &amp;gt; ~/queries.sql&lt;br /&gt;
Here we are specifying that we would like to upgrade the &amp;#039;&amp;#039;&amp;#039;rtdb&amp;#039;&amp;#039;&amp;#039; database and specifying the &amp;#039;&amp;#039;&amp;#039;root&amp;#039;&amp;#039;&amp;#039; username and its password in place of &amp;#039;&amp;#039;&amp;#039;secret&amp;#039;&amp;#039;&amp;#039;. This will create the sql we need and we are writing it to a file called queries.sql in our home directory.&lt;br /&gt;
&lt;br /&gt;
Now, the last step is to apply the changes to the database&lt;br /&gt;
 mysql -u &amp;#039;&amp;#039;&amp;#039;root&amp;#039;&amp;#039;&amp;#039; --password=&amp;quot;&amp;#039;&amp;#039;&amp;#039;secret&amp;#039;&amp;#039;&amp;#039;&amp;quot; &amp;#039;&amp;#039;&amp;#039;rtdb&amp;#039;&amp;#039;&amp;#039; &amp;lt; ~/queries.sql&lt;br /&gt;
Same drill as before. Here you&amp;#039;ll provide the username (&amp;#039;&amp;#039;&amp;#039;root&amp;#039;&amp;#039;&amp;#039;) and it&amp;#039;s password (&amp;#039;&amp;#039;&amp;#039;secret&amp;#039;&amp;#039;&amp;#039;) for the database you want (&amp;#039;&amp;#039;&amp;#039;rtdb&amp;#039;&amp;#039;&amp;#039;).&lt;br /&gt;
===&amp;#039;&amp;#039;&amp;#039;Restart Apache and Get Working&amp;#039;&amp;#039;&amp;#039;===&lt;br /&gt;
Once this is done, it wouldn&amp;#039;t hurt to go ahead and restart apache&lt;br /&gt;
 sudo /etc/init.d/apache2 restart&lt;br /&gt;
But now you should be able to browse to http://ip.address.of.server and you will be forwarded to RT. Since the database has been imported, you can login with the same username and password that you would have used on your old 3.6.5 system. Once you&amp;#039;ve logged in, you&amp;#039;ll find that everything is in good working order, but you&amp;#039;ll want to double check all of your custom stuff (such as scrips, templates, Custom Fields, etc) to make sure they work. Also do some thorough testing on the fetchmail setup to make sure tickets are getting created correctly.&lt;br /&gt;
===&amp;#039;&amp;#039;&amp;#039;Additional Information&amp;#039;&amp;#039;&amp;#039;===&lt;br /&gt;
This isn&amp;#039;t really a step, just some information that I wanted to add about RTFM and mail. First, RT will be unable to actually send any mail unless you have an MTA you can relay through. Setting that up is far outside of the scope of this function, but I wanted to at least show you how to get postfix on the box to relay to an existing mail server (assuming it will allow it).&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;MAIL SETUP&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
The first thing you&amp;#039;ll have to do is, once RT is running the way you want it, is to install postfix with the following command&lt;br /&gt;
 sudo apt-get install postfix&lt;br /&gt;
Once it&amp;#039;s done installing, you&amp;#039;ll want to edit /etc/postfix/main.cf with your editor of choice and set the following:&lt;br /&gt;
 relayhost = &amp;#039;&amp;#039;&amp;#039;ip.address.of.server&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
The relayhost setting will already be in the config file, but nothing will be set for it. You&amp;#039;ll specify the &amp;#039;&amp;#039;&amp;#039;IP address of your relay mail server&amp;#039;&amp;#039;&amp;#039; here and then restart postfix.&lt;br /&gt;
 sudo /etc/init.d/postfix restart&lt;br /&gt;
Once this is done, RT will be able to send email without an issue&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;RTFM&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
If you had RTFM up and running on your previous install, don&amp;#039;t worry, because getting it running here will be the easiest part of this whole process. First, install RTFM with the following:&lt;br /&gt;
 sudo apt-get install rt3.8-rtfm&lt;br /&gt;
Then restart apache&lt;br /&gt;
 sudo /etc/init.d/apache2 restart&lt;br /&gt;
Once you log back in after the Apache restart, you&amp;#039;ll notice that RTFM now shows up in the toolbar!&lt;br /&gt;
==&amp;#039;&amp;#039;&amp;#039;Conclusion&amp;#039;&amp;#039;&amp;#039;==&lt;br /&gt;
Well hopefully this will get you up and running. I know I went through a little trouble getting it up and running, so hopefully you won&amp;#039;t have to go through the same.&lt;br /&gt;
[[Category:Community]]&lt;br /&gt;
[[Category:Configuration]]&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
</feed>