Just launch Red5 Media Server on Amazon EC2 via the AWS Market Place for my video recording campaign; by default its base operating system is Ubuntu but Apache is not ready so have to SSH to the server to install Apache.
1. sudo apt-get update
[email protected]:~$ sudo apt-get update Ign http://ap-southeast-1.ec2.archive.ubuntu.com precise InRelease Ign http://ap-southeast-1.ec2.archive.ubuntu.com precise-updates InRelease Hit http://ap-southeast-1.ec2.archive.ubuntu.com precise Release.gpg Hit http://ap-southeast-1.ec2.archive.ubuntu.com precise-updates Release.gpg Hit http://ap-southeast-1.ec2.archive.ubuntu.com precise Release Hit http://ap-southeast-1.ec2.archive.ubuntu.com precise-updates Release Hit http://ap-southeast-1.ec2.archive.ubuntu.com precise/main Sources Hit http://ap-southeast-1.ec2.archive.ubuntu.com precise/universe Sources Hit http://ap-southeast-1.ec2.archive.ubuntu.com precise/main amd64 Packages Hit http://ap-southeast-1.ec2.archive.ubuntu.com precise/universe amd64 Packages Hit http://ap-southeast-1.ec2.archive.ubuntu.com precise/main i386 Packages Hit http://ap-southeast-1.ec2.archive.ubuntu.com precise/universe i386 Packages Hit http://ap-southeast-1.ec2.archive.ubuntu.com precise/main TranslationIndex Hit http://ap-southeast-1.ec2.archive.ubuntu.com precise/universe TranslationInd ex Hit http://ap-southeast-1.ec2.archive.ubuntu.com precise-updates/main Sources Hit http://ap-southeast-1.ec2.archive.ubuntu.com precise-updates/universe Source s Hit http://ap-southeast-1.ec2.archive.ubuntu.com precise-updates/main amd64 Pack ages Hit http://ap-southeast-1.ec2.archive.ubuntu.com precise-updates/universe amd64 Packages Hit http://ap-southeast-1.ec2.archive.ubuntu.com precise-updates/main i386 Packa ges Hit http://ap-southeast-1.ec2.archive.ubuntu.com precise-updates/universe i386 P ackages Hit http://ap-southeast-1.ec2.archive.ubuntu.com precise-updates/main Translatio nIndex Hit http://ap-southeast-1.ec2.archive.ubuntu.com precise-updates/universe Transl ationIndex Hit http://ap-southeast-1.ec2.archive.ubuntu.com precise/main Translation-en Hit http://ap-southeast-1.ec2.archive.ubuntu.com precise/universe Translation-en Hit http://ap-southeast-1.ec2.archive.ubuntu.com precise-updates/main Translatio n-en Hit http://ap-southeast-1.ec2.archive.ubuntu.com precise-updates/universe Transl ation-en Ign http://security.ubuntu.com precise-security InRelease Get:1 http://security.ubuntu.com precise-security Release.gpg [198 B] Get:2 http://security.ubuntu.com precise-security Release [49.6 kB] Get:3 http://security.ubuntu.com precise-security/main Sources [85.2 kB] Get:4 http://security.ubuntu.com precise-security/universe Sources [28.0 kB] Get:5 http://security.ubuntu.com precise-security/main amd64 Packages [312 kB] Get:6 http://security.ubuntu.com precise-security/universe amd64 Packages [81.2 kB] Get:7 http://security.ubuntu.com precise-security/main i386 Packages [331 kB] Get:8 http://security.ubuntu.com precise-security/universe i386 Packages [84.5 k B] Hit http://security.ubuntu.com precise-security/main TranslationIndex Hit http://security.ubuntu.com precise-security/universe TranslationIndex Hit http://security.ubuntu.com precise-security/main Translation-en Hit http://security.ubuntu.com precise-security/universe Translation-en Fetched 972 kB in 6s (139 kB/s) Reading package lists... Done |
2. sudo apt-get install apache2
[email protected]:~$ sudo apt-get install apache2 Reading package lists... Done Building dependency tree Reading state information... Done The following extra packages will be installed: apache2-mpm-worker apache2-utils apache2.2-bin apache2.2-common libaprutil1-dbd-sqlite3 libaprutil1-ldap libcap2 ssl-cert Suggested packages: apache2-doc apache2-suexec apache2-suexec-custom openssl-blacklist The following NEW packages will be installed: apache2 apache2-mpm-worker apache2-utils apache2.2-bin apache2.2-common libaprutil1-dbd-sqlite3 libaprutil1-ldap libcap2 ssl-cert 0 upgraded, 9 newly installed, 0 to remove and 164 not upgraded. Need to get 1,703 kB of archives. After this operation, 5,214 kB of additional disk space will be used. Do you want to continue [Y/n]? y Get:1 http://ap-southeast-1.ec2.archive.ubuntu.com/ubuntu/ precise/main libcap2 amd64 1:2.22-1ubuntu3 [12.0 kB] Get:2 http://ap-southeast-1.ec2.archive.ubuntu.com/ubuntu/ precise/main libaprut il1-dbd-sqlite3 amd64 1.3.12+dfsg-3 [10.4 kB] Get:3 http://ap-southeast-1.ec2.archive.ubuntu.com/ubuntu/ precise/main libaprut il1-ldap amd64 1.3.12+dfsg-3 [8,044 B] Get:4 http://ap-southeast-1.ec2.archive.ubuntu.com/ubuntu/ precise-updates/main apache2.2-bin amd64 2.2.22-1ubuntu1.4 [1,340 kB] Get:5 http://ap-southeast-1.ec2.archive.ubuntu.com/ubuntu/ precise-updates/main apache2-utils amd64 2.2.22-1ubuntu1.4 [90.1 kB] Get:6 http://ap-southeast-1.ec2.archive.ubuntu.com/ubuntu/ precise-updates/main apache2.2-common amd64 2.2.22-1ubuntu1.4 [226 kB] Get:7 http://ap-southeast-1.ec2.archive.ubuntu.com/ubuntu/ precise-updates/main apache2-mpm-worker amd64 2.2.22-1ubuntu1.4 [2,284 B] Get:8 http://ap-southeast-1.ec2.archive.ubuntu.com/ubuntu/ precise-updates/main apache2 amd64 2.2.22-1ubuntu1.4 [1,492 B] Get:9 http://ap-southeast-1.ec2.archive.ubuntu.com/ubuntu/ precise-updates/main ssl-cert all 1.0.28ubuntu0.1 [12.3 kB] Fetched 1,703 kB in 0s (3,729 kB/s) Preconfiguring packages ... Selecting previously unselected package libcap2. (Reading database ... 26673 files and directories currently installed.) Unpacking libcap2 (from .../libcap2_1%3a2.22-1ubuntu3_amd64.deb) ... Selecting previously unselected package libaprutil1-dbd-sqlite3. Unpacking libaprutil1-dbd-sqlite3 (from .../libaprutil1-dbd-sqlite3_1.3.12+dfsg- 3_amd64.deb) ... Selecting previously unselected package libaprutil1-ldap. Unpacking libaprutil1-ldap (from .../libaprutil1-ldap_1.3.12+dfsg-3_amd64.deb) . .. Selecting previously unselected package apache2.2-bin. Unpacking apache2.2-bin (from .../apache2.2-bin_2.2.22-1ubuntu1.4_amd64.deb) ... Selecting previously unselected package apache2-utils. Unpacking apache2-utils (from .../apache2-utils_2.2.22-1ubuntu1.4_amd64.deb) ... Selecting previously unselected package apache2.2-common. Unpacking apache2.2-common (from .../apache2.2-common_2.2.22-1ubuntu1.4_amd64.de b) ... Selecting previously unselected package apache2-mpm-worker. Unpacking apache2-mpm-worker (from .../apache2-mpm-worker_2.2.22-1ubuntu1.4_amd6 4.deb) ... Selecting previously unselected package apache2. Unpacking apache2 (from .../apache2_2.2.22-1ubuntu1.4_amd64.deb) ... Selecting previously unselected package ssl-cert. Unpacking ssl-cert (from .../ssl-cert_1.0.28ubuntu0.1_all.deb) ... Processing triggers for man-db ... Processing triggers for ureadahead ... Processing triggers for ufw ... Setting up libcap2 (1:2.22-1ubuntu3) ... Setting up libaprutil1-dbd-sqlite3 (1.3.12+dfsg-3) ... Setting up libaprutil1-ldap (1.3.12+dfsg-3) ... Setting up apache2.2-bin (2.2.22-1ubuntu1.4) ... Setting up apache2-utils (2.2.22-1ubuntu1.4) ... Setting up apache2.2-common (2.2.22-1ubuntu1.4) ... Enabling site default. Enabling module alias. Enabling module autoindex. Enabling module dir. Enabling module env. Enabling module mime. Enabling module negotiation. Enabling module setenvif. Enabling module status. Enabling module auth_basic. Enabling module deflate. Enabling module authz_default. Enabling module authz_user. Enabling module authz_groupfile. Enabling module authn_file. Enabling module authz_host. Enabling module reqtimeout. Setting up apache2-mpm-worker (2.2.22-1ubuntu1.4) ... * Starting web server apache2 [ OK ] Setting up apache2 (2.2.22-1ubuntu1.4) ... Setting up ssl-cert (1.0.28ubuntu0.1) ... Processing triggers for libc-bin ... ldconfig deferred processing now taking place |
3. Verify Apache is installed
Open the Public DNS of the EC2 instance on the browser and it should say something like this.
—————————-
It works!
This is the default web page for this server.
The web server software is running but no content has been added, yet.
—————————-