Centos 5.3 + Webmin + RT
0. Begin with a base install of Centos 5.3 32x with GUI. Remove unnecessary services
1. Network Configuration
a. setup
b. Add Static IPAddress for all interfaces
c. Add Host Name
d. Add DNS
e. Open Firewall
1. SSH; Port 22
2. Webmin; Port 10000
3. HTTP: Port 80
f. Turn off SELinux
2. Updates
a. Yum update
b. Reboot after update finishes
3. Users and Passwords
a. Set Root Password
a. passwd root
b. Create Self Users for SSH
a. adduser <username>
b. passwd <username>
4. Webmin
a. yum -y install perl-Net-SSLeay
b. cd /usr/src
c. wget http://superb-east.dl.sourceforge.net/sourceforge/webadmin/webmin-1.380-1.noarch.rpm
d. rpm -i webmin-1.380-1.noarch.rpm
5. Install RPM Forge
a. cd /usr/src
b. wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.1-1.el5.rf.i386.rpm
c. rpm –import http://dag.wieers.com/rpm/packages/RPM-GPG-KEY.dag.txt
d. rpm –I rpmforge-release-0.5.1-1.el5.rf.i386.rpm12.
6. Preliminaries
a. groupadd rt
b. turn off selinux (in the firewall section after typing setup)
c. nano /etc/group
change rt:x:### to rt:x:###:apache
d. chmod -Rf 755 /etc/httpd/logs
e. service httpd restart
7. Install PreReqs
a. yum install httpd httpd-devel apr-devel mysql-client mysql-server mysql-devel mod_perl
b. yum install freetype-devel gd-devel libjpeg-devel libpng-devel xorg-x11-devel
c. rpm –i http://rpmfind.net/linux/epel/5Server/i386/ncftp-3.2.2-1.el5.i386.rpm
d. yum install perl-Apache-Session perl-Class-Container perl-Class-Data-Inheritable perl-Crypt-DES perl-Devel-StackTrace perl-Exception-Class perl-GD perl-GD-Graph perl-GD-Text-Util perl-Hook-LexWrap perl-HTML-Mason perl-HTTP-Server-Simple perl-HTTP-Server-Simple-Mason perl-IO-Socket perl-Net-SNMP perl-Params-Validate perl-Socket6 perl-XML-RSS perl-DBD-mysql perl-Calendar-Simple
8. Install Bundle::CPAN
a. Perl –MCPAN –e shell
b. Go through configuration using default
At cpan shell type Install Bundle::CPAN
Answer defaults to questions
Exit
9. Install RT
a. Cd /usr/srv
b. wget http://download.bestpractical.com/pub/rt/release/rt.tar.gz
c. tar xzf rt.tar.gz
d. cd rt-*/
e. ./configure –with-web-user=apache –with-web-group=apache –with-modperl2 –with-mysql
f. perl sbin/rt-test-dependencies –with-mysql –with-modperl2 –install
g. make install
10. Setup Database
a. service mysql start
b. mysql
c. mysql> USE mysql;
d. mysql> UPDATE user SET Password=PASSWORD(‘mysql17MHLS!17′) WHERE user=’root’;
e. mysql> FLUSH PRIVILEGES;
f. mysql> exit;
g. mysql -u root –p
h. CREATE DATABASE RT3;
i. GRANT ALL ON RT3.* TO RT_user@localhost IDENTIFIED BY ‘RTPASSWORD’;
j. FLUSH PRIVILEGES;
k. Cd /usr/src
l. cd rt-*/
m. make initialize-database
11. Setup Conf file
a. Nano /etc/httpd/conf.d/rt3.conf
Add
<VirtualHost *:80>
ServerName calldb.midhudson.org
ServerAdmin rdrake@midhudson.org
DocumentRoot /opt/rt3/share/html
AddDefaultCharset UTF-8
PerlRequire /opt/rt3/bin/webmux.pl
</VirtualHost>
<Directory /opt/rt3/share/html>
Order allow,deny
Allow from all
SetHandler perl-script
PerlResponseHandler RT::Mason
</Directory>
b. service httpd restart
12. Webmin Configure
a. Log into the webmin
a. https://localhost:10000
b. Change the webadmin password
c. Add personal users to the wheel group
d. Give nagios & personal users SSH access
13. Turn on Services
a. Turn on Webmin
b. Turn on mysqld
c. Turn on httpd
d. Turn off: acpid, anacron, apmd, autofs, Bluetooth, cups, firstboot, gpm, haldaemon, messagebus, mdmonitor, hidd, ip6tables, kudzu, lvm2-monitor, netfs, nfslock, pcscd, portmap, rpcgssd, rpcidmapd, smartd,yum-updatesd