Skip to content

Instantly share code, notes, and snippets.

@NutterzUK
Last active December 2, 2017 19:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save NutterzUK/af549481195b5ef95512bdbc863c3026 to your computer and use it in GitHub Desktop.
Save NutterzUK/af549481195b5ef95512bdbc863c3026 to your computer and use it in GitHub Desktop.
apache-httpd-userdata.sh
#!/bin/bash
yum update -y
yum install httpd -y
service httpd start
chkconfig httpd on
cd /var/www/html
echo "<html>" > index.html
echo "<head>" >> index.html
echo "</head>" >> index.html
echo "<body>" >> index.html
echo "<p>Hello World</p>" >> index.html
echo "</body>" >> index.html
echo "</html>" >> index.html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment