• How to build a Wowza media server for Amazon EC2

    This article describes how to build a Wowza media server DevPay Amazon Machine Image (AMI) for Amazon Elastic Compute Cloud (Amazon EC2) and a server from a Fedora Core base AMI.

    Note: For Wowza Media Server™ software version 3.5 and later.

    To build an Amazon EC2 DevPay AMI:


    1. Start a base Amazon machine.

    2. Install the latest version of the Sun Java Development Kit (JDK) from the Oracle website.

    3. Download the latest version of Wowza media server software from ourDownloads webpage and then install the software.

    4. Tune the server following the instructions in our Performance Tuning Guide.

    5. In a text editor, open the /usr/local/WowzaMediaServer/conf/Server.license file and replace the existing developer license with the following Wowza Media Server 3 for Amazon EC2 license:
      -----BEGIN LICENSE-----
      SVRC3-xG3Wv-HmYVf-tyR6u-xkv9b-UBrQT
      +GXGIHQZV2BSKBNVLPDTM6XUF0LGLX0DSXB94QRP0T370M9D2V15H35GR9IUG4QCW
      4B4TGFW279I5AYOMW29FFXI0Y7HWLIK3FKWTFJEJQD0Q1PEKFD79TZWNXQC5T4A8Z
      F2TN7P70WK8MWX84NK257TPLGXL07CQ8B6NYN2WVIQLX651GR257XXHA4CL1ILT6W
      5PVFNO1KIEA5EN8IC2FO9M44XC9VQIPGYD1S1E4GXRLLEQO
      -----END LICENSE-----
    6. Save the Wowza media server configuration as an Amazon Machine Image (AMI) and register it using the ec2-register command.

    7. Use the following command to attach our DevPay ID to the AMI:
      ec2-modify-image-attribute [AMI-ID] --product-code 8ED157F9
      where [AMI-ID] is the ID of the new Amazon AMI that's returned by the ec2-register command.

    Note: If you're re-building an AMI from our pre-built DevPay AMIs, you must adjust the directory structure for the AMI to function properly. Execute the following commands to create the correct local content and logs folders:
    rm -rf /usr/local/WowzaMediaServer/content
    mkdir /usr/local/WowzaMediaServer/content
    chown -R wowza:wowza /usr/local/WowzaMediaServer/content
    chmod -R 775 /usr/local/WowzaMediaServer/content
    
    rm -rf /usr/local/WowzaMediaServer/logs
    mkdir /usr/local/WowzaMediaServer/logs
    chown -R wowza:wowza /usr/local/WowzaMediaServer/logs
    chmod -R 775 /usr/local/WowzaMediaServer/logs

    To build Wowza Media Server from a Fedora AMI:


    1. Start a Fedora Amazon Machine Image (AMI).

      Linux Fedora Core for Amazon EC2 images are available at https://fedoraproject.org/wiki/Cloud...SIG/EC2_Images.

      Amazon provides the following Fedora Core 8 public images:

      • ec2-run-instances ami-48aa4921 -t m1.small -k wowza-keypair
      • ec2-run-instances ami-f61dfd9f -t m1.large -k wowza-keypair

    2. Install the latest version of the Sun Java Development Kit (JDK) from the Oracle website.
    3. Download the latest version of Wowza Media Server from our Downloads webpage and then install the software.

    4. Tune the server following the instructions in ourPerformance Tuning Guide.

    5. In a text editor, open the /usr/local/WowzaMediaServer/conf/Server.license file and replace the existing developer license with your Subscription license.

    Note: If you want to re-stream Amazon S3 content using a Wowza media server, you can configure Wowza Media Cache to do so.

    Originally Published: 10-01-2010.

    If you're having problems or want to discuss this article, post in our forum.