Last active
December 2, 2017 19:00
-
-
Save NutterzUK/af549481195b5ef95512bdbc863c3026 to your computer and use it in GitHub Desktop.
apache-httpd-userdata.sh
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 | |
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