Install Apache2 on Ubuntu 12.04
2 Votes |
Collections (part of 1 collection)
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
1431 | |
Install Apache2 on Ubuntu 12.04 | |
BESC | |
Installation | |
danielheth@bigfix.me | |
<Unspecified> | |
<Unspecified> | |
4/26/2013 12:00:00 AM | |
Step Terminal SPAN Apache Install | |
True | |
danielheth on 5/1/2013 10:07:37 PM | |
danielheth on 5/1/2013 10:08:57 PM | |
5422 Views / 16 Downloads | |
* Average over 0 ratings. ** Log In or Register to add your rating. |
Relevance
name of operating system contains "Ubuntu"
Used in 1 fixlet | * Results in a true/false |
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 |
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 __appendfileSuccess Criteria
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
This action will be considered successful when the following relevance clause evaluates to false:
Sharing
Social Media: |