<?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=FreeBSDupgradeTo3_8_2</id>
	<title>FreeBSDupgradeTo3 8 2 - 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=FreeBSDupgradeTo3_8_2"/>
	<link rel="alternate" type="text/html" href="https://rt-wiki.bestpractical.com/index.php?title=FreeBSDupgradeTo3_8_2&amp;action=history"/>
	<updated>2026-08-22T11:27:23Z</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=FreeBSDupgradeTo3_8_2&amp;diff=1384&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=FreeBSDupgradeTo3_8_2&amp;diff=1384&amp;oldid=prev"/>
		<updated>2016-04-06T20:09:06Z</updated>

		<summary type="html">&lt;p&gt;3 revisions imported&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 16:09, 6 April 2016&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;4&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;!-- diff cache key bestpractical_mediawiki1459887241:diff:1.41:old-1383:rev-1384 --&gt;
&lt;/table&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
	<entry>
		<id>https://rt-wiki.bestpractical.com/index.php?title=FreeBSDupgradeTo3_8_2&amp;diff=1383&amp;oldid=prev</id>
		<title>BillCole: remove spam link</title>
		<link rel="alternate" type="text/html" href="https://rt-wiki.bestpractical.com/index.php?title=FreeBSDupgradeTo3_8_2&amp;diff=1383&amp;oldid=prev"/>
		<updated>2011-01-24T17:45:09Z</updated>

		<summary type="html">&lt;p&gt;remove spam link&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;#039;&amp;#039;&amp;#039;WARNING:&amp;#039;&amp;#039;&amp;#039; This notes are user experience and don&amp;#039;t free you from reading README, UPGRADING and UPGRADING.mysql (if you are on mysql DB) files. You &amp;#039;&amp;#039;&amp;#039;MUST&amp;#039;&amp;#039;&amp;#039; read them.&lt;br /&gt;
&lt;br /&gt;
Steffan below skipped upgrading mysql DB and most probably has broken attachments and/or malfunctioning RT.&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
My notes on our upgrade of 3.4.2 to 3.8.2. Existing server is running [[FreeBSD]] 5.4 and we used the [[FreeBSDInstallGuide]] to help us get going originally.&lt;br /&gt;
&lt;br /&gt;
Other pages that helped me: [[ManualInstallation]], [[MultipleInstances]], [[FastCGIConfiguration]]&lt;br /&gt;
&lt;br /&gt;
Ok... on with the show:&lt;br /&gt;
&lt;br /&gt;
* Shut down Apache so nobody can get to RT.&lt;br /&gt;
* Make DB backup&lt;br /&gt;
&lt;br /&gt;
 home [/usr/homex]# mysqldump -p --opt rt3_4 &amp;amp;gt; RT34_Backup.sql&lt;br /&gt;
   Enter password: xxxxxxxxx&lt;br /&gt;
&lt;br /&gt;
* Download new tar file into /usr/local/src/&lt;br /&gt;
* Untar it and fire up configure with all needed options. Look at them closely as you&amp;#039;ll likely need to adjust:&lt;br /&gt;
&lt;br /&gt;
 ./configure &amp;#039;--prefix=/usr/local/rt3&amp;#039; &amp;#039;--enable-layout=RT3&amp;#039; &amp;#039;--with-web-user=nobody&amp;#039; &amp;#039;--with-web-group=nobody&amp;#039; &amp;#039;--with-libs-group=wheel&amp;#039;&lt;br /&gt;
 &amp;#039;--with-db-host=your.host.here.com&amp;#039; &amp;#039;--with-db-port=&amp;#039; &amp;#039;--with-db-type=mysql&amp;#039; &amp;#039;--with-db-rt-user=rt34&amp;#039; &amp;#039;--with-db-rt-pass=xxxxxxxx &amp;#039;&lt;br /&gt;
 &amp;#039;--with-db-database=rt_upgrade&amp;#039; &amp;#039;--with-db-dba=root&amp;#039; &amp;#039;--mandir=/usr/local/man&amp;#039; &amp;#039;--infodir=/usr/local/info/&amp;#039; &amp;#039;CC=cc&amp;#039;&lt;br /&gt;
 &amp;#039;CFLAGS=-O2&amp;#039; --with-apachectl=/usr/local/apache/bin/apachectl --enable-gd --enable-graphviz&lt;br /&gt;
&lt;br /&gt;
* Fix the needed dependencies (work through the cpan stuff)&lt;br /&gt;
&lt;br /&gt;
 [usr/local/src/rt-3.8.2]# make fixdeps&lt;br /&gt;
&lt;br /&gt;
* Had to manual install a few packages:&lt;br /&gt;
&lt;br /&gt;
 [/usr/local/src/rt-3.8.2]# wget http://www.libgd.org/releases/gd-latest.tar.gz&lt;br /&gt;
 [/usr/local/src/rt-3.8.2]# wget http://www.graphviz.org/pub/graphviz/stable/SOURCES/graphviz-2.20.3.tar.gz&lt;br /&gt;
&lt;br /&gt;
* Install them by untaring and doing the standard: ./configure; make install&lt;br /&gt;
* RT complained later saying it couldn&amp;#039;t find the graphviz exe, so I softlinked it:&lt;br /&gt;
&lt;br /&gt;
 [/]# ln -s /usr/local/bin/dot /usr/bin/dot&lt;br /&gt;
&lt;br /&gt;
* Try again and again till no errors&lt;br /&gt;
&lt;br /&gt;
 [/usr/local/src/rt-3.8.2]# make fixdep&lt;br /&gt;
&lt;br /&gt;
* Now upgrade your DB:&lt;br /&gt;
&lt;br /&gt;
 [/]# /usr/local/rt3/sbin/rt-setup-database --dba root --prompt-for-dba-password --action upgrade&lt;br /&gt;
    In order to create or update your RT database, this script needs to connect to your  mysql instance on your.host.here.com as root&lt;br /&gt;
    Please specify that user&amp;#039;s database password below. If the user has no database&lt;br /&gt;
    password, just press return.&lt;br /&gt;
 &lt;br /&gt;
    Password:&lt;br /&gt;
    Working with:&lt;br /&gt;
    Type:   mysql&lt;br /&gt;
    Host:   your.host.here.com&lt;br /&gt;
    Name:   rt_upgrade&lt;br /&gt;
    User:   rt34&lt;br /&gt;
    DBA:    root&lt;br /&gt;
    Enter RT version you&amp;#039;re upgrading from: 3.4.2&lt;br /&gt;
 &lt;br /&gt;
  Going to apply following upgrades:&lt;br /&gt;
   3.5.1&lt;br /&gt;
   3.7.1&lt;br /&gt;
   ... snip ...&lt;br /&gt;
   3.8.1&lt;br /&gt;
   3.8.2&lt;br /&gt;
 &lt;br /&gt;
 Enter RT version if you want to stop upgrade at some point,&lt;br /&gt;
    or leave it blank if you want apply above upgrades:&lt;br /&gt;
 &lt;br /&gt;
 IT&amp;#039;S VERY IMPORTANT TO BACK UP BEFORE THIS STEP&lt;br /&gt;
 &lt;br /&gt;
 Proceed [y/N]:y&lt;br /&gt;
 Processing 3.5.1&lt;br /&gt;
 Now inserting data&lt;br /&gt;
 Processing 3.7.1&lt;br /&gt;
 ... snip ...&lt;br /&gt;
 Processing 3.8.2&lt;br /&gt;
 Now inserting data&lt;br /&gt;
 [Tue Feb  3 23:29:12 2009] [warning]: Going to add [OLD] prefix to all temlates in approvals queue. If you never used&lt;br /&gt;
 approvals then you  can delete all these templates with [OLD] prefix. Leave new there may be you will want to use approvals&lt;br /&gt;
 some time. (./etc/upgrade/3.8.2/content:3) [Tue Feb  3 23:29:14 2009] [warning]: IMPORTANT: We&amp;#039;re going to delete all&lt;br /&gt;
 scrips in Approvals queue and save them in &amp;#039;rt-approvals-scrips-zgcD&amp;#039; file. (./etc/upgrade/3.8.2/content:165)&lt;br /&gt;
 Done.&lt;br /&gt;
 [usr/local/src/rt-3.8.2]#&lt;br /&gt;
&lt;br /&gt;
* If it doesn&amp;#039;t error you&amp;#039;re golden! If it does, restore your DB and start over.&lt;br /&gt;
&lt;br /&gt;
* OK. Now we apply the upgraded code:&lt;br /&gt;
&lt;br /&gt;
 [usr/local/src/rt-3.8.2]# make upgrade&lt;br /&gt;
