-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
110 lines (102 loc) · 2.58 KB
/
index.html
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<title>Freeman Lab 0</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<style type="text/css">
/*<![CDATA[*/
body {
background-color: #696354;
}
header {
background-color: #8a8675;
border-radius: 2px;
text-align: center;
}
.content-header {
margin-left: auto;
margin-right: auto;
color: #d2cdac;
}
.content-label {
font-size: 24px;
text-decoration: underline;
}
.content-tile {
min-height: 200px;
width: 45%;
border: 3px solid #8a8675;
border-radius: 5px;
margin: 5px;
padding: 5px;
text-align: center;
}
.left {
float: left;
}
.right {
float: right;
}
.code {
background-color: #d3d3d3;
border-radius: 2px;
color: black;
font-family: monospace;
}
pre {
color: black;
text-align: left;
margin: 0 5px;
background-color: #d3d3d3;
padding: 5px;
border-radius: 5px;
white-space: pre-line;
}
footer {
margin-left: auto;
margin-right: auto;
display: table;
text-align: center;
padding-top: 45px;
}
footer img{
height: 150px;
}
.footer-logo {
height: 55px;
vertical-align: 40px;
}
/*]]>*/
</style>
</head>
<header>
<h1>Matthew Freeman (freema22)<br>Lab 0 server</h1>
</header>
<body>
<div class="content-tile left">
<div class = "content-header">
<span class="content-label">My AMI ID is:</span>
<p>ami-e3baa282</p>
</div>
</div>
<div class="content-tile right">
<div class="content-header">
<span class="content-label">User Script:</span>
<p>
<pre>#!/bin/bash<br>yum update -y<br>yum install -y git<br>git clone https://github.com/cvhooper22/462ami_scripts.git<br>sh 462ami_scripts/lamp.sh<br>
</pre>
<p>
The <span class="code">lamp.sh</span> script runs the following:<br>
</p>
<pre>
#!/bin/bash<br>yum install -y httpd24 php56 mysql55-server php56-mysqlnd<br>service httpd start<br>chkconfig httpd on<br>groupadd www<br>usermod -a -G www ec2-user<br>chown -R root:www /var/www<br>chmod 2775 /var/www<br>find /var/www -type d -exec chmod 2775 {} +<br>find /var/www -type f -exec chmod 0664 {} +<br>cp 462ami_scripts/index.html /var/www/html<br>cp 462ami_scripts/fancy_pig.gif /var/www/html<br>cp 462ami_scripts/fancy_pig_approved.png /var/www/html<br>
</pre>
</p>
</div>
</div>
</body>
<footer>
<img src="fancy_pig.gif") />
<img src="fancy_pig_approved.png" class="footer-logo" />
</footer>
</html>