WHM / cPanel :: installing red5 server

53 sec read

:: 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

How to fix problem with…

Facing a Git error with the 'vi' editor? Discover how to easily fix it by checking your Vim path and configuring Git to use...
Sysadmin.ID
10 sec read

Apache :: MP4 Streaming

Learn how to enable MP4 streaming in Apache with the installation of the mod_h264 streaming module, making your video content accessible and efficient. Follow...
Sysadmin.ID
18 sec read

Apache :: Flash / FLV…

Learn how to effortlessly configure Apache for FLV streaming by installing the mod_flvx module and updating your httpd.conf file. Discover the simple steps to...
Sysadmin.ID
15 sec read

Leave a Reply

Your email address will not be published. Required fields are marked *