RED5 is open source flash server written in java supports streaming audio/video, recording client streams, shared objects, live stream publishing etc. In this short steps you can install red5 server on your virtual server or dedicated.

This is post is being modified on 27th August 2013, the installation is for the Red5 version 0.8. as no one will use the 0.9…
Download and Install Java

RED5 server depends on Java, so lets install it first using yum:

# yum -y install java-1.6.0-openjdk java-1.6.0-openjdk-devel
Download and Install Ant (Apache Project)

Ant will need to compile RED5 server code. Ant comes in binary form, so just download and install it in /usr/local directory. This step may cause problems because they all always updating the apache ant and changing the name of it, so sometimes the binary is called apache-ant-1.8.0RC1-bin.tar.gz sometimes apache-ant-1.8.0-bin.tar.gz so you will have to get the correct link, go to http://opensource.become.com/apache/ant/binaries/ (link not working) and find what they have, get the one which ends on tar.gz, should be about 9-10 mega file, so edit the link down to the correct one;

# cd /usr/src
# wget http://mirrors.isu.net.sa/pub/apache//ant/binaries/apache-ant-1.9.2-bin.tar.gz (working link today 8/27/2013)
# tar zxvf apache-ant-1.9.2-bin.tar.gz
# mv apache-ant-1.9.2/ /usr/local/ant
Export Variables 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

Also export these variables in /etc/bashrc to become available for every user login or for any terminal opens.

# 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
Download and Install RED5 Server

Now we come to the main part, which one you want? 0.8, 0.9, 0.7?? (using the 0.8 version)

you can find the various versions available at:

http://red5.org/downloads/red5

if for example you want version 0.8, then the command would be:

# cd /usr/local
# mkdir red5
# cd /usr/local/red5
# wget http://red5.org/downloads/red5/0_8/red5-0.8.0.tar.gz
# tar -zxvf red5-0.8.0.tar.gz
# sh red5.sh &
wait 2 minutes before you close the cmd window, then use:
# CTRL + A + D

if you just close the cmd window the red5 will stop, you must log off using the CTRL + A + D

When Red5 is running you should be able to access http://your-server-domain-or-ip:5080/ .

If it works first thing go to http://your-server:5080/installer/and install admin. Then to http://your-server:5080/admin/register.html and register an username and password. Then you can check application statistics anytime from http://your-server:5080/admin/ with server ip and the registered username, password.

RED 5 RESTART

You need to restart every time you add or update files in the /usr/local/red5/webapps folder where all applications should be installed.