Install Apache2 on Ubuntu 12.04
Log In or Register to download the BES file, and more.

2 Votes

Collections (part of 1 collection)

Ubuntu

Description

To start off we will install Apache.

Step 1 Open up the Terminal (Applications > Accessories > Terminal).

Step 2 Copy/Paste the following line of code into Terminal and then press enter:

sudo apt-get install apache2

Step 3 The Terminal will then ask you for you're password, type it and then press enter.

Testing Apache

To make sure everything installed correctly we will now test Apache to ensure it is working properly.

Step 1 Open up any web browser and then enter the following into the web address:

http://localhost/

You should see a folder entitled apache2-default/. Open it and you will see a message saying "It works!" , congrats to you!


Property Details

ID1431
TitleInstall Apache2 on Ubuntu 12.04
DomainBESC
CategoryInstallation
Sourcedanielheth@bigfix.me
Source ID<Unspecified>
Source Severity<Unspecified>
Source Release Date4/26/2013 12:00:00 AM
KeywordsStep Terminal SPAN Apache Install
Is TaskTrue
Added by on 5/1/2013 10:07:37 PM
Last Modified by on 5/1/2013 10:08:57 PM
Counters 5422 Views / 16 Downloads
User Rating 1 star 2 star 3 star 4 star 5 star * Average over 0 ratings. ** Log In or Register to add your rating.

Relevance

Used in 11 fixlets and 1 analsis   * Results in a true/false
Show indented relevance
name of operating system contains "Ubuntu"
Used in 1 fixlet   * Results in a true/false
Show indented relevance
exists file "availableApps.txt" whose (exists lines whose (it starts with "apache2") of it) of parent folder of client
Used in 1 fixlet   * Results in a true/false
Show indented relevance
NOT exists file "installedApps.txt" whose (exists lines whose (it starts with "apache2") of it) of parent folder of client

Actions

Action 1 (default)

Action Link Click here to deploy this action.
Script Type BigFix Action Script
delete __appendfile
appendfile #!/bin/sh
appendfile apt-get install -q -y apache2 > output.txt
delete "installer.sh"
delete "output.txt"
move __appendfile "installer.sh"
wait chmod +x installer.sh
wait ./installer.sh
//wget localhost so we can have a validation step
wait wget http://localhost/ -o validation.test
//lastly update the list of currently installed applications
delete __appendfile
appendfile #!/bin/sh
appendfile dpkg --get-selections > "{pathname of parent folder of client}/installedApps.txt"
delete "installedApps.sh"
delete "{pathname of parent folder of client}/installedApps.txt"
move __appendfile "installedApps.sh"
wait chmod +x installedApps.sh
wait ./installedApps.sh
Success Criteria

This action will be considered successful when the following relevance clause evaluates to false:

 
Used in 1 fixlet and 1 analsis   * Results in a true/false
Show indented relevance
if exists file "validation.test" of client folder of current site then NOT exists lines whose (it as lowercase contains "200 ok") of file "validation.test" of client folder of current site else true

Sharing

Social Media:
Share this page on Yammer

Comments

Log In or Register to leave comments!