Home » RED5

Installing and Deploying Red5 Server in Tomcat Server

23 March 2009 No Comment
Share on Facebook

Last friday i tried to install RED5 0.7 but i was not sucessful with that installation after hours

of effort spend on the installation.

Then and tried install RED5 0.6 and that was working awesome.

I just want to share what are the things i had done to make that configuration sucessful.
Some of the prerequisites are

Check whether you system has jre1.5/JDK 5 with JAVA_HOME and CLASSPATH variables are set

properly.If not download it here

Here is my Setings

CLASSPATH: .;C:\Program Files\Java\java1.5\lib\ext\QTJava.zip;C:\Program Files\Java\java1.5\bin

JAVA_HOME:C:\Program Files\Java\java1.5

After Checking both are set properly.

Follow the steps

1) Download the Red5 v0.6.3 final exe for windows and for MacOSX or Ubuntu download respected

installation file

http://osflash.org/red5/red5downloads

For windows

http://dl.fancycode.com/red5/0.6.3/win/setup-red5-0.6.3.exe

2)Install the Red5. To check whether the installation is proper

http://127.0.0.1:5080/

Open the above link, 5080 indicates Red5 runs in port 5080. We can the change the port later if you

have any issues with that port number

3)Download and install Tomcat 6.x, in my case i installed Windows Service Installer

http://opensource.become.com/apache/tomcat/tomcat-6/v6.0.18/bin/apache-tomcat-6.0.18.exe

4)To check installation is working fine, open the URL

http://localhost:8080/

Here Tomcat is running in port 8080.

5)IF we need to deploy Red5 in Tomcat then download WAR.

http://dl.fancycode.com/red5/war/

I had downloaded red5-0.6rc3-java6.war change it to red5.war

6)In Tomcat 6 we have deploye manager

http://localhost:8080/manager/

Click browse and load red5.war after that Press Deploy

7)After Deploying the War, open

http://localhost:8080/red5/demos/port_tester.swf

Check the demo file is working fine.

Note:

rtmp://localhost/oflaDemo

When you are using above rtmp protocol in Flash if it points to the Red5 server and not the deployed WAR

then we need to change red5.properties file which resides in the below location.
Tomcat 6.0\webapps\red5\WEB-INF\red5.properties

if didnt change the downloaded WAR file in step5 then the path would be
Tomcat 6.0\webapps\red5-0.6rc3-java6\WEB-INF\red5.properties

Here is the modified properties file, please check yours

red5.properties

rtmp.host_port=0.0.0.0:1935
rtmp.threadcount=4
debug_proxy.host_port=0.0.0.0:1936
proxy_forward.host_port=127.0.0.1:1935
rtmps.host_port=127.0.0.1:1945
http.host=0.0.0.0
http.port=8080
rtmpt.host=0.0.0.0
rtmpt.port=8088
webapp.contextPath=/
webapp.virtualHosts=*,localhost, localhost:8080, 127.0.0.1:8080

Next : Create First Java – Server side Application

Cheers :)

No related posts.

GET THE UPDATES VIA EMAIL

We don't share your email anywhere, grab our rss via feedburner