-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbootstrap.sh
More file actions
31 lines (21 loc) · 929 Bytes
/
bootstrap.sh
File metadata and controls
31 lines (21 loc) · 929 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#/usr/bin/env bash
# STEP 1: get your centOS running well
sudo yum install -y update
sudo yum install -y httpd
sudo yum install -y epel-release vim tmux htop
sudo systemctl enable httpd
sudo systemctl start httpd
# STEP 2: Install public website folder and information --> two sites = two folderss
sudo mkdir -p /var/www/example.com/public_html
sudo mkdir -p /var/www/example2.com/public_html
sudo chown -R $USER:$USER /var/www/example.com/public_html
sudo chown -R $USER:$USER /var/www/example2.com/public_html
sudo chmod -R 755 /var/www
sudo cp /home/vagrant/index.html /var/www/example.com/public_html/index.html
sudo cp /home/vagrant/index2.html /var/www/example2.com/public_html/index.html
#sudo mkdir /etc/httpd/sites-available
#sudo mkdir /etc/httpd/sites-enabled
# STEP 3: Setup apache config files
cat /home/vagrant/vhost >> /etc/httpd/conf/httpd.conf
# STEP 4: Restart the server
sudo systemctl restart httpd