Skip to content

Instantly share code, notes, and snippets.

@mohclips
Created December 1, 2017 15:53
Show Gist options
  • Save mohclips/1e98883851bf05e25b17cfe4f4998437 to your computer and use it in GitHub Desktop.
Save mohclips/1e98883851bf05e25b17cfe4f4998437 to your computer and use it in GitHub Desktop.
#!/bin/bash
yum install -y httpd
service httpd start
chkconfig httpd on
groupadd www
usermod -a -G www k5user
chown -R root:www /var/www
chmod 2775 /var/www
find /var/www -type d -exec chmod 2775 {} +
find /var/www -type f -exec chmod 0664 {} +
echo "<html><body><h1>Hello BCS, this is server 1</h1></body></html>" > /var/www/html/index.htm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment