Information and Links

Join the fray by commenting, tracking what others have to say, or linking to it from your blog.


Other Posts

Setting up my own RHEL server… again

Posted by plattapuss on May 6th, 2008

If you have followed my story over the past few months, you will know that I got out of hosting. This has been an excellent move over all as it frees up a lot of my time to do what I like best, develope websites and tinker.

As I have a fair number of sites I did not want to host them all where placed my clients, as I could not afford that much. So I looked around and tried out a number of low price hosting options. As it turns out, they are low priced for a reason--commen sense right?

So, this week I rented another server at ThePlanet. I find their network unbeatable, and their tech support excellent when needed. Never had a billing issue either. This week ThePlanet had a sale on which made getting a Dual 3.2Ghz with 2GB of RAM and 2.5Terabytes of bandwidth for only $147 a good thing. This is a plain RHEL5 box with no control panel. Something I wanted to try for sometime.

Over the next few weeks I will write up my experience, whether good or bad, smart or stupid, right here.

Phase one involved installing a few items:


Install Trac:

CODE:
  1. cd /usr/local/src/
  2. mkdir trac
  3. cd trac
  4. wget http://dag.wieers.com/rpm/packages/clearsilver/clearsilver-0.10.4-2.el5.rf.i386.rpm
  5. wget http://dag.wieers.com/rpm/packages/trac/trac-0.10.4-1.el5.rf.noarch.rpm
  6. wget http://dag.wieers.com/rpm/packages/clearsilver/python-clearsilver-0.10.4-2.el5.rf.i386.rpm
  7. rpm -Uvh *.rpm


Install Subversion:

CODE:
  1. cd /usr/local/src/
  2. mkdir subversion
  3. cd subversion
  4. wget http://dag.wieers.com/rpm/packages/subversion/mod_dav_svn-1.4.6-0.1.el5.rf.i386.rpm
  5. wget http://dag.wieers.com/rpm/packages/subversion/subversion-1.4.6-0.1.el5.rf.i386.rpm
  6. wget http://dag.wieers.com/rpm/packages/subversion/subversion-devel-1.4.6-0.1.el5.rf.i386.rpm
  7. rpm -Uvh *.rpm
  8. Note: you may need to install a few additional items from yum like apr-devel if I remember correctly.


Install watchdog:
cd /usr/local/src
wget http://dag.wieers.com/rpm/packages/watchdog/watchdog-5.3.1-1.el5.rf.i386.rpm
rpm -Uvh watchdog-5.3.1-1.el5.rf.i386.rpm


Install APF firewall

CODE:
  1. cd /usr/local/src
  2. wget http://www.r-fx.ca/downloads/apf-current.tar.gz
  3. tar -zxvf apf-current.tar.gz
  4. cd apf-0.9.6-3/
  5. sh install.sh
  6. You will then need to configure the /etc/apf/conf.apf file to make sure you have the proper ports opened up. Might as well toss your IP into the /etc/apf/allow_hosts.rules files to ensure you don't lock yourself out at some point. Obviously only works if you have a static IP.


Install BFD Brute force Detection

CODE:
  1. cd /usr/local/src/
  2. wget http://www.r-fx.ca/downloads/bfd-current.tar.gz
  3. tar -zxvf bfd-current.tar.gz
  4. cd bfd-0.9/
  5. sh install.sh


Install MySQL:
This is a straight yum install and I recommend staying with this to make future upgrades easier.

CODE:
  1. yum install mysql-server
  2. yum install mysql-devel
  3. yum install mysql-client
  4. yum install mysql-client-community
  5. /etc/init.d/mysqld start
  6. /usr/bin/mysqladmin -u root password 'new-password'

Make sure you enter your desired password here!


Remove sendmail:
Why remove sendmail? I want to use something a little newer and after polling my friends, I have chosen exim. This may change in the future, but for now this is my choice.

CODE:
  1. yum remove sendmail

That was it! Cool!


Install Exim:

CODE:
  1. yum install exim

That was it! Cool again.

I have not gone into the setting up and configure of each app on the system. Other posts on my site will cover some of those things, and for Exim configuration, I will try to do my best to document my progress. Happy or otherwise.



Reader Comments

Sorry, comments are closed.