Truemag

  • Categories
    • Tips And Tricks
    • Internet
    • PHP
    • Javascript
    • CSharp
    • SQL Server
    • Linux
  • Lastest Videos
  • Our Demos
  • About
  • Contact
  • Home
  • Write With Us
  • Job Request
Home Linux Install Apache On Ubuntu

Install Apache On Ubuntu

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

[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

[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.
—————————-

Sep 17, 2013Hoan Huynh
If blogging is a business then how to startNotepad Plus Set Default Encoding
You Might Also Like:
  • Ubuntu httpd.conf Location
  • Install LAMP (Apache, MySQL and PHP in Linux) on CentOS
  • How to install PHP extension without re-compiling PHP
  • CentOS install PHP Json Extension by using PECL
  • Ubuntu CentOS Clear Filesystem Memory Cache
  • How To Install PHP 5 on IIS 7 with FastCGI
  • Install CentOS in VirtualBox
  • Tips and Tricks for Improved Linux Security
  • PowerShell Piwik – File cannot be loaded because the execution of scripts is disabled on this system
  • Virtualmin Install PHP Mcrypt Extension
Hoan Huynh

Hoan Huynh is the founder and head of 4rapiddev.com. Reach him at [email protected]

7 years ago LinuxAmazon EC2, apache, Red5, Red5 Media Server, Ubuntu191
0
GooglePlus
0
Facebook
0
Twitter
0
Digg
0
Delicious
0
Stumbleupon
0
Linkedin
0
Pinterest
Most Viewed
PHP Download Image Or File From URL
22,209 views
Notepad Plus Plus Compare Plugin
How To Install Compare Text Plugin In Notepad Plus Plus
20,077 views
Microsoft SQL Server 2008 Attach Remove Log
Delete, Shrink, Eliminate Transaction Log .LDF File
15,854 views
JQuery Allow only numeric characters or only alphabet characters in textbox
13,334 views
C# Read Json From URL And Parse/Deserialize Json
9,828 views
4 Rapid Development is a central page that is targeted at newbie and professional programmers, database administrators, system admin, web masters and bloggers.
Recent Posts
  • Photo Editor App – How Good Is it?

  • The Best Way To Write An Essay – Creating A Good Essay
  • Free Online Photo Editor
  • Easy Tips For Writing An Essay
  • What Can I Expect From An Academic Essay Service?

Categories
  • CSharp (45)
  • Facebook Graph API (19)
  • Google API (7)
  • Internet (87)
  • iPhone XCode (8)
  • Javascript (35)
  • Linux (28)
  • MySQL (16)
  • PHP (84)
  • Problem Issue Error (29)
  • Resources (32)
  • SQL Server (25)
  • Timeline (5)
  • Tips And Tricks (141)
  • Uncategorized (114)
Recommended
  • Custom Software Development Company
  • Online Useful Tools
  • Premium Themes
  • VPS
2014 © 4 Rapid Development