:: How to install red5 in cPanel Server
+ Setup apache ant
wget //mirror.cc.columbia.edu/pub/software/apache//ant/binaries/apache-ant-1.8.4-bin.tar.gz tar -xzf apache-ant-1.8.4-bin.tar.gz mv apache-ant-1.8.4 /usr/local/ant
+ export ant variable
temporary
export ANT_HOME=/us/local/ant export PATH=$PATH:/usr/local/ant/bin
permanent
echo 'export ANT_HOME=/usr/local/ant' >> /etc/bashrc echo 'export PATH=$PATH:/usr/local/ant/bin' >> /etc/bashrc
+ installing java
yum install java-1.6.0-openjdk java-1.6.0-openjdk-devel
+ compiling red5
wget //www.red5.org/downloads/red5/1_0/red5-1.0.0-RC2.tar.gz tar -xzf red5-1.0.0-RC2.tar.gz mv red5-1.0.0 /usr/local/red5 cd /usr/local/red5 ant prepare ant dist
+ run red5 server
./red5.sh &
:: Create red5 init script
vi /etc/init.d/red5
add these line:
#! /bin/sh # init script for Red5 # /etc/init.d/red5 RED5_USER=root RED5_HOME=/usr/local/red5 RED5_PROG=red5 test -x $RED5_HOME/$RED5_PROG.sh || exit 5 case "$1" in start) echo -n "Starting Red5" echo -n " " cd $RED5_HOME su -s /bin/bash -c "$RED5_HOME/$RED5_PROG.sh &" $RED5_USER sleep 2 ;; stop) echo -n "Shutting down Red5" echo -n " " su -s /bin/bash -c "killall -q -u $RED5_USER java" $RED5_USER sleep 2 ;; restart) $0 stop $0 start ;; esac
+ Change permission
chmod 755 /etc/init.d/red5
+ Add on init.d
chkconfig red5 on
+ Restarting red5
/etc/init.d/red5 restart
:: Link
+ Google
+ VideoSoftware