Skip to content

Instantly share code, notes, and snippets.

@ssmythe
Last active August 29, 2015 14:26
Show Gist options
  • Save ssmythe/af6e63af140468e2a47d to your computer and use it in GitHub Desktop.
Save ssmythe/af6e63af140468e2a47d to your computer and use it in GitHub Desktop.
Fedora/RHEL6/CentOS6 install base: Installs Apache, Creates Hello World index.html, Restarts Apache
#!/bin/bash
echo "apache: Installing Apache"
yum -y install httpd
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"
/sbin/service httpd start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment