<?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=RHEL4InstallGuide</id>
	<title>RHEL4InstallGuide - 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=RHEL4InstallGuide"/>
	<link rel="alternate" type="text/html" href="https://rt-wiki.bestpractical.com/index.php?title=RHEL4InstallGuide&amp;action=history"/>
	<updated>2026-08-22T02:34:06Z</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=RHEL4InstallGuide&amp;diff=2870&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=RHEL4InstallGuide&amp;diff=2870&amp;oldid=prev"/>
		<updated>2016-04-06T20:23:32Z</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;{{OutdatedInstallGuide}}&lt;br /&gt;
&lt;br /&gt;
== Red Hat Enterprise Linux 4 Update2 + RT 3.6.3 + FastCGI 2.4.2 Install Guide ==&lt;br /&gt;
&lt;br /&gt;
(based on procedure posted by William Harrison to [mailto:rt-users@lists.bestpractical.com rt-users@lists.bestpractical.com])&lt;br /&gt;
&lt;br /&gt;
-- General note: All commands should be carried out as the root user unless otherwise stated.&lt;br /&gt;
&lt;br /&gt;
1) Perform a standard install of RHEL, then upgrade / up2date / whatever to get latest versions of installed packages. Verify you have the following packages to satisfy the installation requirements of mod_fastcgi. If you do not you may receive the following error:&lt;br /&gt;
&lt;br /&gt;
Subscribing to the &amp;#039;&amp;#039;&amp;#039;RHEL AS (v. 4 for x86) Fastrack&amp;#039;&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039;Red Hat Web Application Stack 1.0 Beta (for AS v. 4 x86)&amp;#039;&amp;#039;&amp;#039;, and &amp;#039;&amp;#039;&amp;#039;RHEL AS (v. 4 for x86) Extras&amp;#039;&amp;#039;&amp;#039; channels solves many dependencies off the bat. It also keeps most your libraries patched via up2date.&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;make: *** No rule to make target `/etc/httpd/build/special.mk&amp;#039;.  Stop.]&lt;br /&gt;
 &lt;br /&gt;
 httpd-devel&lt;br /&gt;
 apr-devel&lt;br /&gt;
 mysql&lt;br /&gt;
 mysqlclient10&lt;br /&gt;
 mysql-server&lt;br /&gt;
 mysql-devel&lt;br /&gt;
 gcc&lt;br /&gt;
 sendmail-cf&lt;br /&gt;
 &lt;br /&gt;
 ### The following packages resolve some CPAN module dependencies (specifically, the GD module):&lt;br /&gt;
 ### Note: RHEL ships with mod_perl 1.99 and is not compatible with RT (we will instead use FastCGI), but mod_perl is required to&lt;br /&gt;
 ### satisfy certain perl module dependencies.&lt;br /&gt;
 &lt;br /&gt;
 mod_perl&lt;br /&gt;
 freetype-devel&lt;br /&gt;
 gd-devel&lt;br /&gt;
 libjpeg-devel&lt;br /&gt;
 libpng-devel&lt;br /&gt;
 xorg-x11-devel&lt;br /&gt;
 &lt;br /&gt;
 ### I found the CPAN steps below went a little more smoothly with&lt;br /&gt;
 ### all perl packages installed (yes, it&amp;#039;s overkill).&lt;br /&gt;
 &lt;br /&gt;
 perl-*&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
1a) See Step 6 First: /opt/rt3/bin/mason_handler.fcgi does not exist yet&lt;br /&gt;
&lt;br /&gt;
2) Install [[FastCGI]]... (required, since RT only works with mod_perl2, not mod_perl 1.99 that RHEL4 ships with)&lt;br /&gt;
&lt;br /&gt;
Note: mod_perl 2.x is available from the &amp;#039;&amp;#039;&amp;#039;Red Hat Web Application Stack 1.0 Beta (for AS v. 4 x86)&amp;#039;&amp;#039;&amp;#039; channel. You can subscribe your system(s) to it through RHN&amp;#039;s interface.&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;wget http://www.fastcgi.com/dist/mod_fastcgi-2.4.2.tar.gz&lt;br /&gt;
 tar -zxvf mod_fastcgi-2.4.2.tar.gz&lt;br /&gt;
 cd mod_fastcgi-2.4.2&lt;br /&gt;
 cp Makefile.AP2 Makefile&lt;br /&gt;
 vi Makefile&lt;br /&gt;
 &lt;br /&gt;
 ### Modify Makefile for location of apache 2 installation:&lt;br /&gt;
   top_dir      = /etc/httpd&lt;br /&gt;
 &lt;br /&gt;
 make&lt;br /&gt;
 make install&lt;br /&gt;
 &lt;br /&gt;
 ### Create file FastCGI.conf&lt;br /&gt;
   touch /etc/httpd/conf.d/FastCGI.conf&lt;br /&gt;
   vi /etc/httpd/conf.d/FastCGI.conf&lt;br /&gt;
 &lt;br /&gt;
 ###Add the following lines to load FastCGI module.(FastCGI.conf):&lt;br /&gt;
   LoadModule fastcgi_module modules/mod_fastcgi.so&lt;br /&gt;
   FastCgiIpcDir /tmp&lt;br /&gt;
   FastCgiServer /opt/rt3/bin/mason_handler.fcgi -idle-timeout 120 -processes 8&lt;br /&gt;
   FastCgiConfig -restart&lt;br /&gt;
 &lt;br /&gt;
 ### FastCGI wants to have a place to put its logs, and permission to do so:&lt;br /&gt;
   mkdir -p /etc/httpd/logs/fastcgi/dynamic&lt;br /&gt;
   chown -R apache:apache /etc/httpd/logs/fastcgi&lt;br /&gt;
   service httpd restart&lt;br /&gt;
 &lt;br /&gt;
 ### Check Apache logs to make sure fastcgi started&lt;br /&gt;
 ### Should see one line indicating a [notice] and the pid of FastCGI&lt;br /&gt;
 ### [Mon Mar 14 9:16:57 2005] [notice] FastCGI: process manager initialized (pid 3478)&lt;br /&gt;
   tail -n 50 /var/log/httpd/error_log&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
3) Turn on [[MySQL]] server, Apache server, and optionally set [[MySQL]] root password.&lt;br /&gt;
&lt;br /&gt;
 chkconfig httpd on&lt;br /&gt;
 chkconfig mysql on&lt;br /&gt;
 service mysql start&lt;br /&gt;
 mysqladmin -u root password newpass&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
3.5) Install ncftpget&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;### Note the path for ncftpget &amp;quot;./ncftp-3.2.0/bin/ncftpget&amp;quot;, which will be needed next.&lt;br /&gt;
 wget -c ftp://ftp.ncftp.com/ncftp/binaries/ncftp-3.2.0-linux-x86-glibc2.3-export.tar.gz&lt;br /&gt;
 tar -xvzf ncftp-3.2.0-linux-x86-glibc2.3-export.tar.gz&lt;br /&gt;
 &lt;br /&gt;
 cd ncftp-3.2.0&lt;br /&gt;
 make&lt;br /&gt;
 make install&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
4) RT Pre-Install : Security&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;Note: This requires a reboot, or a more extensive bouncing of various daemons.&lt;br /&gt;
 The easiest thing to do is make the following change, and then reboot.&lt;br /&gt;
 For more info on switching selinux policy, please see http://fedora.redhat.com/docs/selinux-faq-fc3/index.html#id2825232&lt;br /&gt;
 ### RT requires its own group, so let&amp;#039;s add it now lest we forget:&lt;br /&gt;
   groupadd rt&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you want an installation of standard security, do the following, else see [[SELinux]]&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;### RT gets initiated by apache, so add apache to the rt group:&lt;br /&gt;
   vi /etc/group&lt;br /&gt;
   ### Change the line:&lt;br /&gt;
   ### rt:x:501:&lt;br /&gt;
   ### to read:&lt;br /&gt;
   ### rt:x:501:apache&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you want an installation of standard security, do the following, else see [[SELinux]]&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;### Disable selinux (or make sure it is disabled):&lt;br /&gt;
    vi /etc/selinux/config&lt;br /&gt;
    ### Change the line:&lt;br /&gt;
    ### SELINUX=enforcing&lt;br /&gt;
    ### or&lt;br /&gt;
    ### SELINUX=permissive&lt;br /&gt;
    ### to read:&lt;br /&gt;
    ### SELINUX=disabled&lt;br /&gt;
 &lt;br /&gt;
 ### Change permissions on /etc/httpd/logs&lt;br /&gt;
    chmod -Rf 755 /etc/httpd/logs&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
5) RT Pre-Install : Perl Modules&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;###Download and install the following modules:&lt;br /&gt;
 ### http://dag.wieers.com/rpm/packages.php&lt;br /&gt;
 &lt;br /&gt;
 perl-Apache-Session-1.80-1.2.el4.rf.noarch.rpm&lt;br /&gt;
 perl-Class-Container-0.12-1.2.el4.rf.noarch.rpm&lt;br /&gt;
 perl-Class-Data-Inheritable-0.04-1.2.el4.rf.noarch.rpm&lt;br /&gt;
 perl-Crypt-DES-2.03-3.2.el4.rf.i386.rpm&lt;br /&gt;
 perl-Devel-StackTrace-1.12-1.2.el4.rf.noarch.rpm&lt;br /&gt;
 perl-Exception-Class-1.22-1.2.el4.rf.noarch.rpm&lt;br /&gt;
 perl-GD-2.30-2.2.el4.rf.i386.rpm&lt;br /&gt;
 perl-GD-Graph-1.43-1.2.el4.rf.noarch.rpm&lt;br /&gt;
 perl-GD-Text-Util-0.86-1.2.el4.rf.noarch.rpm&lt;br /&gt;
 perl-Hook-LexWrap-0.20-1.el4.rf.noarch.rpm&lt;br /&gt;
 perl-HTML-Mason-1.32-1.2.el4.rf.noarch.rpm&lt;br /&gt;
 perl-HTTP-Server-Simple-0.16-1.2.el4.rf.noarch.rpm&lt;br /&gt;
 perl-HTTP-Server-Simple-Mason-0.09-1.el4.rf.noarch.rpm&lt;br /&gt;
 perl-IO-Socket-INET6-2.51-1.2.el4.rf.noarch.rpm&lt;br /&gt;
 perl-Net-SNMP-5.0.1-1.2.el4.rf.noarch.rpm&lt;br /&gt;
 perl-Params-Validate-0.78-1.2.el4.rf.i386.rpm&lt;br /&gt;
 perl-Socket6-0.18-1.2.el4.rf.i386.rpm&lt;br /&gt;
 &lt;br /&gt;
 ###Set up CPAN initially, walk through its setup (if you have not already done so), and upgrade CPAN.&lt;br /&gt;
  perl -MCPAN -e shell&lt;br /&gt;
 &lt;br /&gt;
 ### From within CPAN..&lt;br /&gt;
  install Bundle::CPAN&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
6) Configure RT...&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;wget http://download.bestpractical.com/pub/rt/release/rt.tar.gz&lt;br /&gt;
 gunzip rt.tar.gz&lt;br /&gt;
 tar -xvf rt.tar&lt;br /&gt;
 cd rt-3.6.3/&lt;br /&gt;
 &lt;br /&gt;
 ### Set up the makefile for us with the proper settings:&lt;br /&gt;
   ./configure --with-web-user=apache --with-web-group=apache --with-fastcgi --with-mysql&lt;br /&gt;
 &lt;br /&gt;
 ### MIME::Entity won&amp;#039;t install without MIME::Base64, so install that first:&lt;br /&gt;
   perl -MCPAN -e &amp;#039;install MIME::Base64&amp;#039;&lt;br /&gt;
 &lt;br /&gt;
 ### Now install IO:File (required for passing tests during MIM::Entity build):&lt;br /&gt;
   perl -MCPAN -e &amp;#039;install IO::File&amp;#039;&lt;br /&gt;
 &lt;br /&gt;
 ### Now install MIME::Entity:&lt;br /&gt;
   perl -MCPAN -e &amp;#039;install MIME::Entity&amp;#039;&lt;br /&gt;
 &lt;br /&gt;
 ### Now install Log::Dispatch:&lt;br /&gt;
   perl -MCPAN -e &amp;#039;install Log::Dispatch&amp;#039;&lt;br /&gt;
 &lt;br /&gt;
 ### Module::Build can have problems with argument length, use this older version to fix it:&lt;br /&gt;
 ### http://www.city-fan.org/ftp/contrib/perl-modules/RPMS.rhel4/perl-Module-Build-0.2612-1.rhel4.noarch.rpm&lt;br /&gt;
 ### See here for more details: http://www.mail-archive.com/fedora-perl-devel-list@redhat.com/msg01000.html&lt;br /&gt;
 &lt;br /&gt;
 ### If you plan on making the request tracker install use ssl (as in https) then you will also need to install Crypt::SSLeay&lt;br /&gt;
   perl -MCPAN -e &amp;#039;install Crypt::SSLeay&amp;#039;&lt;br /&gt;
 &lt;br /&gt;
 ### Finally Install the RT Bundle&lt;br /&gt;
   perl -MCPAN -e &amp;#039;install Bundle::RT&amp;#039;&lt;br /&gt;
 &lt;br /&gt;
 ### Show us what else is missing:&lt;br /&gt;
   perl sbin/rt-test-dependencies --with-mysql --with-fastcgi --verbose | grep MISSING&lt;br /&gt;
 &lt;br /&gt;
 ### Try to install what&amp;#039;s missing for us through CPAN automatically. If automatic install fails then&lt;br /&gt;
 ### install whatever is missing manually via CPAN.&lt;br /&gt;
   perl sbin/rt-test-dependencies --with-mysql --with-fastcgi --install&lt;br /&gt;
 &lt;br /&gt;
 ### Test again and make sure nothing is MISSING:&lt;br /&gt;
   perl sbin/rt-test-dependencies --with-mysql --with-fastcgi --verbose | grep MISSING&lt;br /&gt;
 &lt;br /&gt;
 ### Assuming everything is present and it&amp;#039;s a go, install...&lt;br /&gt;
   make install&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
7) Edit RT config file&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;vi /opt/rt3/etc/RT_SiteConfig.pm&lt;br /&gt;
 &lt;br /&gt;
 ### configure RT web paths:&lt;br /&gt;
   Set($WebBaseURL , &amp;quot;http://your.host.name:80&amp;quot;);&lt;br /&gt;
   Set($WebPath , &amp;quot;&amp;quot;);&lt;br /&gt;
   Set($rtname, &amp;quot;mysite.com&amp;quot;);&lt;br /&gt;
 &lt;br /&gt;
 ### Change $DatabasePassword to something other than the default &amp;quot;rt_pass&amp;quot;&lt;br /&gt;
 ### you don&amp;#039;t need to create this user yourself RT will create it while next step&lt;br /&gt;
   # Set($DatabaseUser , &amp;quot;rt_user&amp;quot;); # Only uncomment if you change from the default &amp;quot;rt_user&amp;quot;;&lt;br /&gt;
   Set($DatabasePassword , &amp;quot;secrete_password_rt_uses_to_connect_db&amp;quot;);&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
8) Initialize the database:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;### Initialize the database:&lt;br /&gt;
   make initialize-database&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
