Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Install Red5 on cPanel/WHM (CentOS)
04-24-2010, 03:32 PM, (This post was last modified: 01-18-2011, 01:19 PM by RVC Video Chat.)
#1
Install Red5 on cPanel/WHM (CentOS)
Installing Red5 on cPanel / WHM (CentOS) servers
Install Red5 on cPanel -http://bit.ly/Red5cPanel

Find an updated version of this description here: http://www.videosoftware.pro/forum/THREAD-Install-Red5-on-cPanel-WHM-CentOS-server

This short description will work on most Linux CentOS servers (most cPanel/WHM, VPS or dedicated). If you have a shared hosting account, please contact your server administrator to install Red5.
*to run the commands below, you will need SSH access and you might need a client to connect (PuTTy or similar).

INSTALL JAVA
Quote:yum -y install java-1.6.0-openjdk java-1.6.0-openjdk-devel

INSTALL ANT
Quote:cd /root/tmp
wget http://mirrors.kahuki.com/apache/ant/binaries/apache-ant-1.8.0-bin.tar.bz2
tar jxvf apache-ant-1.8.0-bin.tar.bz2
mv apache-ant-1.8.0 /usr/local/ant

EXPORT VARIABLES FOR ANT AND JAVA
Quote: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

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

INSTALL SVN
Quote:yum install perl-URI

yum install subversion

INSTALL RED5
Quote:svn co http://red5.googlecode.com/svn/java/server/tags/0_8_0/ red5
mv red5 /usr/local/
cd /usr/local/red5

ant prepare
ant dist
cp -r dist/conf .

START RED5
Quote:./red5.sh

CREATE INIT FILE
Quote:vi /etc/init.d/red5
paste the script below than save and close by pressing ESC than typing :wq
Code:
#! /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
    ## su -s /bin/bash -c "$RED5_HOME/$RED5_PROG.sh > start.log &" $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
Make it executable and execute:
Quote:chmod a+x /etc/init.d/red5
/etc/init.d/red5 restart

RED5 ADMIN
http://YOUR_SERVER_IP:5080/installer/ (install admin)
http://YOUR_SERVER_IP:5080/admin/register.html (add user/pass)
http://YOUR_SERVER_IP:5080/admin/

INSTALL JABBERCAM APPLICATION
Quote:cd /root/tmp
wget http://www.chatroulette-clone.com/downloads/java/app/2.8/ChatrouletteApp.zip
unzip ChatrouletteApp.zip
mv ChatrouletteApp /usr/local/red5/webapps
/etc/init.d/red5 restart

TROUBLESHOOTING
http://YOUR_SERVER_IP:5080/demos/port_tester.html
* when testing ports, use server IP not localhost
Make these ports accept connections: 1935, 1936, 5080, 8088

More info with screenshots here: http://www.chatroulette-clone.com/questions/faq/installing-red5-cpanel/
Reply
04-25-2010, 01:25 AM,
#2
RE: Install Red5 on cPanel/WHM (CentOS)
hi

i install the red 5 in my server
http://82.165.47.113:5080/

but in http://82.165.47.113:5080/installer/ i havn't admin app . so i can't subsscibe Sad

and i also i install the ChatrouletteApp in red5, but when i put the link rtmfp://www.villageafro.com/ChatrouletteApp, i can't found it

but in ssh, when i werite "dir" it said the ChatrouletteApp is in usr/local/red5/webapps

what's wrong?
Reply
04-25-2010, 02:43 PM,
#3
RE: Install Red5 on cPanel/WHM (CentOS)
Hi,

I did run http://82.165.47.113:5080/demos/port_tester.html and seems that your Red5 install works fine, it is listening on default RTMP ports (change localhost to 82.165.47.113 when testing).

rtmfp://www.villageafro.com/ChatrouletteApp is not accessible by a browser, I did test the rtmp and it doesn't work
I would recommend to install 0.8 until we (or someone else comes with a solution).

To install 0.8 (assuming that your red5 directory is /usr/local/red5)
Quote:/etc/init.d/red5 stop
rm -rf /usr/local/red5/

cd /root/tmp
svn co http://red5.googlecode.com/svn/java/server/tags/0_8_0/ red5
mv red5 /usr/local/
cd /usr/local/red5

ant prepare
ant dist
cp -r dist/conf .

./red5.sh &
Reply
04-25-2010, 04:50 PM,
#4
RE: Install Red5 on cPanel/WHM (CentOS)
(04-25-2010, 02:43 PM)JabberCam Wrote:  Hi,

I did run http://82.165.47.113:5080/demos/port_tester.html and seems that your Red5 install works fine, it is listening on default RTMP ports (change localhost to 82.165.47.113 when testing).

rtmfp://www.villageafro.com/ChatrouletteApp is not accessible by a browser, I did test the rtmp and it doesn't work
I would recommend to install 0.8 until we (or someone else comes with a solution).

To install 0.8 (assuming that your red5 directory is /usr/local/red5)
Quote:/etc/init.d/red5 stop
rm -rf /usr/local/red5/

cd /root/tmp
svn co http://red5.googlecode.com/svn/java/server/tags/0_8_0/ red5
mv red5 /usr/local/
cd /usr/local/red5

ant prepare
ant dist
cp -r dist/conf .

./red5.sh &

when i was is red5 and i put "ant prepare" i have error: -bash: ant: command not found
Reply
04-25-2010, 11:38 PM,
#5
RE: Install Red5 on cPanel/WHM (CentOS)
Quote: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
Reply
04-26-2010, 01:10 PM,
#6
RE: Install Red5 on cPanel/WHM (CentOS)
hi

i reinstall red 5

everything is ok, but in admin i dont view the ChatrouletteApp in application,. in ssh, the ChatrouletteApp is localize in the good place (see the file)

whats' wrong?

thanks


Attached Files Thumbnail(s)
   
Reply
04-27-2010, 12:24 AM,
#7
RE: Install Red5 on cPanel/WHM (CentOS)
Make sure, your /usr/local/red5/webapps/ChatrouletteApp folder contains the /WEB-INF folder and all it's contents (you need to deploy the application uncompressed).
Reply
04-27-2010, 01:53 AM,
#8
RE: Install Red5 on cPanel/WHM (CentOS)
(04-27-2010, 12:24 AM)JabberCam Wrote:  Make sure, your /usr/local/red5/webapps/ChatrouletteApp folder contains the /WEB-INF folder and all it's contents (you need to deploy the application uncompressed).

i have all files in /webapps/ChatrouletteApp

i dont' understand why it not display in admin
Reply
04-27-2010, 03:27 AM,
#9
RE: Install Red5 on cPanel/WHM (CentOS)
Did you restart Red5? Be aware that sometimes Red5 does not stop! Try this:
Quote:cd /usr/local/red5
./red5-shutdown.sh
ps aux | grep red5
if red5 is not stopped:
Quote:killall -q -u root java
ps aux | grep red5
than restart Red5:
Quote:./red5.sh &
Reply
04-27-2010, 01:41 PM,
#10
RE: Install Red5 on cPanel/WHM (CentOS)
yeeeeees. i have the ChatrouletteApp in my admin page. what i do next? i have a dedicace server
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)