Created
December 1, 2017 15:53
-
-
Save mohclips/1e98883851bf05e25b17cfe4f4998437 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 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