&lt;br /&gt;
* We had to move all of our old customizations out of the way and then rm the original dirs as they were trashing the new layout&lt;br /&gt;
&lt;br /&gt;
 [usr/local/src/rt-3.8.2]# cd /usr/local/rt3/local/&lt;br /&gt;
 [/usr/local/rt3/local/]# cp -pR html html.rt34&lt;br /&gt;
 [/usr/local/rt3/local/]# cp -pR lib lib.rt34&lt;br /&gt;
 [/usr/local/rt3/local/]# rm -R html/*&lt;br /&gt;
 [/usr/local/rt3/local/]# rm -R lib/*&lt;br /&gt;
&lt;br /&gt;
* Time to tweak Apache. We&amp;#039;re moving from running RT with /mod_perl/ to /fastcgi/. First we have to install that:&lt;br /&gt;
&lt;br /&gt;
 [/]# cd /usr/ports/www/mod_fastcgi&lt;br /&gt;
 [/usr/ports/www/mod_fastcgi]# make install&lt;br /&gt;
 &lt;br /&gt;
   ... snip....&lt;br /&gt;
 &lt;br /&gt;
   ************************************************************&lt;br /&gt;
   * Fast-cgi modules was included with your apache           *&lt;br /&gt;
   * configuration file                                       *&lt;br /&gt;
   *                                                          *&lt;br /&gt;
   * You need to add following lines to your apache           *&lt;br /&gt;
   * configuration file. and restart it !                     *&lt;br /&gt;
   *                                                          *&lt;br /&gt;
   * AddHandler fastcgi-script fcgi fcgi fpl                  *&lt;br /&gt;
   *                                                          *&lt;br /&gt;
   ************************************************************&lt;br /&gt;
   ===&amp;amp;gt;   Registering installation for mod_fastcgi-2.4.2&lt;br /&gt;
&lt;br /&gt;
* we also need the FCGI perl module now that we have fastcgi built:&lt;br /&gt;
&lt;br /&gt;
 [/usr/local/src/]# wget http://www.cpan.org/modules/by-module/FCGI/FCGI-0.67.tar.gz&lt;br /&gt;
 [/usr/local/src/]# tar zxvf FCGI-0.67.tar.gz&lt;br /&gt;
 [/usr/local/src/FCGI-0.67/]# cd FCGI-0.67&lt;br /&gt;
 [/usr/local/src/FCGI-0.67/]# perl Makefile.PL&lt;br /&gt;
 [/usr/local/src/FCGI-0.67/]# make install&lt;br /&gt;
&lt;br /&gt;
* Now tweak the Apache conf file:&lt;br /&gt;
&lt;br /&gt;
 [/usr/local/rt3/local/]# cp /usr/local/apache/conf/httpd.conf /usr/local/apache/conf/httpd.conf.preupgrade&lt;br /&gt;
 [/usr/local/rt3/local/]# vi /usr/local/apache/conf/httpd.conf&lt;br /&gt;
&lt;br /&gt;
* Comment out the following lines:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;#  PerlModule Apache::DBI&lt;br /&gt;
  #  PerlRequire /usr/local/rt3/bin/webmux.pl&lt;br /&gt;
  #  SetHandler perl-script&lt;br /&gt;
  #  PerlHandler RT::Mason&lt;br /&gt;
  &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Add the following lines:&lt;br /&gt;
&lt;br /&gt;
 LoadModule fastcgi_module     libexec/mod_fastcgi.so                                (in upper section next to other LoadModule&amp;#039;s )&lt;br /&gt;
 FastCgiServer /usr/local/rt3/bin/mason_handler.fcgi -idle-timeout 120 -processes 4  (right under above line)&lt;br /&gt;
 ScriptAlias / /usr/local/rt3/bin/mason_handler.fcgi/                                (right after the DocumentRoot statement)&lt;br /&gt;
&lt;br /&gt;
* Restart Apache and give it a whirl&lt;br /&gt;
* If Apache refuses to start, check the error logs&lt;br /&gt;
&lt;br /&gt;
Worked for me. Good luck -Steffan&lt;/div&gt;</summary>
		<author><name>BillCole</name></author>
	</entry>
</feed>