Big Business Solutions for Small Business Budgets

Installing Red5 Media Server 1.0 on CentOS 5.x and 6.x

If you are attempting to install Red5 Media Server on your dedicated server or VPS, you may be running into some trouble and wildstar gold cannot find the answers. Below are instructions for installing Red5 Media Server using a combination of SFTP and SSH on your Linux server.

Your server will also need Java. Chances are it’s already installed.

1) Download the .zip file for Red5 Media Server and unpack it to your desktop. If you are planning to use Red5 with AVChat3.x, then you need to download RC1.

2) Open FileZilla.

File – Site Manager

Enter your IP and SSH port.

Protocol ->SFTP – SSH File Transfer Protocol

Logon Type – Normal

Enter your username and password.

Connect

3) Once you are connected, you’ll probably be in your ROOT directory. You need to go up one directory to your home directory.

4) Go to /usr/local/

5) In local, created a directory called red5.

6) Upload the contents from the unpacked Red5 Media Server .zip.  If you are planning to use Red5 with AVChat 3.x, then upload the contents of  ‘Files to upload to your media server (Red5)’ to /usr/local/red5/webapps/

7) Open XShell and login.

cd /usr/local/red5

sh red5.sh

8) You will get a wall of text. If successful, somewhere in that wall of text you will see “Bootstrap complete.”

9) Visit http://YourServersIP:5080 to make sure.

10) ctrl+c. The above URL will stop working then. You want that.

11) Type the following:

nano /etc/init.d/red5

12) Copy and paste the following code:

#!/bin/sh
# For RedHat and cousins:
# chkconfig: 2345 85 85
# description: Red5 flash streaming server
# processname: red5
# Created By: Andrew Edgar and Jules Sherred

PROG=red5
RED5_HOME=/usr/local/red5
DAEMON=$RED5_HOME/$PROG.sh
PIDFILE=/var/run/$PROG.pid

# Source function library
. /etc/rc.d/init.d/functions

[ -r /etc/sysconfig/red5 ] && . /etc/sysconfig/red5

RETVAL=0

case “$1″ in
start)
echo -n $”Starting $PROG: ”
cd $RED5_HOME
sh $DAEMON >/dev/null 2>/dev/null &
RETVAL=$?
if [ $RETVAL -eq 0 ]; then
echo $! > $PIDFILE
touch /var/lock/subsys/$PROG

fi
[ $RETVAL -eq 0 ] && success $”$PROG startup” || failure $”$PROG startup”
echo
;;
stop)
echo -n $”Shutting down $PROG: ”
killproc -p $PIDFILE
RETVAL=$?
echo
[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$PROG
;;
restart)
$0 stop
$0 start
;;
status)
status $PROG -p $PIDFILE
RETVAL=$?
;;
*)
echo $”Usage: $0 {start|stop|restart|status}”
RETVAL=1
esac

exit $RETVAL

13) ctrl+x. Y. Enter.

14) Start the service:

/etc/init.d/red5 start

15) Check the status of the service:

/etc/init.d/red5 status

If it is working correctly, you’ll see the following: red5 (pid XXXXX) is running…

Other commands are:

/etc/init.d/red5 restart

/etc/init.d/red5 stop

16) Visit http://YourServersIP:5080 to make sure it is running.

You’re done!

Leave a reply