9) Edit your Apache config file as well:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;edit /etc/httpd/conf/httpd.conf&lt;br /&gt;
 ###  NameVirtualHost *:80&lt;br /&gt;
 ###  &amp;amp;lt;VirtualHost *:80&amp;amp;gt;&lt;br /&gt;
 ###    ServerAdmin root&lt;br /&gt;
 ###    ServerName your.host.name&lt;br /&gt;
 ###    DocumentRoot /opt/rt3/share/html/&lt;br /&gt;
 ###    AddDefaultCharset UTF-8&lt;br /&gt;
 ###    # Adding the following for RT (the ticket tracker)&lt;br /&gt;
 ###    AddHandler fastcgi-script .fcgi&lt;br /&gt;
 ###    &amp;amp;lt;Directory &amp;quot;/opt/rt3/share/html&amp;quot;&amp;amp;gt;&lt;br /&gt;
 ###      Options FollowSymLinks ExecCGI&lt;br /&gt;
 ###      AllowOverride None&lt;br /&gt;
 ###    &amp;amp;lt;/Directory&amp;amp;gt;&lt;br /&gt;
 ###    # Pass through requests to for noauth&lt;br /&gt;
 ###    Alias /NoAuth/images /opt/rt3/share/html/NoAuth/images&lt;br /&gt;
 ###    ScriptAlias / /opt/rt3/bin/mason_handler.fcgi/&lt;br /&gt;
 ###  &amp;amp;lt;/VirtualHost&amp;amp;gt;&lt;br /&gt;
 ###  FastCgiIpcDir /tmp&lt;br /&gt;
 ###  FastCgiServer /opt/rt3/bin/mason_handler.fcgi -idle-timeout 120 -processes 4&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
10) Restart Apache:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;service httpd restart&lt;br /&gt;
 &lt;br /&gt;
 Check /var/log/httpd/error_log for any errors.  If you see a line similar to&lt;br /&gt;
 ### Can&amp;#039;t locate FCGI.pm in @INC (@INC contains: ...&lt;br /&gt;
 &lt;br /&gt;
 perl -MCPAN -e &amp;#039;install FCGI&amp;#039;&lt;br /&gt;
 service httpd restart&lt;br /&gt;
 &lt;br /&gt;
 Confirm above error message is not present and there are no other errors.&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
11) Attempt to log into RT at http://your.host.name/ &amp;amp;lt;- don&amp;#039;t forget the trailing / to point to the rt subdirectory, otherwise this will not work&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;default user = root&lt;br /&gt;
 default pass = password&lt;br /&gt;
 ##Be sure to change these before using thing in a production environment##&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
12) Symlink rt-mailgate to /etc/smrsh, and create aliases to use RT:&lt;br /&gt;
&lt;br /&gt;
 ln -s /opt/rt3/bin/rt-mailgate /etc/smrsh/rt-mailgate&lt;br /&gt;
 edit  /etc/aliases:&lt;br /&gt;
    ### Add lines:&lt;br /&gt;
    ### rt: &amp;quot;|/etc/smrsh/rt-mailgate --queue general --action correspond --url http://your.host.name/&amp;quot;&lt;br /&gt;
    ### rt-comment: &amp;quot;|/etc/smrsh/rt-mailgate --queue general --action comment --url http://your.host.name/&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
13) Configure Sendmail:&lt;br /&gt;
&lt;br /&gt;
 edit /etc/mail/sendmail.mc:&lt;br /&gt;
    ### Change the line:&lt;br /&gt;
    ### DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA&amp;#039;)dnl&lt;br /&gt;
    ### to read:&lt;br /&gt;
    ### dnl DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA&amp;#039;)&lt;br /&gt;
 rebuild your sendmail.cf:&lt;br /&gt;
    m4 /etc/mail/sendmail.mc &amp;amp;gt; /etc/mail/sendmail.cf&lt;br /&gt;
 add rt server alias to /etc/mail/local-host-names:&lt;br /&gt;
    ### Add line:&lt;br /&gt;
    ### rt.example.com&lt;br /&gt;
 restart sendmail:&lt;br /&gt;
    service sendmail restart&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
14) Use the RT Web interface:&lt;br /&gt;
&lt;br /&gt;
 set up users&lt;br /&gt;
 grant user rights&lt;br /&gt;
 create queues&lt;br /&gt;
 lather, rinse repeat...&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
15) Look at [[ItsFinallyInstalledNowWhat]] for hints on setting up RT to accept E-mail ticket requests&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
</feed>