How To Setup Red5 on Ubuntu 12.10

Published on May 31, 2013

Bulat Khamitov

How To Setup Red5 on Ubuntu 12.10

Red5 is a popular program written in Java that lets you stream audio/video files (FLV/F4V/MP4/3GP/MP3/F4A/M4A/AAC), record streams (FLV), and supports various protocols (RTMP/RTMPT/RTMPS/RTMPE).

To get started, we will spin up Ubuntu 12.10 x64 cloud server:

Install Red5

apt-get install -y red5-server

This will install Red5 to /usr/share/red5

To start red5:

service red5-server start

Your server will now listen on these default ports:

RTMP: 1935

Debug proxy: 1936

HTTP servlet: 5080

RTMPT: 8088

At this point you are all done installing Red5, and now you need to add your Red5 application to /usr/share/red5/webapps

You can develop your own application using Eclipse IDE. There are many commercial applications available for Red5, as well as free applications.

There is also an online Red5 App Generator available here.

It will let you create RTMP streaming application:

Here is an example of how to install a free Red5 Chat application:

cd /usr/share/red5/webapps
wget "http://downloads.sourceforge.net/project/freered5chat/red5chat_v2.2_Freedevelopment.net.zip"
unzip red5chat_v2.2_Freedevelopment.net.zip
mv red5chat_v2.2_Freedevelopment.net/* .

Restart Red5:

/etc/init.d/red5-server restart

Navigate over to your cloud server's IP port 5080 ( in our case):

And you are all done!

Thanks for learning with the DigitalOcean Community. Check out our offerings for compute, storage, networking, and managed databases.

Learn more about our products

About the authors
Default avatar
Bulat Khamitov


Still looking for an answer?

Ask a questionSearch for more help

Was this helpful?

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Hi Digital Ocean, Thanks for the great tutorial. You can also review Ant Media Server. Ant Media Server Low Latency solutions are awesome. Ant Media Server Github Page: https://github.com/ant-media/Ant-Media-Server Ant Media Server Google Group: https://groups.google.com/forum/#!forum/ant-media-server Also review website: https://antmedia.io Best Wishes

Don’t use this anymore, instead of that, install red5-server directly from tarball. Refer this

I receive this error: Sub-process /usr/bin/dpkg returned an error code (1) The Red5 server then fails to start.

Can anyone help me?

How do I sign in to chat?

apt-get red5 package does not come with demos and installers, and a box with the 404 in the middle of the page will appear because no vod directory in included from the package, either (see http://askubuntu.com/questions/274329/install-red5-server-on-an-ubuntu12-04-server). Namely, to install red5 package on ubuntu will result in painful experience because essentially no demos / installer is given, and it won’t even work after you successfully installed and started the server (for me and many others struggling in the forum, at least).

Instead, try install on CentOS by following this thread: http://tecadmin.net/installing-red5-media-server-on-centos-6/. Red5 has migrated to GitHub along with its latest release package: https://github.com/Red5/red5-server/releases. Red5 requires jdk8 to run, so install java by following this thread http://tecadmin.net/steps-to-install-java-on-centos-5-6-or-rhel-5-6/ except download jdk8 instead of 7, otherwise Red5 won’t work. After installing and setting up environment variables of jdk8 install red5 and start the server, and you should be up and running, with all demos/installer apps readily available. I did this in less than 10 mins.

I build a Android and iOS app like Pandora or Spotify… I need a software to stream the music… The user search for artist and choose the song like and play the track? Red 5 works for that? Connecting to the server and take the song? Example: http:


Hi, I followed all these instructions but I can’t get the server to work at all! I get the box with the 404 in the middle of the page, and after installing the Red5 Chat application, I get the flash screen, but it doesn’t seem to connect. I have been scouring the web for solutions, but I keep finding so much out of date information and finally ended up at the red5-server git repo, which seems to be way more complicated than specified in these instructions.

Is the apt-get distribution broken now or am I just too much of a noobie to figure this out?

Many thanks for any help!

BGS, did you figure out the errors? I have the exact same issue as you and it started by fixing rtmp via jee.xml file.

This comment has been deleted

    Hi again,

    Red5 is now listening on port 8088, to fix this, on file /etc/red5/jee-container.xml uncomment block

    Now the problem is with this error:

    o.a.c.startup.DigesterFactory - Could not get url for /javax/servlet/resources/j2ee_1_4.xsd

    Have a lot of lines with ‘o.a.c.startup.DigesterFactory - Could not get url for /javax/servlet/xxx’.

    This appears here /var/log/red5/red5.log and also on /var/log/red5/error.log.

    Any ideas?

    Thanks you. Carlos.

    Try DigitalOcean for free

    Click below to sign up and get $200 of credit to try our products over 60 days!

    Sign up

    Join the Tech Talk
    Success! Thank you! Please check your email for further details.

    Please complete your information!

    Featured on Community

    Get our biweekly newsletter

    Sign up for Infrastructure as a Newsletter.

    Hollie's Hub for Good

    Working on improving health and education, reducing inequality, and spurring economic growth? We'd like to help.

    Become a contributor

    Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.

    Welcome to the developer cloud

    DigitalOcean makes it simple to launch in the cloud and scale up as you grow — whether you're running one virtual machine or ten thousand.

    Learn more
    DigitalOcean Cloud Control Panel