Created
August 3, 2015 03:30
-
-
Save ssmythe/f7fcd10037ae0720358e to your computer and use it in GitHub Desktop.
Ubuntu1404 install base: Installs Apache, Creates Hello World index.html, Restarts Apache
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo "apache: Installing Apache" | |
apt-get -y install apache2 | |
echo "apache: Creating Hello World index.html" | |
cat > /var/www/html/index.html <<EOF | |
<html> | |
<head> | |
<title>Sup</title> | |
</head> | |
<body> | |
<h1>Hello, World!</h1> | |
</body> | |
</html> | |
EOF | |
echo "apache: Starting Apache" | |
/usr/sbin/service apache2 start |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment