Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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