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 the editor ‘vi’

:: git error with vi error: There was a problem with the editor 'vi'   :: how to fix the problem 0. check path...
Sysadmin.ID
10 sec read

Apache :: MP4 Streaming

:: How to Enable mp4 Streaming in Apache + Installing mod h624 streaming wget //h264.code-shop.com/download/apache_mod_h264_streaming-2.2.7.tar.gz tar -xzf apache_mod_h264_streaming-2.2.7.tar.gz cd mod_h264_streaming-2.2.7/ ./configure --with-apxs=`which apxs2` make...
Sysadmin.ID
18 sec read

Apache :: Flash / FLV Streaming

:: How to Configure Apache for FLV Streaming + Installing mod_flvx wget //people.apache.org/~pquerna/modules/mod_flvx.c which apxs /usr/bin/apxs /usr/bin/apxs -cia mod_flvx.c + setup mod_flvx in http.conf...
Sysadmin.ID
15 sec read

Leave a Reply

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