Skip to content

Instantly share code, notes, and snippets.

@ssmythe
Created August 3, 2015 03:30
Show Gist options
  • Save ssmythe/f7fcd10037ae0720358e to your computer and use it in GitHub Desktop.
Save ssmythe/f7fcd10037ae0720358e to your computer and use it in GitHub Desktop.
Ubuntu1404 install base: Installs Apache, Creates Hello World index.html, Restarts Apache
#!/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