Howdy folks, in this article i will show you on how to install red5 as media streaming server, video live broadcast server. Why Red5? Because it is a free version of RTMP server that does the same thing as commercial version of streaming server such as FMS, Wowza, etc. Lets cut the crap here, lets proceed to installation.

Lets prepare the ingredient before Red5 installation.
1. Install Java
Red5 is developed using java, so you will need java installed on your mechine before you can run it. Lets use yum to install it.
yum -y install java-1.6.0-openjdk java-1.6.0-openjdk-devel
2. In order to compile red5 on your server, you will need a tool called ant. Yes its ant, its developed by apache.
cd /usr/local/src
wget http://apache.cs.utah.edu//ant/binaries/apache-ant-1.8.2-bin.tar.gz
tar zxvf apache-ant-1.8.2-bin.tar.gz
mv apache-ant-1.8.2 /usr/local/ant
3. Export correct path/directory for Ant and Java
export ANT_HOME=/usr/local/ant
export JAVA_HOME=/usr/lib/jvm/java
export PATH=$PATH:/usr/local/ant/bin
export CLASSPATH=.:$JAVA_HOME/lib/classes.zip
if you wish all of your user to use above path everytime they logged in into ssh, you can add those path to /etc/bashrc so that they dont need to type it eveytime.
echo 'export ANT_HOME=/usr/local/ant' >> /etc/bashrc
echo 'export JAVA_HOME=/usr/lib/jvm/java' >> /etc/bashrc
echo 'export PATH=$PATH:/usr/local/ant/bin' >> /etc/bashrc
echo 'export CLASSPATH=.:$JAVA_HOME/lib/classes.zip' >>/etc/bashrc
ingredient prepared, next step is cook the red5.
4. Download and Install RED5 Server
cd /usr/local/src
svn checkout http://red5.googlecode.com/svn/java/server/trunk/ red5
mv red5 /usr/local/
cd /usr/local/red5
ant prepare
ant dist
After you saw bunch of line then you will noticed BUILD SUCCESSFUL that mean the process is successfully done.
5. Copy Required file from dist/conf folder to main folder of red5
cp -r dist/conf /usr/local/red5
6. Test and run it
sh red5.sh
You will get alot of line as well, once it stopped, you will found the word: bootstrap complete to indicate the red5 started successfully. To exit the process with putty type: ctrl + z, ctrl + c. If you saw error on the last few line, mean the red5 is not compiled correctly, maybe you missing something like java or ant.
7. Test it with browser
Open any browser the insert the url http://yourserverip:5080/
you will saw something like below:

Troubleshooting:
1, All success but open in url become 404.
#port 5080 might get blocked with your firewall? Solution is allow port 5080 and 1935 to your firewall.
2, latest version is buggy for you?
#no problem, check out old version here: http://red5.googlecode.com/svn/java/server/tags/
3, If you get bash: svn: command not found
#no problem, i have a tutorial for install svn
4, other problem? please use the following comment box, i will try my best to help you.
thats all, cheers and happy 2012 new year.